diff --git a/examples/LIEKF_NavstateExample.cpp b/examples/LIEKF_NavstateExample.cpp index 9798dca02..a32d367b2 100644 --- a/examples/LIEKF_NavstateExample.cpp +++ b/examples/LIEKF_NavstateExample.cpp @@ -46,8 +46,7 @@ Vector9 dynamics(const Vector6& imu) { * @return 3×1 position vector. */ Vector3 h_gps(const NavState& X, OptionalJacobian<3, 9> H = {}) { - if (H) *H << Z_3x3, Z_3x3, X.R().matrix(); - return X.t(); + return X.position(H); } int main() {