diff --git a/include/iri_ros_tools/module.h b/include/iri_ros_tools/module.h index fd7414723a32b626f3f7a641066c316ca8de5382..0166c85787f3bc0ae7b6d180dcc36a0bfd999574 100644 --- a/include/iri_ros_tools/module.h +++ b/include/iri_ros_tools/module.h @@ -245,14 +245,14 @@ CModule<ModuleCfg>::CModule(const std::string &name,const std::string &name_spac { try { + this->name=this->module_nh.getNamespace(); this->event_server=CEventServer::instance(); - this->finish_thread_event_id=name+"_finish_thread_event"; + this->finish_thread_event_id=this->name+"_finish_thread_event"; this->event_server->create_event(this->finish_thread_event_id); this->thread_server=CThreadServer::instance(); - this->module_thread_id=name+"_module_thread"; + this->module_thread_id=this->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(); } catch (CException &ex) {