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

Use correct link indices when constructing fixed constraints #530

Merged
merged 4 commits into from
Oct 23, 2023

Conversation

mjcarroll
Copy link
Contributor

🦟 Bug fix

Fixes gazebosim/gz-sim#2076

Summary

Previously, link indices were not accounted for when adding fixed constraints. This will use the link index if it is present (and still use -1 if the constraint is on the root link).

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.

@github-actions github-actions bot added the 🌱 garden Ignition Garden label Aug 15, 2023
@mjcarroll
Copy link
Contributor Author

mjcarroll commented Aug 15, 2023

@azeey or @scpeters any ideas on a test that I can add for this?

Edit: it would be nice to test it here in the common test, rather than adding a test at the gz-sim level.

@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Merging #530 (f51a75d) into gz-physics6 (d1a76c0) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head f51a75d differs from pull request most recent head 568f695. Consider uploading reports for the commit 568f695 to get more accurate results

@@             Coverage Diff              @@
##           gz-physics6     #530   +/-   ##
============================================
  Coverage        75.83%   75.84%           
============================================
  Files              143      143           
  Lines             7325     7327    +2     
============================================
+ Hits              5555     5557    +2     
  Misses            1770     1770           
Files Coverage Δ
bullet-featherstone/src/JointFeatures.cc 52.02% <100.00%> (+0.56%) ⬆️

@azeey
Copy link
Contributor

azeey commented Aug 15, 2023

A simple test might be to add another link in the SDF file for this test before body similar to gazebosim/gz-sim#2076 with a fixed joint to world and a prismatic joint to body. Hopefully, the test expectations would remain the same.

@mjcarroll
Copy link
Contributor Author

A simple test might be to add another link in the SDF file for this test before body similar to gazebosim/gz-sim#2076 with a fixed joint to world and a prismatic joint to body. Hopefully, the test expectations would remain the same.

I added a test earlier to this effect and couldn't get it to fail with the previous implementation. Looking again.

@mjcarroll mjcarroll self-assigned this Oct 4, 2023
@mjcarroll mjcarroll merged commit 128f740 into gz-physics6 Oct 23, 2023
8 checks passed
@mjcarroll mjcarroll deleted the mjcarroll/featherstone_detachable branch October 23, 2023 23:33
mjcarroll added a commit that referenced this pull request Oct 24, 2023
The reported bug was that the detachable joint was not correctly linked
between objects' canonical links with bullet-featherstone.  While this
was addressed and confirmed working in #530, this adds a test to prevent
future regression (or for future physics implementations)

Signed-off-by: Michael Carroll <[email protected]>
mjcarroll added a commit that referenced this pull request Oct 30, 2023
The reported bug was that the detachable joint was not correctly linked
between objects' canonical links with bullet-featherstone.  While this
was addressed and confirmed working in #530, this adds a test to prevent
future regression (or for future physics implementations)

Signed-off-by: Michael Carroll <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

DetachableJoint doesn't attach the expected links with Bullet Featherstone physics
2 participants