From 7ba3317aed7557e123945afe2a37a789f80ad96e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20Hern=C3=A0ndez=20Juan?= <shernand@iri.upc.edu> Date: Thu, 14 Dec 2017 07:23:30 +0000 Subject: [PATCH] Solved a bug in the module namspace generation: all sub-modules and action and service wrappers should use this->module_nh.getNamespace() for the namespace parameter. all modules used directly from a ROS node should use ros::this_node::getName(). --- include/iri_ros_tools/module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/iri_ros_tools/module.h b/include/iri_ros_tools/module.h index c93fac4..fd74147 100644 --- a/include/iri_ros_tools/module.h +++ b/include/iri_ros_tools/module.h @@ -241,7 +241,7 @@ template<class ModuleCfg> CModule<ModuleCfg>::CModule(const std::string &name,const std::string &name_space) : module_rate(MODULE_DEFAULT_RATE), dyn_reconf(module_nh), - module_nh(ros::this_node::getName()+"/"+name_space+"/"+name) + module_nh(name_space+"/"+name) { try { -- GitLab