Public Types | Public Member Functions | Protected Attributes | List of all members
hpp::fcl::CollisionCallBackCollect Struct Reference

Collision callback to collect collision pairs potentially in contacts. More...

#include <default_broadphase_callbacks.h>

Inheritance diagram for hpp::fcl::CollisionCallBackCollect:
Inheritance graph
[legend]

Public Types

typedef std::pair< CollisionObject *, CollisionObject * > CollisionPair
 

Public Member Functions

bool collide (CollisionObject *o1, CollisionObject *o2)
 Collision evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true. More...
 
 CollisionCallBackCollect (const size_t max_size)
 Default constructor. More...
 
bool exist (const CollisionPair &pair) const
 Check wether a collision pair exists. More...
 
const std::vector< CollisionPair > & getCollisionPairs () const
 Returns a const reference to the active collision_pairs to check. More...
 
void init ()
 Reset the callback. More...
 
size_t numCollisionPairs () const
 Returns the number of registered collision pairs. More...
 
virtual ~CollisionCallBackCollect ()
 
- Public Member Functions inherited from hpp::fcl::CollisionCallBackBase
virtual bool operator() (CollisionObject *o1, CollisionObject *o2)
 Functor call associated to the collide operation. More...
 

Protected Attributes

std::vector< CollisionPaircollision_pairs
 
size_t max_size
 

Detailed Description

Collision callback to collect collision pairs potentially in contacts.

Definition at line 204 of file default_broadphase_callbacks.h.

Member Typedef Documentation

◆ CollisionPair

Definition at line 205 of file default_broadphase_callbacks.h.

Constructor & Destructor Documentation

◆ CollisionCallBackCollect()

hpp::fcl::CollisionCallBackCollect::CollisionCallBackCollect ( const size_t  max_size)

Default constructor.

Definition at line 93 of file default_broadphase_callbacks.cpp.

◆ ~CollisionCallBackCollect()

virtual hpp::fcl::CollisionCallBackCollect::~CollisionCallBackCollect ( )
inlinevirtual

Definition at line 224 of file default_broadphase_callbacks.h.

Member Function Documentation

◆ collide()

bool hpp::fcl::CollisionCallBackCollect::collide ( CollisionObject o1,
CollisionObject o2 
)
virtual

Collision evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true.

Parameters
[in]o1Collision object #1.
[in]o2Collision object #2.

Implements hpp::fcl::CollisionCallBackBase.

Definition at line 98 of file default_broadphase_callbacks.cpp.

◆ exist()

bool hpp::fcl::CollisionCallBackCollect::exist ( const CollisionPair pair) const

Check wether a collision pair exists.

Definition at line 115 of file default_broadphase_callbacks.cpp.

◆ getCollisionPairs()

const std::vector< CollisionCallBackCollect::CollisionPair > & hpp::fcl::CollisionCallBackCollect::getCollisionPairs ( ) const

Returns a const reference to the active collision_pairs to check.

Definition at line 109 of file default_broadphase_callbacks.cpp.

◆ init()

void hpp::fcl::CollisionCallBackCollect::init ( )
virtual

Reset the callback.

Reimplemented from hpp::fcl::CollisionCallBackBase.

Definition at line 113 of file default_broadphase_callbacks.cpp.

◆ numCollisionPairs()

size_t hpp::fcl::CollisionCallBackCollect::numCollisionPairs ( ) const

Returns the number of registered collision pairs.

Definition at line 104 of file default_broadphase_callbacks.cpp.

Member Data Documentation

◆ collision_pairs

std::vector<CollisionPair> hpp::fcl::CollisionCallBackCollect::collision_pairs
protected

Definition at line 224 of file default_broadphase_callbacks.h.

◆ max_size

size_t hpp::fcl::CollisionCallBackCollect::max_size
protected

Definition at line 228 of file default_broadphase_callbacks.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03