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

Merge ign-physics5 ➡️ main #398

Merged
merged 8 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions coverage.ignore.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tpe/lib/src/aabb_tree/*
10 changes: 1 addition & 9 deletions dartsim/src/SDFFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -591,15 +591,7 @@ Identity SDFFeatures::ConstructSdfLink(
const gz::math::Inertiald &sdfInertia = _sdfLink.Inertial();
bodyProperties.mInertia.setMass(sdfInertia.MassMatrix().Mass());

// TODO(addisu) Resolve the pose of inertials when frame information is
// availabile for gz::math::Inertial
const Eigen::Matrix3d R_inertial{
math::eigen3::convert(sdfInertia.Pose().Rot())};

const Eigen::Matrix3d I_link =
R_inertial
* math::eigen3::convert(sdfInertia.Moi())
* R_inertial.inverse();
const Eigen::Matrix3d I_link = math::eigen3::convert(sdfInertia.Moi());

bodyProperties.mInertia.setMoment(I_link);

Expand Down