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: Support empty links #665

Merged
merged 3 commits into from
Jul 9, 2024
Merged

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Jul 9, 2024

🦟 Bug fix

Summary

It was found that empty links connected by joints do not respond to joint commands as they do not have a collision object associated with it. This PR fixes the issue by initializing a link collider with an empty compound shape for links without collisions.

I refactored the code for creating a link collider into its own helper function.

To test

Previously collisions were added to empty links in test.world in #658 and that allowed joint vel control tests to pass. This is no longer necessary. I removed those collisions and the tests should still pass.

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.

iche033 added 2 commits July 9, 2024 18:16
Signed-off-by: Ian Chen <[email protected]>
@iche033 iche033 requested review from azeey, mxgrey and scpeters as code owners July 9, 2024 18:24
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Jul 9, 2024
Signed-off-by: Ian Chen <[email protected]>
@iche033 iche033 merged commit cca7e92 into gz-physics7 Jul 9, 2024
9 checks passed
@iche033 iche033 deleted the bullet_empty_link branch July 9, 2024 21:05
Copy link
Member

@scpeters scpeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little slow, just one small nit, but looks good to me

/// \brief Create and initialze the link collider in link info
/// \param[in] _linkID ID of link to create the collider for
/// \param[in] _isStatic True if the link is static
/// \param[in] _shape Collision shape to attach to link
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// \param[in] _shape Collision shape to attach to link
/// \param[in] _shape Collision shape to attach to link
/// \param[in] _shapeTF Pose offset for collision shape

nit: add \param[in] for _shapeTF

@scpeters scpeters mentioned this pull request Aug 26, 2024
9 tasks
@iche033 iche033 added the Bullet Bullet engine label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bullet Bullet engine 🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants