From 55aa88a20066a9aafd0bab2c98049025f1244f84 Mon Sep 17 00:00:00 2001 From: fherrero <fherrero@iri.upc.edu> Date: Mon, 3 Feb 2025 17:45:04 +0100 Subject: [PATCH] Move action feedback msg reset from action_done function to make_request function. Then, last feedback is still available until new request is made --- include/iri_ros_tools/module_action.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/iri_ros_tools/module_action.h b/include/iri_ros_tools/module_action.h index 47027a6..cb3f778 100644 --- a/include/iri_ros_tools/module_action.h +++ b/include/iri_ros_tools/module_action.h @@ -249,7 +249,7 @@ class CModuleAction this->status=ACTION_SUCCESS; } } - this->action_feedback_msg=Feedback(); + //this->action_feedback_msg=Feedback(); this->action_timeout.stop(); this->action_access.exit(); } @@ -473,6 +473,7 @@ class CModuleAction */ act_srv_status make_request(Goal &msg) { + this->action_feedback_msg=Feedback(); if(this->enabled) { if(this->action_client->isServerConnected()) -- GitLab