Skip to content
Snippets Groups Projects
Commit 7673ad4d authored by Laia Freixas Mateu's avatar Laia Freixas Mateu
Browse files

solved small bug of ROS_DEBUG

parent 124c8325
No related branches found
No related tags found
No related merge requests found
......@@ -860,11 +860,11 @@ bool CNavModule::set_parameter(const std::string &name_space,const std::string &
std::string::size_type pos;
std::string rem_name_space,current_name_space;
ROS_DEBUG("%s", name_space);
ROS_DEBUG("%s", name_space.c_str());
if((pos=name_space.find("move_base"))!=std::string::npos)// string exists
{
rem_name_space=name_space.substr(pos);
ROS_DEBUG("%s", rem_name_space);
ROS_DEBUG("%s", rem_name_space.c_str());
if((pos=rem_name_space.find("/"))!=std::string::npos)// there exist some sub name_space
{
current_name_space=rem_name_space.substr(0,pos);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment