Skip to content

Commit

Permalink
Disable test failing due to ODE/libccd (#621)
Browse files Browse the repository at this point in the history
Part of #620.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters authored Apr 9, 2024
1 parent 2bc19ad commit 4e400e0
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/common_test/joint_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -966,9 +966,23 @@ TYPED_TEST(JointFeaturesDetachTest, JointDetach)
// sanity check on velocity values
EXPECT_LT(1e-5, upperLinkLinearVelocity.Z());
EXPECT_GT(-0.03, upperLinkAngularVelocity.X());
EXPECT_NEAR(0.0, upperLinkLinearVelocity.X(), 1e-6);
#ifdef __APPLE__
// Disable some expectations for dartsim plugin on homebrew,
// see https://github.com/gazebosim/gz-physics/issues/620.
if (this->PhysicsEngineName(name) != "dartsim")
#endif
{
EXPECT_NEAR(0.0, upperLinkLinearVelocity.X(), 1e-6);
}
EXPECT_NEAR(0.0, upperLinkLinearVelocity.Y(), 1e-6);
EXPECT_NEAR(0.0, upperLinkAngularVelocity.Y(), 1e-6);
#ifdef __APPLE__
// Disable some expectations for dartsim plugin on homebrew,
// see https://github.com/gazebosim/gz-physics/issues/620.
if (this->PhysicsEngineName(name) != "dartsim")
#endif
{
EXPECT_NEAR(0.0, upperLinkAngularVelocity.Y(), 1e-6);
}
EXPECT_NEAR(0.0, upperLinkAngularVelocity.Z(), 1e-6);

upperJoint->Detach();
Expand Down

0 comments on commit 4e400e0

Please sign in to comment.