Skip to content

Commit 5c88a2f

Browse files
author
Enrique Fernandez
committed
Relax check tolerance for some tests
1 parent e3f0481 commit 5c88a2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

diff_drive_controller/test/odometry_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)