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

Prevent crash when objects move to invalid poses (backport #706) #707

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Dec 19, 2024

🦟 Bug fix

Fixes #661

Summary

DART seems to compute invalid poses for certain objects (e.g. Capsule, Ellipse) with large accelerations. The computed poses end up with nan values resulting in a crash. This patch detects this condition and reassigns the poses to the last known poses and resets velocities to zero to prevent the crash.

Test it

gz sim -v4 rolling_shapes.sdf -z 1000000 -s -r

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.


This is an automatic backport of pull request #706 done by [Mergify](https://mergify.com).

DART seems to compute invalid poses for certain objects (e.g. Capsule, Ellipse) with large accelerations. The computed poses end up with `nan` values resulting in a crash. This patch detects this condition and reassigns the poses to the last known poses and resets velocities to zero to prevent the crash.

---------

Signed-off-by: Addisu Z. Taddese <[email protected]>
(cherry picked from commit a369e18)
@mergify mergify bot requested review from azeey and scpeters as code owners December 19, 2024 20:33
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Dec 19, 2024
@azeey azeey merged commit 86b2da3 into gz-physics7 Dec 19, 2024
10 checks passed
@azeey azeey deleted the mergify/bp/gz-physics7/pr-706 branch December 19, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant