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

Attempt to correct mass matrix in mesh inertia calculator #2775

Open
wants to merge 19 commits into
base: gz-sim9
Choose a base branch
from

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Feb 13, 2025

🦟 Bug fix

Depends on #2770

Summary

The mesh inertia calculator can potentially generate invalid inertial values for complex / non-water tight meshes. This PR adds a function that attempts to correct the auto-calculated mass matrix if it is strictly positive and within the specified tolerance of satisfying the triangle inequality.

Credits go to @shameekganguly and @scpeters for the mass matrix correction algorithm

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
@iche033 iche033 requested a review from mjcarroll as a code owner February 13, 2025 23:31
Base automatically changed from mesh_inertial_calc_optimization to gz-sim9 February 21, 2025 19:18
@iche033 iche033 added the 🏛️ ionic Gazebo Ionic label Feb 21, 2025
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic
Projects
Status: Inbox
Development

Successfully merging this pull request may close these issues.

2 participants