Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded mesh_inertia_calculation test expectations #2808

Open
wants to merge 1 commit into
base: gz-sim9
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions test/integration/mesh_inertia_calculation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ void cylinderColladaMeshInertiaCalculation(

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

// Check the Inertial Pose and Link Pose
EXPECT_EQ(link.WorldPose(*ecm).value(), worldPose(linkEntity, *ecm));

// Check the Inertial Pose
// Since the height of cylinder is 2m and origin is at center of bottom face
// the center of mass (inertial pose) will be 1m above the ground
EXPECT_EQ(link.WorldInertialPose(*ecm).value(),
Expand Down Expand Up @@ -319,8 +316,7 @@ TEST(MeshInertiaCalculationTest, CylinderColladaOptimizedMeshInertiaCalculation)
ixxyyzzTol));
EXPECT_TRUE(actualIxyxzyz.Equal(
meshInertial.MassMatrix().OffDiagonalMoments(), 3.5));
// Check the Inertial Pose and Link Pose
EXPECT_EQ(link.WorldPose(*ecm).value(), worldPose(linkEntity, *ecm));
// Check the Inertial Pose
EXPECT_TRUE(link.WorldInertialPose(*ecm).value().Equal(
worldPose(linkEntity, *ecm) * gz::math::Pose3d::Zero, 1e-2));
}
Loading