What is the difference between GeometryObject's disableCollision and activeCollisionPair? #2239
-
Hello all, I am fiddling around with pinocchio's collision checking and got a question? Why are there two ways to disable the collision checking of a GeometryObject? In here pinocchio/include/pinocchio/algorithm/parallel/geometry.hpp Lines 32 to 34 in ac0b1aa Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @joao-pm-santos96, Simple example: there is a wall in a scene; at some point in your simulation, the wall disappears (door opening, for example). |
Beta Was this translation helpful? Give feedback.
Hi @joao-pm-santos96,
Depending on the state of your system, you might want to dynamically deactivate a certain collision pair (for that you can use
geom_data.deactivateCollisionPair
).The
disableCollision
flag allows you to do that for all collision pairs involving a specific object, so you don't have to manually check in which collision pairs this object is involved.Simple example: there is a wall in a scene; at some point in your simulation, the wall disappears (door opening, for example).