Skip to content

Commit

Permalink
Fixed kinematic test
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Sep 19, 2022
1 parent ae9bde9 commit 38a7f21
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/common_test/kinematic_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,16 @@ TYPED_TEST(KinematicFeaturesTest, JointFrameSemantics)
F_WCexpected.pose.translation(),
childLinkFrameData.pose.translation());
}
EXPECT_EQ(
EXPECT_TRUE(
gz::physics::test::Equal(
F_WCexpected.linearVelocity,
childLinkFrameData.linearVelocity);
EXPECT_EQ(
childLinkFrameData.linearVelocity,
1e-6));
EXPECT_TRUE(
gz::physics::test::Equal(
F_WCexpected.linearAcceleration,
childLinkFrameData.linearAcceleration);
childLinkFrameData.linearAcceleration,
1e-6));
}
}

Expand Down

0 comments on commit 38a7f21

Please sign in to comment.