Skip to content

Commit f78df6d

Browse files
authored
Remove unneeded mesh_inertia_calculation test expectations (#2808)
Follow-up to #2777. Signed-off-by: Steve Peters <[email protected]>
1 parent 3bdadad commit f78df6d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/integration/mesh_inertia_calculation.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ void cylinderColladaMeshInertiaCalculation(
144144

145145
// Check the Inertial Pose and Link Pose. Their world poses should be the
146146
// same since the inertial pose relative to the link is zero.
147-
EXPECT_EQ(link.WorldPose(*ecm).value(), worldPose(linkEntity, *ecm));
148147
EXPECT_EQ(link.WorldInertialPose(*ecm).value(),
149148
worldPose(linkEntity, *ecm) * gz::math::Pose3d::Zero);
150149
}
@@ -221,9 +220,7 @@ void cylinderColladaMeshWithNonCenterOriginInertiaCalculation(
221220
EXPECT_TRUE(
222221
link.WorldInertiaMatrix(*ecm).value().Equal(inertiaMatrix, 0.005));
223222

224-
// Check the Inertial Pose and Link Pose
225-
EXPECT_EQ(link.WorldPose(*ecm).value(), worldPose(linkEntity, *ecm));
226-
223+
// Check the Inertial Pose
227224
// Since the height of cylinder is 2m and origin is at center of bottom face
228225
// the center of mass (inertial pose) will be 1m above the ground
229226
EXPECT_EQ(link.WorldInertialPose(*ecm).value(),
@@ -319,8 +316,7 @@ TEST(MeshInertiaCalculationTest, CylinderColladaOptimizedMeshInertiaCalculation)
319316
ixxyyzzTol));
320317
EXPECT_TRUE(actualIxyxzyz.Equal(
321318
meshInertial.MassMatrix().OffDiagonalMoments(), 3.5));
322-
// Check the Inertial Pose and Link Pose
323-
EXPECT_EQ(link.WorldPose(*ecm).value(), worldPose(linkEntity, *ecm));
319+
// Check the Inertial Pose
324320
EXPECT_TRUE(link.WorldInertialPose(*ecm).value().Equal(
325321
worldPose(linkEntity, *ecm) * gz::math::Pose3d::Zero, 1e-2));
326322
}

0 commit comments

Comments
 (0)