rtt_ros_service.cpp
Go to the documentation of this file.
1 #include <cstdlib>
2 #include <list>
3 #include <queue>
4 #include <sstream>
5 #include <set>
6 
7 #include <boost/filesystem.hpp>
8 #include <boost/version.hpp>
9 
10 #include <libxml/parser.h>
11 #include <libxml/xpath.h>
12 #include <libxml/xpathInternals.h>
13 #include <libxml/tree.h>
14 
15 #include <rtt/RTT.hpp>
17 
19 #include <rtt/Logger.hpp>
20 
21 #include <rospack/rospack.h>
22 
23 #include <rtt_ros/rtt_ros.h>
24 
25 static void loadROSService(){
27 
28  ros->doc("RTT service for loading RTT plugins ");
29 
30  // ROS Package-importing
31  ros->addOperation("import", &rtt_ros::import).doc(
32  "Imports the Orocos plugins from a given ROS package (if found) along with the plugins of all of the package's run or exec dependencies as listed in the package.xml.").arg(
33  "package", "The ROS package name.");
34 }
35 
36 using namespace RTT;
37 extern "C" {
39  if (c != 0) return false;
41  return true;
42  }
43  std::string getRTTPluginName (){
44  return "ros";
45  }
46  std::string getRTTTargetName (){
47  return OROCOS_TARGET_NAME;
48  }
49 }
std::string getRTTTargetName()
std::string getRTTPluginName()
boost::shared_ptr< Service > shared_ptr
bool import(const std::string &package)
Import a ROS package and all of its rtt_ros/plugin_depend dependencies.
Definition: rtt_ros.cpp:27
bool loadRTTPlugin(RTT::TaskContext *c)
static void loadROSService()
static RTT_API Service::shared_ptr Instance()


rtt_ros
Author(s): Ruben Smits
autogenerated on Sat Jun 8 2019 18:04:54