File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
diff_drive_controller/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ TEST(OdometryTest, testIntegrateMotionForwardFromInitial)
333333 J_twist * twist_covariance_1_corrected * J_twist.transpose ();
334334
335335 // Check new pose is equal to the expected one:
336- EXPECT_EQ (x_1, x);
336+ EXPECT_NEAR (x_1, x, std::numeric_limits< double >:: epsilon () );
337337 EXPECT_EQ (y_1, y);
338338 EXPECT_EQ (yaw_1, yaw);
339339
@@ -438,8 +438,8 @@ TEST(OdometryTest, testIntegrateMotionForwardFromNotInitial)
438438 // Note that at this point the pose is not computed using the (internal)
439439 // incremental pose, so we have an error greater than the double eps!
440440 EXPECT_NEAR (x_1, x, 1e-14 );
441- EXPECT_NEAR (y_1, y, std::numeric_limits< double >:: epsilon () );
442- EXPECT_NEAR (yaw_1, yaw, 1e-14 );
441+ EXPECT_NEAR (y_1, y, 1e-14 );
442+ EXPECT_NEAR (yaw_1, yaw, 1e-13 );
443443
444444 // Check all pose and twist covariances are valid:
445445 testCovariance (pose_covariance_0, POSE_COVARIANCE_MAX_CONDITION_NUMBER);
You can’t perform that action at this time.
0 commit comments