-
Notifications
You must be signed in to change notification settings - Fork 291
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 (backport #2775) #2799
base: gz-sim8
Are you sure you want to change the base?
Conversation
Signed-off-by: Ian Chen <ichen@openrobotics.org> (cherry picked from commit 1509b0f)
I'll try rerunning to see if it's flaky |
failed again but earlier:
|
hmm it may have been caused by #2798. I see that the win build passed there, but in a separate non-related PR, the |
I just ran CI for gz-sim8, and the test fails there already, so it looks unrelated to this PR: |
actually a see a failure as far back as https://build.osrfoundation.org/view/gz-harmonic/job/gz_sim-8-clowin/10/ |
oh then it could be due to #2754. The changes here just increase the chance of it failing. |
reported as flaky test in #2801 |
Signed-off-by: Ian Chen <ichen@openrobotics.org>
73e82c3 should fix the crash on Windows. Found that the crash happens on server exit when another server instance is run immediately right after an existing one. An explicit call to |
spoke too soon. It failed again: https://build.osrfoundation.org/job/gz_sim-pr-clowin/202 |
f091b04
to
610e7e5
Compare
Signed-off-by: Ian Chen <ichen@openrobotics.org>
610e7e5
to
ecf3cd5
Compare
🦟 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
codecheck
passed (See contributing)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.This is an automatic backport of pull request #2775 done by [Mergify](https://mergify.com).