Skip to content
Snippets Groups Projects

Resolve "Processor motion model"

Merged Joan Vallvé Navarro requested to merge 407-processor-motion-model into devel
5 files
+ 33
17
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -62,7 +62,7 @@ inline bool FactorVelocityDirection3d::operator ()(const T* const _v, const T* c
@@ -62,7 +62,7 @@ inline bool FactorVelocityDirection3d::operator ()(const T* const _v, const T* c
// << v_local(2) << "\n";
// << v_local(2) << "\n";
// error (angle between measurement and velocity in local coordinates)
// error (angle between measurement and velocity in local coordinates)
double error = acos( v_local.dot(getMeasurement().cast<T>()) / (v_local.norm() * getMeasurement().cast<T>().norm()));
T error = acos( v_local.dot(getMeasurement().cast<T>()) / (v_local.norm() * getMeasurement().cast<T>().norm()));
// residual
// residual
_residuals[0] = getMeasurementSquareRootInformationUpper()(0,0) * error;
_residuals[0] = getMeasurementSquareRootInformationUpper()(0,0) * error;
Loading