39 #ifndef HPP_FCL_BROADPHASE_DEFAULT_BROADPHASE_CALLBACKS_H 40 #define HPP_FCL_BROADPHASE_DEFAULT_BROADPHASE_CALLBACKS_H 213 size_t numCollisionPairs()
const;
216 const std::vector<CollisionPair>& getCollisionPairs()
const;
222 bool exist(
const CollisionPair& pair)
const;
227 std::vector<CollisionPair> collision_pairs;
235 #endif // HPP_FCL_BROADPHASE_DEFAULT_BROADPHASE_CALLBACKS_H
request to the distance computation
Collision data stores the collision request and the result given by collision algorithm.
CollisionRequest request
Collision request.
bool done
Whether the distance iteration can stop.
Base callback class for collision queries. This class can be supersed by child classes to provide des...
DistanceResult result
Distance result.
virtual ~CollisionCallBackCollect()
request to the collision algorithm
HPP_FCL_DLLAPI FCL_REAL distance(const Matrix3f &R0, const Vec3f &T0, const kIOS &b1, const kIOS &b2, Vec3f *P=NULL, Vec3f *Q=NULL)
Approximate distance between two kIOS bounding volumes.
DistanceRequest request
Distance request.
Collision callback to collect collision pairs potentially in contacts.
Default collision callback to check collision between collision objects.
CollisionResult result
Collision result.
bool defaultDistanceFunction(CollisionObject *o1, CollisionObject *o2, void *data, FCL_REAL &dist)
Collision data for use with the DefaultContinuousCollisionFunction. It stores the collision request a...
virtual ~DistanceCallBackDefault()
virtual ~CollisionCallBackDefault()
HPP_FCL_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, including num of max contacts, whether perform exhaustive collision (i.e., returning returning all the contact points), whether return detailed contact information (i.e., normal, contact point, depth; otherwise only contact primitive id is returned), this function performs the collision between them. Return value is the number of contacts generated between the two objects.
std::pair< CollisionObject *, CollisionObject * > CollisionPair
Default distance callback to check collision between collision objects.
bool done
Whether the collision iteration can stop.
the object for collision or distance computation, contains the geometry and the transform information...
bool defaultCollisionFunction(CollisionObject *o1, CollisionObject *o2, void *data)
Provides a simple callback for the collision query in the BroadPhaseCollisionManager. It assumes the data parameter is non-null and points to an instance of CollisionData. It simply invokes the collide() method on the culled pair of geometries and stores the results in the data's CollisionResult instance.
Base callback class for distance queries. This class can be supersed by child classes to provide desi...
Distance data stores the distance request and the result given by distance algorithm.