Skip to content
Snippets Groups Projects
Commit 7ba3317a authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

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().
parent ffac214a
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
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