Skip to content
Snippets Groups Projects
Commit b3f6a1f0 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

hotfix: factors calling getFeature() in operator()

parent 9d8fc4d8
No related branches found
No related tags found
No related merge requests found
Pipeline #5538 passed
...@@ -59,7 +59,7 @@ inline bool FactorPose2d::operator ()(const T* const _p, const T* const _o, T* _ ...@@ -59,7 +59,7 @@ inline bool FactorPose2d::operator ()(const T* const _p, const T* const _o, T* _
// residual // residual
Eigen::Map<Eigen::Matrix<T,3,1>> res(_residuals); Eigen::Map<Eigen::Matrix<T,3,1>> res(_residuals);
res = getFeature()->getMeasurementSquareRootInformationUpper() * er; res = getMeasurementSquareRootInformationUpper() * er;
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
// print Jacobian. Uncomment this as you wish (remember to uncomment #include "ceres/jet.h" above): // print Jacobian. Uncomment this as you wish (remember to uncomment #include "ceres/jet.h" above):
......
...@@ -62,7 +62,7 @@ inline bool FactorPose3d::operator ()(const T* const _p, const T* const _o, T* _ ...@@ -62,7 +62,7 @@ inline bool FactorPose3d::operator ()(const T* const _p, const T* const _o, T* _
// residual // residual
Eigen::Map<Eigen::Matrix<T, 6, 1>> res(_residuals); Eigen::Map<Eigen::Matrix<T, 6, 1>> res(_residuals);
res = getFeature()->getMeasurementSquareRootInformationUpper() * er; res = getMeasurementSquareRootInformationUpper() * er;
return true; return true;
} }
......
...@@ -80,7 +80,7 @@ inline bool FactorQuaternionAbsolute::operator ()(const T* const _o, T* _residua ...@@ -80,7 +80,7 @@ inline bool FactorQuaternionAbsolute::operator ()(const T* const _o, T* _residua
// residual // residual
Eigen::Map<Eigen::Matrix<T, 3, 1>> res(_residuals); Eigen::Map<Eigen::Matrix<T, 3, 1>> res(_residuals);
res = getFeature()->getMeasurementSquareRootInformationUpper() * er; res = getMeasurementSquareRootInformationUpper() * er;
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment