Skip to content

Zero penetration depth with two equal boxes on same position #578

Answered by lmontaut
maxwave11 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @maxwave11,
We are working on the next major release of hpp-fcl. If I try your code with the latest commit of the devel branch, I get a penetration depth of -1.0 like expected.
Also, quick note: contact.pos is not the witness point on shape1.
We have contact.pos = (p1 + p2) / 2 where p1 = contact.nearest_points[0] and p2 = contact.nearest_points[1], hence p1 and p2 are the witness points on the shapes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maxwave11
Comment options

Answer selected by lmontaut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants