33 #ifndef DART_COLLISION_BULLET_BULLETCOLLISIONDETECTOR_HPP_
34 #define DART_COLLISION_BULLET_BULLETCOLLISIONDETECTOR_HPP_
37 #include "dart/config.hpp"
40 #include <assimp/scene.h>
41 #include <btBulletCollisionCommon.h>
49 class BulletCollisionObject;
58 static std::shared_ptr<BulletCollisionDetector>
create();
67 const std::string&
getType()
const override;
152 std::weak_ptr<BulletCollisionShape>
mShape;
const CollisionOption & option
Collision option of DART.
Definition: FCLCollisionDetector.cpp:154
CollisionResult * result
Collision result of DART.
Definition: FCLCollisionDetector.cpp:157
This deleter is responsible for deleting BulletCollsionShape objects and removing them from mShapeMap...
Definition: BulletCollisionDetector.hpp:131
dynamics::ConstShapePtr mShape
Definition: BulletCollisionDetector.hpp:144
void operator()(BulletCollisionShape *shape) const
Definition: BulletCollisionDetector.cpp:617
BulletCollisionShapeDeleter(BulletCollisionDetector *cd, const dynamics::ConstShapePtr &shape)
Definition: BulletCollisionDetector.cpp:606
BulletCollisionDetector * mBulletCollisionDetector
Definition: BulletCollisionDetector.hpp:142
Definition: BulletCollisionDetector.hpp:52
void notifyCollisionObjectDestroying(CollisionObject *object) override
Notify that a CollisionObject is destroying. Do nothing by default.
Definition: BulletCollisionDetector.cpp:353
bool collide(CollisionGroup *group, const CollisionOption &option=CollisionOption(false, 1u, nullptr), CollisionResult *result=nullptr) override
Perform collision check for a single group.
Definition: BulletCollisionDetector.cpp:213
std::unique_ptr< BulletCollisionShape > createBulletCollisionShape(const dynamics::ConstShapePtr &shape)
Definition: BulletCollisionDetector.cpp:402
BulletCollisionDetector()
Constructor.
Definition: BulletCollisionDetector.cpp:326
virtual ~BulletCollisionDetector()
Constructor.
Definition: BulletCollisionDetector.cpp:105
const std::string & getType() const override
Return collision detection engine type as a std::string.
Definition: BulletCollisionDetector.cpp:118
std::shared_ptr< BulletCollisionShape > claimBulletCollisionShape(const dynamics::ConstShapePtr &shape)
Definition: BulletCollisionDetector.cpp:361
static std::shared_ptr< BulletCollisionDetector > create()
Definition: BulletCollisionDetector.cpp:98
void refreshCollisionObject(CollisionObject *object) override
Update the collision geometry of a ShapeFrame.
Definition: BulletCollisionDetector.cpp:343
static Registrar< BulletCollisionDetector > mRegistrar
Definition: BulletCollisionDetector.hpp:164
void reclaimBulletCollisionShape(const dynamics::ConstShapePtr &shape)
Definition: BulletCollisionDetector.cpp:388
std::map< dynamics::ConstShapePtr, ShapeInfo > mShapeMap
Definition: BulletCollisionDetector.hpp:160
std::shared_ptr< CollisionDetector > cloneWithoutCollisionObjects() override
Create a clone of this CollisionDetector.
Definition: BulletCollisionDetector.cpp:112
double distance(CollisionGroup *group, const DistanceOption &option=DistanceOption(false, 0.0, nullptr), DistanceResult *result=nullptr) override
Get the minimum signed distance between the Shape pairs in the given CollisionGroup.
Definition: BulletCollisionDetector.cpp:301
static const std::string & getStaticType()
Get collision detector type for this class.
Definition: BulletCollisionDetector.cpp:124
std::unique_ptr< CollisionObject > createCollisionObject(const dynamics::ShapeFrame *shapeFrame) override
Create CollisionObject.
Definition: BulletCollisionDetector.cpp:333
std::unique_ptr< BulletCollisionGroup > mGroupForFiltering
Definition: BulletCollisionDetector.hpp:162
std::unique_ptr< CollisionGroup > createCollisionGroup() override
Create a collision group.
Definition: BulletCollisionDetector.cpp:132
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
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
Information for a shape that was generated by this collision detector.
Definition: BulletCollisionDetector.hpp:150
std::size_t mLastKnownVersion
The last version of the shape, as known by this collision detector.
Definition: BulletCollisionDetector.hpp:155
std::weak_ptr< BulletCollisionShape > mShape
A weak reference to the shape.
Definition: BulletCollisionDetector.hpp:152
Definition: BulletCollisionShape.hpp:47
Definition: CollisionOption.hpp:45
Definition: DistanceOption.hpp:45
Definition: DistanceResult.hpp:47