Skip to content

Commit b0d3b4c

Browse files
committed
try to fix unresolved external symbol error
and dividing by zero problem
1 parent 9712acd commit b0d3b4c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

gtsam/geometry/Rot3.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949

5050
namespace gtsam {
5151

52+
template class GTSAM_EXPORT
53+
OptionalJacobian<9, 3>;
54+
5255
/**
5356
* @brief Rot3 is a 3D rotation represented as a rotation matrix if the
5457
* preprocessor symbol GTSAM_USE_QUATERNIONS is not defined, or as a quaternion

gtsam/linear/NoiseModel.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,9 @@ namespace gtsam {
575575
* An isotropic noise model created by specifying a precision
576576
*/
577577
static shared_ptr Precision(size_t dim, double precision, bool smart = true) {
578+
if (0 == precision) {
579+
return nullptr;
580+
}
578581
return Variance(dim, 1.0/precision, smart);
579582
}
580583

0 commit comments

Comments
 (0)