pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
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.

Constructor & Destructor Documentation

◆ CollisionCallBackDefault()

CollisionCallBackDefault ( const GeometryModel geometry_model,
GeometryData geometry_data,
bool  stopAtFirstCollision = false 
)
inline

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

Member Function Documentation

◆ collide()

bool collide ( hpp::fcl::CollisionObject *  o1,
hpp::fcl::CollisionObject *  o2 
)
inline

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

◆ done()

void done ( )
inlinefinalvirtual

Callback method called after the termination of a collisition detection algorithm. The default implementation does nothing.

Reimplemented from CollisionCallBackBase.

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

◆ init()

void init ( )
inline

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

◆ stop()

bool stop ( ) const
inlinefinalvirtual

If true, the stopping criteria related to the collision callback has been met and one can stop.

Implements CollisionCallBackBase.

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

Member Data Documentation

◆ collisionPairIndex

PairIndex collisionPairIndex

The collision index of the first pair in collision.

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

◆ count

size_t count

Number of visits of the collide method.

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

◆ stopAtFirstCollision

bool stopAtFirstCollision

Whether to stop or not when localizing a first collision.

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


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