SLAM-Course-Solutions icon indicating copy to clipboard operation
SLAM-Course-Solutions copied to clipboard

s4_ekf_slam. The Jacobian in the prediction step is wrong.

Open varunbachalli opened this issue 2 years ago • 0 comments

mu(1, 1) = mu(1) + (u.t * cos(mu(3) + u.r1));
mu(2, 1) = mu(2) + (u.t * sin(mu(3) + u.r1));
mu(3, 1) = mu(3) + (u.r1 + u.r2);
mu(3, 1) = normalize_angle(mu(3, 1));

% Compute the 3x3 Jacobian Gx of the motion model
Gx = eye(3, 3);
Gx(1, 3) = -u.t * cos(mu(3) + u.r1);
Gx(2, 3) = u.t * sin(mu(3) + u.r1);

Jacobian should be

Gx = eye(3, 3);
Gx(1, 3) = -u.t * sin(mu(3) + u.r1);
Gx(2, 3) = u.t * cos(mu(3) + u.r1);

varunbachalli avatar Jul 07 '23 07:07 varunbachalli