Revision bfe17564
| src/server/middleware_ros.cpp | ||
|---|---|---|
| 27 | 27 | 
     | 
| 28 | 28 | 
    #include "server/middleware_ros.h"  | 
| 29 | 29 | 
     | 
| 30 | 
    #include <boost/range/algorithm/remove_if.hpp>  | 
|
| 31 | 30 | 
    #include <boost/algorithm/string/classification.hpp>  | 
| 32 | 31 | 
    using namespace std;  | 
| 33 | 32 | 
    using namespace boost;  | 
| ... | ... | |
| 47 | 46 | 
    //we have to take care of ros  | 
| 48 | 47 | 
            printf("> no active ros middleware, calling ros::init() and we will call tick() periodically!");
   | 
| 49 | 48 | 
    string node_name = "humotion_server__"+ scope;  | 
| 50 | 
            node_name.erase(boost::remove_if(node_name, boost::is_any_of("/")), node_name.end());
   | 
|
| 49 | 
    	node_name.erase(std::remove(node_name.begin(), node_name.end(), '/'), node_name.end());
   | 
|
| 51 | 50 | 
            printf("> registering on ROS as node %s\n",node_name.c_str());
   | 
| 52 | 51 | 
    ros::M_string no_remapping;  | 
| 53 | 52 | 
    ros::init(no_remapping, node_name);  | 
Also available in: Unified diff