Skip to content

Commit

Permalink
Disable check in DetachableJointTest, CorrectAttachmentPoints for dar…
Browse files Browse the repository at this point in the history
…tsim plugin on macOS (#613)

Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Mar 29, 2024
1 parent a86da62 commit d616379
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/common_test/detachable_joint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,14 @@ TYPED_TEST(DetachableJointTest, CorrectAttachmentPoints)
// ground.
auto frameDataC1L1 = cylinder1_link1->FrameDataRelativeToWorld();
auto frameDataC2L2 = cylinder2_link2->FrameDataRelativeToWorld();
EXPECT_NEAR(0.15, frameDataC1L1.pose.translation().z(), 1e-2);
#ifdef __APPLE__
// Disable check for dartsim plugin on homebrew,
// see https://github.com/gazebosim/gz-physics/issues/612.
if (this->PhysicsEngineName(name) != "dartsim")
#endif
{
EXPECT_NEAR(0.15, frameDataC1L1.pose.translation().z(), 1e-2);
}
EXPECT_NEAR(0.05, frameDataC2L2.pose.translation().z(), 1e-2);
}
}
Expand Down

0 comments on commit d616379

Please sign in to comment.