Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1370 from BryceStevenWilley/fcl_plugin
Fcl as a Plugin
- Loading branch information
Showing
5 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...tection_fcl/include/moveit/collision_detection_fcl/collision_detector_fcl_plugin_loader.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* collision_detector_fcl_plugin_loader.h | ||
*/ | ||
|
||
#ifndef MOVEIT_COLLISION_DETECTION_FCL_COLLISION_DETECTOR_FCL_PLUGIN_LOADER_H_ | ||
#define MOVEIT_COLLISION_DETECTION_FCL_COLLISION_DETECTOR_FCL_PLUGIN_LOADER_H_ | ||
|
||
#include <moveit/collision_detection/collision_plugin.h> | ||
#include <moveit/collision_detection_fcl/collision_detector_allocator_fcl.h> | ||
|
||
namespace collision_detection | ||
{ | ||
class CollisionDetectorFCLPluginLoader : public CollisionPlugin | ||
{ | ||
public: | ||
virtual bool initialize(const planning_scene::PlanningScenePtr& scene, bool exclusive) const; | ||
}; | ||
} | ||
#endif // MOVEIT_COLLISION_DETECTION_FCL_COLLISION_DETECTOR_FCL_PLUGIN_LOADER_H_ |
13 changes: 13 additions & 0 deletions
13
moveit_core/collision_detection_fcl/src/collision_detector_fcl_plugin_loader.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <moveit/collision_detection_fcl/collision_detector_fcl_plugin_loader.h> | ||
#include <pluginlib/class_list_macros.h> | ||
|
||
namespace collision_detection | ||
{ | ||
bool CollisionDetectorFCLPluginLoader::initialize(const planning_scene::PlanningScenePtr& scene, bool exclusive) const | ||
{ | ||
scene->setActiveCollisionDetector(CollisionDetectorAllocatorFCL::create(), exclusive); | ||
return true; | ||
} | ||
} | ||
|
||
PLUGINLIB_EXPORT_CLASS(collision_detection::CollisionDetectorFCLPluginLoader, collision_detection::CollisionPlugin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<library path="lib/libcollision_detector_fcl_plugin"> | ||
<class name="FCL" type="collision_detection::CollisionDetectorFCLPluginLoader" | ||
base_class_type="collision_detection::CollisionPlugin"> | ||
<description> | ||
FCL Collision Detector, default for MoveIt. | ||
</description> | ||
</class> | ||
</library> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters