40 getBaseName(
const std::string& full_name, std::string& base_name)
42 std::string tmp = full_name;
43 int i = tmp.rfind(
'/');
45 while((tmp.size() > 0) && (i >= (
int)(tmp.size() - 1)))
47 tmp = tmp.substr(0,tmp.size()-1);
53 ROS_ERROR(
"Base name extracted from \"%s\" is an empty string",
61 base_name = tmp.substr(i+1, tmp.size()-i-1);