-
Notifications
You must be signed in to change notification settings - Fork 417
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
The order of collision geometry in fcl::Contact #601
Comments
With 95% confidence, if you call either variant of If you need to harden your code to make sure this is definitively true, the answer is actually hiding in your question. Simply compare For the record, if those objects lie in a broadphase structure, you are not guaranteed that if they do collide that one will always be |
@SeanCurtis-TRI Thank you for the reply. The problem is, if I have two collision objects o1 and o2 that share the same collision geometry, the assertion It seems that |
Ah....I've never used the For other shapes, I'd predict that the normals and what not are better behaved. Feel free to submit a PR to respect the ordering of the parameters. I'll be happy to review it. It'll give me a chance to look at a corner of the code I've otherwise ignored so far. |
OK. I'm happy to provide a PR |
Hello,
I'm wondering if there is any guarantee of order consistency between fcl::collide and returned fcl::CollisionResult. I.e., if I call fcl::collide(o1, o2, request, result), does the result.contact.o1 is always equal to o1.getCollisionGeometry()?
If this is not the case, how can I get the correct correspondence between fcl::CollisionObject and fcl::CollsionGeometry? If the collision geometry is shared by two CollisionObject, the result.contact will have same CollisionGeometry address for both o1 and o2.
The text was updated successfully, but these errors were encountered: