30class ConstantVelocityFactor
42 : Base(model, i, j), dt_(dt) {}
43 ~ConstantVelocityFactor()
override {}
59 static const Vector3 b_accel{0.0, 0.0, 0.0};
60 static const Vector3 b_omega{0.0, 0.0, 0.0};
62 Matrix99 predicted_H_x1;
63 NavState predicted = x1.
update(b_accel, b_omega, dt_, H1 ? &predicted_H_x1 :
nullptr, {}, {});
65 Matrix99 error_H_predicted;
69 *H1 = error_H_predicted * predicted_H_x1;
Navigation state composing of attitude, position, and velocity.
Base class for noise model factors with N variables.
Non-linear factor base classes.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
Matrix * OptionalMatrixType
This typedef will be used everywhere boost::optional<Matrix&> reference was used previously.
Definition NonlinearFactor.h:57
noiseModel::Base::shared_ptr SharedNoiseModel
Aliases.
Definition NoiseModel.h:846
std::uint64_t Key
Integer nonlinear key type.
Definition types.h:43
Vector9 evaluateError(const NavState &x1, const NavState &x2, OptionalMatrixType H1, OptionalMatrixType H2) const override
Calculate error: (x2 - x1.update(dt))) where X1 and X1 are NavStates and dt is the time difference in...
Definition ConstantVelocityFactor.h:55
Navigation state: Pose (rotation, translation) + velocity Following Barrau20icra, this class belongs ...
Definition NavState.h:45
NavState update(const Vector3 &b_acceleration, const Vector3 &b_omega, const double dt, OptionalJacobian< 9, 9 > F={}, OptionalJacobian< 9, 3 > G1={}, OptionalJacobian< 9, 3 > G2={}) const
Integrate forward in time given angular velocity and acceleration in body frame.
Definition NavState.cpp:223
Vector9 localCoordinates(const NavState &g, OptionalJacobian< 9, 9 > H1={}, OptionalJacobian< 9, 9 > H2={}) const
Inverse of the optimization chart selected by GTSAM_NAVSTATE_EXPMAP.
Definition NavState.cpp:137
NoiseModelFactorT()
Definition NoiseModelFactorN.h:257
virtual Vector9 evaluateError(const ValueTypes &... x, OptionalMatrixTypeT< ValueTypes >... H) const=0
double error(const Values &c) const override
Calculate the error of the factor.
Definition NonlinearFactor.cpp:146