utils.cpp
Go to the documentation of this file.
00001 
00002 #include "rocon_tf_reconstructor/utils.h"
00003 
00004 namespace rocon {
00005 
00006 std::string space2underscore(std::string str)
00007 {
00008   for(int i = 0; i < str.length(); i++)
00009   {
00010       if(str[i] == ' ')
00011           str[i] = '_';
00012   }
00013   return str;
00014 }
00015 
00016 std::string get_ros_friendly_name(const std::string name)
00017 {
00018   std::string new_name = name;
00019   std::transform(new_name.begin(), new_name.end(), new_name.begin(), ::tolower);
00020 
00021   return space2underscore(new_name);
00022 }
00023 }


rocon_tf_reconstructor
Author(s):
autogenerated on Thu Jun 6 2019 18:17:53