Go to the documentation of this file.
44 assert(
data !=
nullptr);
49 if (collision_data->done)
return true;
51 collide(o1, o2, request, result);
55 collision_data->done =
true;
58 return collision_data->done;
68 assert(
data !=
nullptr);
82 if (dist <= 0)
return true;
93 : max_size(max_size) {
107 const std::vector<CollisionCallBackCollect::CollisionPair>&
116 return exist(std::make_pair(o1, o2));
const std::vector< CollisionPair > & getCollisionPairs() const
Returns a const reference to the active collision_pairs to check.
bool isCollision() const
return binary collision result
Distance data stores the distance request and the result given by distance algorithm.
void init()
Reset the callback.
std::pair< CollisionObject *, CollisionObject * > CollisionPair
bool distance(CollisionObject *o1, CollisionObject *o2, CoalScalar &dist)
Distance evaluation between two objects in collision. This callback will cause the broadphase evaluat...
COAL_DLLAPI CoalScalar distance(const Matrix3s &R0, const Vec3s &T0, const kIOS &b1, const kIOS &b2, Vec3s *P=NULL, Vec3s *Q=NULL)
Approximate distance between two kIOS bounding volumes.
bool exist(const CollisionPair &pair) const
Check whether a collision pair exists.
CoalScalar min_distance
minimum distance between two objects. If two objects are in collision and DistanceRequest::enable_sig...
size_t numCollisionPairs() const
Returns the number of registered collision pairs.
request to the distance computation
bool defaultCollisionFunction(CollisionObject *o1, CollisionObject *o2, void *data)
Provides a simple callback for the collision query in the BroadPhaseCollisionManager....
std::vector< CollisionPair > collision_pairs
CollisionCallBackCollect(const size_t max_size)
Default constructor.
request to the collision algorithm
the object for collision or distance computation, contains the geometry and the transform information
bool defaultDistanceFunction(CollisionObject *o1, CollisionObject *o2, void *data, CoalScalar &dist)
Collision data for use with the DefaultContinuousCollisionFunction. It stores the collision request a...
size_t num_max_contacts
The maximum number of contacts that can be returned.
COAL_DLLAPI std::size_t collide(const CollisionObject *o1, const CollisionObject *o2, const CollisionRequest &request, CollisionResult &result)
Main collision interface: given two collision objects, and the requirements for contacts,...
Collision data stores the collision request and the result given by collision algorithm.
bool collide(CollisionObject *o1, CollisionObject *o2)
Collision evaluation between two objects in collision. This callback will cause the broadphase evalua...
bool collide(CollisionObject *o1, CollisionObject *o2)
Collision evaluation between two objects in collision. This callback will cause the broadphase evalua...
size_t numContacts() const
number of contacts found
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:57