From e65d84c5acf25bd6a78617969e984844d2192f9b Mon Sep 17 00:00:00 2001
From: fherrero <fherrero@iri.upc.edu>
Date: Thu, 13 Feb 2025 13:08:31 +0100
Subject: [PATCH] Unify module name in constructor and cfg, removing _module
 sufix

---
 cfg/TiagoHeadModule.cfg            | 2 +-
 src/tiago_head_client_alg_node.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cfg/TiagoHeadModule.cfg b/cfg/TiagoHeadModule.cfg
index d41f9ae..dd0903d 100755
--- a/cfg/TiagoHeadModule.cfg
+++ b/cfg/TiagoHeadModule.cfg
@@ -40,7 +40,7 @@ gen = ParameterGenerator()
 joints_subs = gen.add_group("Joint states subscriber")
 
 #       Name                       Type       Reconfiguration level            Description                       Default   Min   Max
-add_module_params(gen,"head_module")
+add_module_params(gen,"head")
 
 joints_subs.add("js_watchdog_time_s",double_t,0,                               "Maximum time between joint state messages",1,0.01,50)
 
diff --git a/src/tiago_head_client_alg_node.cpp b/src/tiago_head_client_alg_node.cpp
index a753da5..fe1a00f 100644
--- a/src/tiago_head_client_alg_node.cpp
+++ b/src/tiago_head_client_alg_node.cpp
@@ -3,7 +3,7 @@
 
 TiagoHeadClientAlgNode::TiagoHeadClientAlgNode(void) :
   algorithm_base::IriBaseAlgorithm<TiagoHeadClientAlgorithm>(),
-  head("head_module",ros::this_node::getName())
+  head("head",ros::this_node::getName())
 {
   //init class attributes if necessary
   //this->loop_rate_ = 2;//in [Hz]
-- 
GitLab