bullet-featherstone: Add support for category bitmask - #884
Merged
Conversation
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
12 tasks
caguero
reviewed
Mar 6, 2026
Signed-off-by: Ian Chen <iche@intrinsic.ai>
9 tasks
Signed-off-by: Ian Chen <iche@intrinsic.ai>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <iche@intrinsic.ai>
iche033
force-pushed
the
iche033/bullet_category_bitmask
branch
from
March 7, 2026 00:14
70a581c to
3231ed1
Compare
Signed-off-by: Ian Chen <iche@intrinsic.ai>
Signed-off-by: Ian Chen <iche@intrinsic.ai>
caguero
approved these changes
Mar 9, 2026
Signed-off-by: Ian Chen <iche@intrinsic.ai>
iche033
added a commit
that referenced
this pull request
Mar 12, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai>
12 tasks
iche033
added a commit
that referenced
this pull request
Mar 19, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai>
mergify Bot
pushed a commit
that referenced
this pull request
Mar 19, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai> (cherry picked from commit 0c74a8a)
12 tasks
mergify Bot
pushed a commit
that referenced
this pull request
Mar 19, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai> (cherry picked from commit 0c74a8a)
12 tasks
iche033
added a commit
that referenced
this pull request
Mar 19, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai> (cherry picked from commit 0c74a8a)
iche033
added a commit
that referenced
this pull request
Mar 20, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai> (cherry picked from commit 0c74a8a)
iche033
added a commit
that referenced
this pull request
Mar 23, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai> (cherry picked from commit 0c74a8a)
12 tasks
mderbaso-deepx
pushed a commit
to DeepX-inc/gz-physics
that referenced
this pull request
Apr 13, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai> (cherry picked from commit 0c74a8a)
j-rivero
pushed a commit
that referenced
this pull request
Apr 28, 2026
Signed-off-by: Ian Chen <ichen@openrobotics.org> Signed-off-by: Ian Chen <iche@intrinsic.ai> Co-authored-by: Ian Chen <iche@intrinsic.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎉 New feature
builds on top of #804
Summary
Adds support for category bitmask for the bullet-featherstone physics engine. This PR implements the strategy outlined gazebosim/sdformat#1630 that adds this new feature while preserving existing behavior when only collide bitmasks are set.
Note: another important change I made in this PR is that I had to manually call
world->getCollisionWorld()->performDiscreteCollisionDetection();again (after clearing the broadphase cache and stepping sim) to force generation of up-to-date contact points in the same iteration. Without this, incorrect contacts are generated and the test fails.Test it
New test added in simulation_features.cc
To run
You can also play with the test world:
Boxes are grouped by colors, i.e. have the same category bitmasks, so boxes of the same color should not collide with each other.
Checklist
codecheckpassed (See contributing)Generated-by: Remove this if GenAI was not used.
Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-byandGenerated-bymessages.Backports: If this is a backport, please use Rebase and Merge instead.