33 #ifndef DART_COLLISION_ODE_ODECOLLISIONDETECTOR_HPP_
34 #define DART_COLLISION_ODE_ODECOLLISIONDETECTOR_HPP_
40 #define MAX_COLLIDE_RETURNS 250
59 static std::shared_ptr<OdeCollisionDetector>
create();
68 const std::string&
getType()
const override;
const CollisionOption & option
Collision option of DART.
Definition: FCLCollisionDetector.cpp:154
CollisionResult * result
Collision result of DART.
Definition: FCLCollisionDetector.cpp:157
#define MAX_COLLIDE_RETURNS
Definition: OdeCollisionDetector.hpp:40
Definition: CollisionDetector.hpp:56
virtual std::unique_ptr< CollisionGroup > createCollisionGroup()=0
Create a collision group.
Definition: CollisionGroup.hpp:51
Definition: CollisionObject.hpp:45
Definition: CollisionResult.hpp:52
OdeCollisionDetector wraps the ODE collision detector.
Definition: OdeCollisionDetector.hpp:53
static Registrar< OdeCollisionDetector > mRegistrar
Definition: OdeCollisionDetector.hpp:124
std::unique_ptr< CollisionObject > createCollisionObject(const dynamics::ShapeFrame *shapeFrame) override
Create CollisionObject.
Definition: OdeCollisionDetector.cpp:233
static const std::string & getStaticType()
Get collision detector type for this class.
Definition: OdeCollisionDetector.cpp:142
virtual ~OdeCollisionDetector()
Constructor.
Definition: OdeCollisionDetector.cpp:120
const std::string & getType() const override
Return collision detection engine type as a std::string.
Definition: OdeCollisionDetector.cpp:136
dWorldID mWorldId
Top-level world for all bodies.
Definition: OdeCollisionDetector.hpp:117
dWorldID getOdeWorldId() const
Definition: OdeCollisionDetector.cpp:251
std::shared_ptr< CollisionDetector > cloneWithoutCollisionObjects() override
Create a clone of this CollisionDetector.
Definition: OdeCollisionDetector.cpp:130
dContactGeom contactCollisions[250]
Definition: OdeCollisionDetector.hpp:123
void refreshCollisionObject(CollisionObject *object) override
Update the collision geometry of a ShapeFrame.
Definition: OdeCollisionDetector.cpp:241
static std::shared_ptr< OdeCollisionDetector > create()
Definition: OdeCollisionDetector.cpp:113
bool collide(CollisionGroup *group, const CollisionOption &option=CollisionOption(false, 1u, nullptr), CollisionResult *result=nullptr) override
Perform collision check for a single group.
Definition: OdeCollisionDetector.cpp:155
std::unique_ptr< CollisionGroup > createCollisionGroup() override
Create a collision group.
Definition: OdeCollisionDetector.cpp:149
dGeomID createOdeCollisionGeometry(const dynamics::ConstShapePtr &shape)
double distance(CollisionGroup *group, const DistanceOption &option=DistanceOption(false, 0.0, nullptr), DistanceResult *result=nullptr) override
Definition: OdeCollisionDetector.cpp:196
OdeCollisionDetector()
Constructor.
Definition: OdeCollisionDetector.cpp:219
Definition: OdeCollisionObject.hpp:49
Helper class to register a object creator function to the Singleton.
Definition: Factory.hpp:121
Definition: ShapeFrame.hpp:164
std::shared_ptr< const Shape > ConstShapePtr
Definition: SmartPointer.hpp:81
Definition: BulletCollisionDetector.cpp:63
Definition: CollisionOption.hpp:45
Definition: DistanceOption.hpp:45
Definition: DistanceResult.hpp:47