Skip to content

Commit

Permalink
fixes on the covariance of the landmark #10
Browse files Browse the repository at this point in the history
  • Loading branch information
edocas01 committed Jan 7, 2023
1 parent 17e0256 commit 97c35c1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Classes/Robot.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,19 @@
j21 = 0;
j22 = 1;
j23 = xp * cos(t_rob) + yp * sin(t_rob);
H = [j11, j12, j13;
J_R = [j11, j12, j13;
j21, j22, j23];

% Jacobian w.r.t the observations
j11 = cos(t_rob);
j12 = - sin(t_rob);
j21 = sin(t_rob);
j22 = - cos(t_rob);
J_O = [j11, j12;
j21, j22];

absolute_observation.x = [x_land; y_land];
absolute_observation.P = observation.R + H*obj.P*H';
absolute_observation.P = J_O*observation.R*J_O' + J_R*obj.P*J_R';

end

Expand Down

0 comments on commit 97c35c1

Please sign in to comment.