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>
56 static std::shared_ptr<BulletCollisionDetector>
create();
66 const std::string&
getType()
const override;
103 const Eigen::Vector3d& from,
104 const Eigen::Vector3d& to,
152 std::weak_ptr<BulletCollisionShape>
mShape;
const CollisionOption & option
Collision option of DART.
Definition: FCLCollisionDetector.cpp:157
CollisionResult * result
Collision result of DART.
Definition: FCLCollisionDetector.cpp:160
This deleter is responsible for deleting BulletCollsionShape objects and removing them from mShapeMap...
Definition: BulletCollisionDetector.hpp:135
dynamics::ConstShapePtr mShape
Definition: BulletCollisionDetector.hpp:145
void operator()(BulletCollisionShape *shape) const
Definition: BulletCollisionDetector.cpp:709
BulletCollisionShapeDeleter(BulletCollisionDetector *cd, const dynamics::ConstShapePtr &shape)
Definition: BulletCollisionDetector.cpp:701
BulletCollisionDetector * mBulletCollisionDetector
Definition: BulletCollisionDetector.hpp:143
Definition: BulletCollisionDetector.hpp:50
void notifyCollisionObjectDestroying(CollisionObject *object) override
Notify that a CollisionObject is destroying. Do nothing by default.
Definition: BulletCollisionDetector.cpp:449
std::shared_ptr< CollisionDetector > cloneWithoutCollisionObjects() const override
Create a clone of this CollisionDetector.
Definition: BulletCollisionDetector.cpp:128
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:228
std::unique_ptr< BulletCollisionShape > createBulletCollisionShape(const dynamics::ConstShapePtr &shape)
Definition: BulletCollisionDetector.cpp:498
BulletCollisionDetector()
Constructor.
Definition: BulletCollisionDetector.cpp:423
const std::string & getType() const override
Return collision detection engine type as a std::string.
Definition: BulletCollisionDetector.cpp:134
std::shared_ptr< BulletCollisionShape > claimBulletCollisionShape(const dynamics::ConstShapePtr &shape)
Definition: BulletCollisionDetector.cpp:457
static std::shared_ptr< BulletCollisionDetector > create()
Definition: BulletCollisionDetector.cpp:114
~BulletCollisionDetector() override
Constructor.
Definition: BulletCollisionDetector.cpp:121
void refreshCollisionObject(CollisionObject *object) override
Update the collision geometry of a ShapeFrame.
Definition: BulletCollisionDetector.cpp:439
static Registrar< BulletCollisionDetector > mRegistrar
Definition: BulletCollisionDetector.hpp:163
void reclaimBulletCollisionShape(const dynamics::ConstShapePtr &shape)
Definition: BulletCollisionDetector.cpp:484
std::map< dynamics::ConstShapePtr, ShapeInfo > mShapeMap
Definition: BulletCollisionDetector.hpp:159
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:325
static const std::string & getStaticType()
Get collision detector type for this class.
Definition: BulletCollisionDetector.cpp:140
std::unique_ptr< CollisionObject > createCollisionObject(const dynamics::ShapeFrame *shapeFrame) override
Create CollisionObject.
Definition: BulletCollisionDetector.cpp:429
std::unique_ptr< BulletCollisionGroup > mGroupForFiltering
Definition: BulletCollisionDetector.hpp:161
std::unique_ptr< CollisionGroup > createCollisionGroup() override
Create a collision group.
Definition: BulletCollisionDetector.cpp:147
bool raycast(CollisionGroup *group, const Eigen::Vector3d &from, const Eigen::Vector3d &to, const RaycastOption &option=RaycastOption(), RaycastResult *result=nullptr) override
Performs raycast to a collision group.
Definition: BulletCollisionDetector.cpp:362
Definition: CollisionDetector.hpp:58
virtual std::unique_ptr< CollisionGroup > createCollisionGroup()=0
Create a collision group.
Definition: CollisionGroup.hpp:53
Definition: CollisionObject.hpp:45
Definition: CollisionResult.hpp:52
Helper class to register a object creator function to the Singleton.
Definition: Factory.hpp:125
Definition: ShapeFrame.hpp:192
std::shared_ptr< const Shape > ConstShapePtr
Definition: SmartPointer.hpp:81
Definition: BulletCollisionDetector.cpp:65
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
Definition: RaycastOption.hpp:43
Definition: RaycastResult.hpp:63