| 190 | } |
| 191 | |
| 192 | colvec pose_update_2d(const colvec& X1, const colvec& X2) { |
| 193 | mat R = yaw_to_R(X1(2)); |
| 194 | colvec X3(3); |
| 195 | X3.rows(0, 1) = R * X2.rows(0, 1) + X1.rows(0, 1); |
| 196 | X3(2) = X1(2) + X2(2); |
| 197 | return X3; |
| 198 | } |
| 199 | |
| 200 | colvec pose_inverse_2d(const colvec& X) { |
| 201 | double c = cos(X(2)); |
nothing calls this directly
no test coverage detected