-
Notifications
You must be signed in to change notification settings - Fork 27
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
Extract extended contact data (force, normal, penetration depth) #179
Extract extended contact data (force, normal, penetration depth) #179
Conversation
bead1a5
to
43477f4
Compare
43477f4
to
ff81894
Compare
@traversaro this PR is ready to be reviewed even though it all depends on how the upstream PR will be handled. Can you please double check the method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
assert contact1.bodyB == "cube1::cube" | ||
assert contact2.bodyB == "cube2::cube" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is cube1::cube always associated with contact1 (and cube2 with contact2)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the simulation is reproducible this order is always respected. Though, I had to check beforehand because in cases like this in which contacts are created in the same moment you cannot know a priory how contacts get detected.
Damn, I forgot to change the target branch to |
This PR shows how gazebosim/gz-physics#40 could be used to extract data provided by the DART ign-physics plugin.
Still in WIP state waiting to receive feedback from upstream.