6 #ifndef CNOID_AIST_COLLISION_DETECTOR_AIST_COLLISION_DETECTOR_H
7 #define CNOID_AIST_COLLISION_DETECTOR_AIST_COLLISION_DETECTOR_H
9 #include <cnoid/CollisionDetector>
10 #include "exportdecl.h"
14 class AISTCollisionDetectorImpl;
21 virtual const char* name()
const override;
23 virtual void clearGeometries()
override;
24 virtual int numGeometries()
const override;
25 virtual stdx::optional<GeometryHandle> addGeometry(
SgNode* geometry)
override;
27 virtual void setGeometryStatic(
GeometryHandle geometry,
bool isStatic =
true)
override;
29 virtual bool makeReady()
override;
31 virtual void updatePositions(std::function<
void(
Referenced*
object,
Isometry3*& out_Position)> positionQuery)
override;
32 virtual void detectCollisions(std::function<
void(
const CollisionPair& collisionPair)> callback)
override;
38 void setNumThreads(
int n);
41 AISTCollisionDetectorImpl* impl;