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

Fix collision issue with detachable joints #31

Merged
merged 7 commits into from
Apr 23, 2020

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Apr 17, 2020

The issue occurs if a model is spawned and is attached to a parent model without a call to step() in between. This should be fixed in DART, but in the meantime, we can just call incrementVersion after moveTo is called on a DART BodyNode.

azeey added 2 commits April 17, 2020 14:14
The issue occurs if a model is spawned and is attached to a parent model
without a call to `step()` in between. This should be fixed in DART, but
in the meantime, we can just call `incrementVersion` after `moveTo` is
called on a DART BodyNode.
@mxgrey
Copy link
Contributor

mxgrey commented Apr 20, 2020

Just to clarify, what's the issue that occurs? Does one of the models fall through the floor?

@azeey
Copy link
Contributor Author

azeey commented Apr 20, 2020

Yes, the child model falls through the floor. It appears that the moved BodyNode and its descendants are not added to a CollisionGroup in DART which prevents any collision between the moved BodyNodes and other BodyNodes from being detected. Sorry, I should described the issue better.

dartsim/src/JointFeatures.cc Show resolved Hide resolved
dartsim/src/JointFeatures_TEST.cc Outdated Show resolved Hide resolved
dartsim/src/JointFeatures_TEST.cc Outdated Show resolved Hide resolved
azeey and others added 2 commits April 20, 2020 14:31
Co-Authored-By: Nate Koenig <nkoenig@users.noreply.github.com>
azeey added 2 commits April 22, 2020 18:45
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@azeey azeey merged commit 6f03a08 into gazebosim:ign-physics1 Apr 23, 2020
@azeey azeey deleted the attach_after_spawn branch April 23, 2020 01:36
@nkoenig nkoenig mentioned this pull request May 19, 2020
azeey added a commit that referenced this pull request Jun 24, 2021
…268)

When a joint is created between BodyNodes in different skeletons, the child BodyNode is moved to the skeleton of the parent BodyNode. When this happens, the BodyNode version of the child needs to be incremented. This is actually fixed by dartsim/dart#1445, but we don't have that merged into our fork. So in the meantime, we call incrementVersion after moveTo is called similar to #31.

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

Co-authored-by: Louise Poubel <louise@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants