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

bullet-featherstone: Fix removing model with joints #577

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Nov 14, 2023

🦟 Bug fix

Fixes #573

Summary

When a btMultiBody is removed, its joint constraints are never actually removed, causing invalid pointers to be accessed when processing these btMultiBodyConstraints in bullet in the next world step. This PR makes sure all multi body constraints associated with a model are removed properly.

Updated world_features test to capture this case. To run the test:

ctest -R COMMON_TEST_world_features_bullet-featherstone

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 <ichen@openrobotics.org>
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (1e2bcdd) 78.20% compared to head (1f1c856) 78.23%.

❗ Current head 1f1c856 differs from pull request most recent head 8e9a658. Consider uploading reports for the commit 8e9a658 to get more accurate results

Files Patch % Lines
bullet-featherstone/src/Base.hh 77.77% 2 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           bullet_nested_model     #577      +/-   ##
=======================================================
+ Coverage                78.20%   78.23%   +0.03%     
=======================================================
  Files                      143      143              
  Lines                     7514     7516       +2     
=======================================================
+ Hits                      5876     5880       +4     
+ Misses                    1638     1636       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mjcarroll mjcarroll merged commit 53e1ee5 into bullet_nested_model Nov 15, 2023
10 of 11 checks passed
@mjcarroll mjcarroll deleted the bullet_remove_constraint branch November 15, 2023 13:30
@iche033 iche033 added the Bullet Bullet engine label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bullet Bullet engine
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants