minor fixes

release/4.3a0
Varun Agrawal 2022-07-22 05:35:09 -04:00
parent 12b35b4142
commit 7eb9a95c5f
2 changed files with 4 additions and 1 deletions

View File

@ -167,9 +167,10 @@ boost::shared_ptr<GaussianFactor> NoiseModelFactor::linearize(
return GaussianFactor::shared_ptr( return GaussianFactor::shared_ptr(
new JacobianFactor(terms, b, new JacobianFactor(terms, b,
boost::static_pointer_cast<Constrained>(noiseModel_)->unit())); boost::static_pointer_cast<Constrained>(noiseModel_)->unit()));
else else {
return GaussianFactor::shared_ptr(new JacobianFactor(terms, b)); return GaussianFactor::shared_ptr(new JacobianFactor(terms, b));
} }
}
/* ************************************************************************* */ /* ************************************************************************* */

View File

@ -10,3 +10,5 @@
* Without this they will be automatically converted to a Python object, and all * Without this they will be automatically converted to a Python object, and all
* mutations on Python side will not be reflected on C++. * mutations on Python side will not be reflected on C++.
*/ */
#include <pybind11/stl.h>