Plugin API for loading a custom collision detection robot/world. More...
#include <collision_plugin.h>
Public Member Functions | |
CollisionPlugin () | |
virtual bool | initialize (const planning_scene::PlanningScenePtr &scene, bool exclusive) const =0 |
This should be used to load your collision plugin. More... | |
virtual | ~CollisionPlugin () |
Plugin API for loading a custom collision detection robot/world.
Typical Usage:
namespace my_collision_checker {
class MyCollisionDetectorAllocator : public collision_detection::CollisionDetectorAllocatorTemplate<MyCollisionEnv, MyCollisionDetectorAllocator> { public: const std::string& getName() const override { static const std::string NAME = "my_checker"; return NAME; } static const std::string NAME_; };
}
namespace collision_detection {
class MyCollisionDetectionLoader : public CollisionPlugin { public: virtual bool initialize(const planning_scene::PlanningScenePtr& scene, bool exclusive) const { scene->setActiveCollisionDetector(my_collision_checker::MyCollisionDetectorAllocator::create(), exclusive); return true; } };
Definition at line 112 of file collision_plugin.h.
|
inline |
Definition at line 115 of file collision_plugin.h.
|
inlinevirtual |
Definition at line 118 of file collision_plugin.h.
|
pure virtual |
This should be used to load your collision plugin.
Implemented in collision_detection::CollisionDetectorBtPluginLoader, and collision_detection::CollisionDetectorFCLPluginLoader.