Correct jacobian for h_gps
parent
87c4445f53
commit
5bc01081ee
|
@ -46,8 +46,7 @@ Vector9 dynamics(const Vector6& imu) {
|
||||||
* @return 3×1 position vector.
|
* @return 3×1 position vector.
|
||||||
*/
|
*/
|
||||||
Vector3 h_gps(const NavState& X, OptionalJacobian<3, 9> H = {}) {
|
Vector3 h_gps(const NavState& X, OptionalJacobian<3, 9> H = {}) {
|
||||||
if (H) *H << Z_3x3, Z_3x3, X.R().matrix();
|
return X.position(H);
|
||||||
return X.t();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Reference in New Issue