CollisionCheckerPlugin.cpp
Go to the documentation of this file.
1 // Plugin.cpp
3 //
4 // Created on: Jan 27, 2014
5 // Author: mklingen
8 #include <openrave/plugin.h>
9 
10 using namespace OpenRAVE;
11 using namespace or_octomap;
12 
13 
14 OpenRAVE::InterfaceBasePtr CreateInterfaceValidated(OpenRAVE::InterfaceType type, const std::string& interfacename, std::istream& sinput, OpenRAVE::EnvironmentBasePtr penv)
15 {
16  if (type == OpenRAVE::PT_CollisionChecker && interfacename == "or_octomap_checker")
17  {
18  return OpenRAVE::InterfaceBasePtr(new OctomapCollisionChecker(penv));
19  }
20 
21  return InterfaceBasePtr();
22 }
23 
24 void GetPluginAttributesValidated(OpenRAVE::PLUGININFO& info)
25 {
26  info.interfacenames[OpenRAVE::PT_CollisionChecker].push_back("or_octomap_checker");
27 }
28 
29 OPENRAVE_PLUGIN_API void DestroyPlugin()
30 {
31  return;
32 }
OPENRAVE_PLUGIN_API void DestroyPlugin()
OpenRAVE::InterfaceBasePtr CreateInterfaceValidated(OpenRAVE::InterfaceType type, const std::string &interfacename, std::istream &sinput, OpenRAVE::EnvironmentBasePtr penv)
void GetPluginAttributesValidated(OpenRAVE::PLUGININFO &info)


or_octomap_plugin
Author(s): Yan Yu
autogenerated on Tue Oct 24 2017 18:02:48