diff --git a/include/iri_ros_tools/module.h b/include/iri_ros_tools/module.h index db73bb10c1e692b152419f9b4c621f4756106bc5..c93fac45989468fc70fdeef20d0a9f53413ef6ca 100644 --- a/include/iri_ros_tools/module.h +++ b/include/iri_ros_tools/module.h @@ -252,7 +252,7 @@ CModule<ModuleCfg>::CModule(const std::string &name,const std::string &name_spac this->module_thread_id=name+"_module_thread"; this->thread_server->create_thread(this->module_thread_id); this->thread_server->attach_thread(this->module_thread_id,this->module_thread,this); - this->name=this->module_nh.getNamespace()+"/"+name; + this->name=this->module_nh.getNamespace(); } catch (CException &ex) { diff --git a/include/iri_ros_tools/module_action.h b/include/iri_ros_tools/module_action.h index a74dc2f222eedb47322ebfa729ade0602c4a5f88..3ed6bc3292fb3cdc5ee674eaa4d9d2f47c63ea91 100644 --- a/include/iri_ros_tools/module_action.h +++ b/include/iri_ros_tools/module_action.h @@ -501,7 +501,7 @@ class CModuleAction }; template<class action_ros> -CModuleAction<action_ros>::CModuleAction(const std::string &name,const std::string &name_space):nh(ros::this_node::getName()+"/"+name_space) +CModuleAction<action_ros>::CModuleAction(const std::string &name,const std::string &name_space):nh(name_space) { this->name=this->nh.getNamespace()+"/"+name; this->status=ACTION_IDLE; diff --git a/include/iri_ros_tools/module_service.h b/include/iri_ros_tools/module_service.h index e05dce26bab49e5d71b9b61b9179aae59179da83..d8d1aaa3ef2b61c672aa553098939e2cd8a219de 100644 --- a/include/iri_ros_tools/module_service.h +++ b/include/iri_ros_tools/module_service.h @@ -169,7 +169,7 @@ class CModuleService }; template<class service_msg> -CModuleService<service_msg>::CModuleService(const std::string &name,const std::string &name_space):nh(ros::this_node::getName()+"/"+name_space) +CModuleService<service_msg>::CModuleService(const std::string &name,const std::string &name_space):nh(name_space) { this->current_num_retries=0; this->max_num_retries=DEFAULT_SERVICE_MAX_RETRIES;