DART 6.12.2
|
#include <CollisionFilter.hpp>
Public Member Functions | |
void | addBodyNodePairToBlackList (const dynamics::BodyNode *bodyNode1, const dynamics::BodyNode *bodyNode2) |
Add a BodyNode pair to the blacklist. | |
void | removeBodyNodePairFromBlackList (const dynamics::BodyNode *bodyNode1, const dynamics::BodyNode *bodyNode2) |
Remove a BodyNode pair from the blacklist. | |
void | removeAllBodyNodePairsFromBlackList () |
Remove all the BodyNode pairs from the blacklist. | |
bool | ignoresCollision (const CollisionObject *object1, const CollisionObject *object2) const override |
Returns true if the given two CollisionObjects should be checked by the collision detector, false otherwise. | |
bool | needCollision (const CollisionObject *object1, const CollisionObject *object2) const |
Returns true if the given two CollisionObjects should be checked by the collision detector, false otherwise. | |
Private Member Functions | |
bool | areAdjacentBodies (const dynamics::BodyNode *bodyNode1, const dynamics::BodyNode *bodyNode2) const |
Returns true if the two BodyNodes are adjacent BodyNodes (i.e., the two BodyNodes are connected by a Joint). | |
Private Attributes | |
detail::UnorderedPairs< dynamics::BodyNode > | mBodyNodeBlackList |
List of pairs to be ignored in the collision detection. | |
void dart::collision::BodyNodeCollisionFilter::addBodyNodePairToBlackList | ( | const dynamics::BodyNode * | bodyNode1, |
const dynamics::BodyNode * | bodyNode2 | ||
) |
Add a BodyNode pair to the blacklist.
|
private |
Returns true if the two BodyNodes are adjacent BodyNodes (i.e., the two BodyNodes are connected by a Joint).
|
overridevirtual |
Returns true if the given two CollisionObjects should be checked by the collision detector, false otherwise.
Implements dart::collision::CollisionFilter.
|
inherited |
Returns true if the given two CollisionObjects should be checked by the collision detector, false otherwise.
void dart::collision::BodyNodeCollisionFilter::removeAllBodyNodePairsFromBlackList | ( | ) |
Remove all the BodyNode pairs from the blacklist.
void dart::collision::BodyNodeCollisionFilter::removeBodyNodePairFromBlackList | ( | const dynamics::BodyNode * | bodyNode1, |
const dynamics::BodyNode * | bodyNode2 | ||
) |
Remove a BodyNode pair from the blacklist.
|
private |
List of pairs to be ignored in the collision detection.