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

#include <AISTCollisionDetector.h>

Inheritance diagram for cnoid::AISTCollisionDetector:
cnoid::CollisionDetector cnoid::CollisionDetectorDistanceAPI cnoid::Referenced

Public Member Functions

 AISTCollisionDetector ()
 
virtual ~AISTCollisionDetector ()
 
virtual const char * name () const override
 
virtual CollisionDetectorclone () const override
 
virtual void clearGeometries () override
 
virtual int numGeometries () const override
 
virtual stdx::optional< GeometryHandleaddGeometry (SgNode *geometry) override
 
virtual void setCustomObject (GeometryHandle geometry, Referenced *object) override
 
virtual void setGeometryStatic (GeometryHandle geometry, bool isStatic=true) override
 
virtual void ignoreGeometryPair (GeometryHandle geometry1, GeometryHandle geometry2, bool ignore=true) override
 
virtual bool makeReady () override
 
virtual void updatePosition (GeometryHandle geometry, const Isometry3 &position) override
 
virtual void updatePositions (std::function< void(Referenced *object, Isometry3 *&out_Position)> positionQuery) override
 
virtual void detectCollisions (std::function< void(const CollisionPair &collisionPair)> callback) override
 
virtual double detectDistance (GeometryHandle geometry1, GeometryHandle geometry2, Vector3 &out_point1, Vector3 &out_point2) override
 
void setNumThreads (int n)
 
- Public Member Functions inherited from cnoid::CollisionDetector
virtual ~CollisionDetector ()
 
virtual void updatePositions (std::function< void(Referenced *object, Isometry3 *&out_position)> positionQuery)=0
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Additional Inherited Members

- Public Types inherited from cnoid::CollisionDetector
typedef intptr_t GeometryHandle
 
- Static Public Member Functions inherited from cnoid::CollisionDetector
static bool registerFactory (const std::string &name, std::function< CollisionDetector *()> factory)
 
static int numFactories ()
 
static std::string factoryName (int factoryIndex)
 
static int factoryIndex (const std::string &name)
 
static CollisionDetectorcreate (int factoryIndex)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ AISTCollisionDetector()

AISTCollisionDetector::AISTCollisionDetector ( )

◆ ~AISTCollisionDetector()

AISTCollisionDetector::~AISTCollisionDetector ( )
virtual

Member Function Documentation

◆ addGeometry()

stdx::optional< GeometryHandle > AISTCollisionDetector::addGeometry ( SgNode geometry)
overridevirtual
Returns
A handle of the geometry in the collision detector

Implements cnoid::CollisionDetector.

◆ clearGeometries()

void AISTCollisionDetector::clearGeometries ( )
overridevirtual

◆ clone()

CollisionDetector * AISTCollisionDetector::clone ( ) const
overridevirtual
Note
The geometries and the non interfarence pairs of them are not copied to the clone object. That is same as the state after calling clearGeometries();

Implements cnoid::CollisionDetector.

◆ detectCollisions()

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

◆ detectDistance()

double AISTCollisionDetector::detectDistance ( GeometryHandle  geometry1,
GeometryHandle  geometry2,
Vector3 out_point1,
Vector3 out_point2 
)
overridevirtual

◆ ignoreGeometryPair()

void AISTCollisionDetector::ignoreGeometryPair ( GeometryHandle  geometry1,
GeometryHandle  geometry2,
bool  ignore = true 
)
overridevirtual

◆ makeReady()

bool AISTCollisionDetector::makeReady ( )
overridevirtual

◆ name()

const char * AISTCollisionDetector::name ( ) const
overridevirtual

◆ numGeometries()

int AISTCollisionDetector::numGeometries ( ) const
overridevirtual

◆ setCustomObject()

void AISTCollisionDetector::setCustomObject ( GeometryHandle  geometry,
Referenced object 
)
overridevirtual

◆ setGeometryStatic()

void AISTCollisionDetector::setGeometryStatic ( GeometryHandle  geometry,
bool  isStatic = true 
)
overridevirtual

◆ setNumThreads()

void AISTCollisionDetector::setNumThreads ( int  n)

◆ updatePosition()

void AISTCollisionDetector::updatePosition ( GeometryHandle  geometry,
const Isometry3 position 
)
overridevirtual

◆ updatePositions()

void AISTCollisionDetector::updatePositions ( std::function< void(Referenced *object, Isometry3 *&out_Position)>  positionQuery)
overridevirtual

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