Skip to content

Commit

Permalink
Disable tests that need slip
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Apr 20, 2021
1 parent c008e52 commit 4879908
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/diff_drive_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,15 @@ TEST_P(DiffDriveTest, SkidPublishCmd)
EXPECT_EQ(3u, odomPoses.size());

EXPECT_LT(poses[0].Pos().X(), poses[3999].Pos().X());
EXPECT_LT(poses[0].Pos().Y(), poses[3999].Pos().Y());
EXPECT_NEAR(poses[0].Pos().Z(), poses[3999].Pos().Z(), tol);
EXPECT_NEAR(poses[0].Rot().X(), poses[3999].Rot().X(), tol);
EXPECT_NEAR(poses[0].Rot().Y(), poses[3999].Rot().Y(), tol);

// Slip works on DART>=6.10, which isn't available on Ubuntu Focal
#ifndef __linux__
EXPECT_LT(poses[0].Pos().Y(), poses[3999].Pos().Y());
EXPECT_LT(poses[0].Rot().Z(), poses[3999].Rot().Z());
#endif
}

/////////////////////////////////////////////////
Expand Down
3 changes: 3 additions & 0 deletions test/integration/wheel_slip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,9 @@ TEST_F(WheelSlipTest, TricyclesUphill)

EXPECT_NEAR(angularSpeed, wheelRearLeftVelocity->Data()[0], 3e-3);
EXPECT_NEAR(angularSpeed, wheelRearRightVelocity->Data()[0], 3e-3);
// Slip works on DART>=6.10, which isn't available on Ubuntu Focal
#ifndef __linux__
EXPECT_NEAR(noSlipLinearSpeed - worldVelTrisphere1->Data()[0],
noSlipLinearSpeed * forceRatio, 5e-3);
#endif
}

0 comments on commit 4879908

Please sign in to comment.