pinocchio  3.3.1
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
CollisionCallBackDefault Struct Reference
Inheritance diagram for CollisionCallBackDefault:
Collaboration diagram for CollisionCallBackDefault:

Public Member Functions

 CollisionCallBackDefault (const GeometryModel &geometry_model, GeometryData &geometry_data, bool stopAtFirstCollision=false)
 
bool collide (hpp::fcl::CollisionObject *o1, hpp::fcl::CollisionObject *o2)
 
void done () final
 Callback method called after the termination of a collisition detection algorithm. The default implementation does nothing.
 
void init ()
 
bool stop () const final
 If true, the stopping criteria related to the collision callback has been met and one can stop.
 
- Public Member Functions inherited from CollisionCallBackBase
 CollisionCallBackBase (const GeometryModel &geometry_model, GeometryData &geometry_data)
 
GeometryDatagetGeometryData ()
 
const GeometryDatagetGeometryData () const
 
const GeometryModelgetGeometryModel () const
 

Public Attributes

PairIndex collisionPairIndex
 The collision index of the first pair in collision.
 
size_t count
 Number of visits of the collide method.
 
bool stopAtFirstCollision
 Whether to stop or not when localizing a first collision.
 
- Public Attributes inherited from CollisionCallBackBase
bool accumulate
 Whether the callback is used in an accumulate mode where several collide methods are called successively.
 
bool collision
 Whether there is a collision or not.
 

Additional Inherited Members

- Protected Attributes inherited from CollisionCallBackBase
GeometryDatageometry_data_ptr
 Geometry data associated to the callback.
 
const GeometryModelgeometry_model_ptr
 Geometry model associated to the callback.
 

Detailed Description

Definition at line 66 of file broadphase-callbacks.hpp.


The documentation for this struct was generated from the following file: