Choreonoid  1.8
Public Member Functions | List of all members
cnoid::BodyCollisionDetector Class Reference

#include <BodyCollisionDetector.h>

Public Member Functions

 BodyCollisionDetector ()
 
virtual ~BodyCollisionDetector ()
 
void setCollisionDetector (CollisionDetector *collisionDetector)
 
CollisionDetectorcollisionDetector ()
 
void clearBodies ()
 
void enableGeometryHandleMap (bool on)
 
stdx::optional< CollisionDetector::GeometryHandlefindGeometryHandle (Link *link)
 
void addBody (Body *body, bool isSelfCollisionDetectionEnabled)
 
void addBody (Body *body, bool isSelfCollisionDetectionEnabled, std::function< Referenced *(Link *link, CollisionDetector::GeometryHandle geometry)> getObjectAssociatedWithLink)
 
bool makeReady ()
 
void updatePositions ()
 
void updatePositions (std::function< void(Referenced *object, Isometry3 *&out_position)> positionQuery)
 
void detectCollisions (std::function< void(const CollisionPair &collisionPair)> callback)
 

Constructor & Destructor Documentation

◆ BodyCollisionDetector()

BodyCollisionDetector::BodyCollisionDetector ( )

◆ ~BodyCollisionDetector()

BodyCollisionDetector::~BodyCollisionDetector ( )
virtual

Member Function Documentation

◆ addBody() [1/2]

void BodyCollisionDetector::addBody ( Body body,
bool  isSelfCollisionDetectionEnabled 
)

◆ addBody() [2/2]

void BodyCollisionDetector::addBody ( Body body,
bool  isSelfCollisionDetectionEnabled,
std::function< Referenced *(Link *link, CollisionDetector::GeometryHandle geometry)>  getObjectAssociatedWithLink 
)

◆ clearBodies()

void BodyCollisionDetector::clearBodies ( )

◆ collisionDetector()

CollisionDetector * BodyCollisionDetector::collisionDetector ( )

◆ detectCollisions()

void BodyCollisionDetector::detectCollisions ( std::function< void(const CollisionPair &collisionPair)>  callback)

◆ enableGeometryHandleMap()

void BodyCollisionDetector::enableGeometryHandleMap ( bool  on)

◆ findGeometryHandle()

stdx::optional< CollisionDetector::GeometryHandle > BodyCollisionDetector::findGeometryHandle ( Link link)

◆ makeReady()

bool BodyCollisionDetector::makeReady ( )

◆ setCollisionDetector()

void BodyCollisionDetector::setCollisionDetector ( CollisionDetector collisionDetector)

◆ updatePositions() [1/2]

void BodyCollisionDetector::updatePositions ( )

◆ updatePositions() [2/2]

void BodyCollisionDetector::updatePositions ( std::function< void(Referenced *object, Isometry3 *&out_position)>  positionQuery)

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