From 11c363d4e52d0d0bbbbfffd3db927f145e8855ef Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Fri, 14 Apr 2023 17:40:08 +0200 Subject: [PATCH] Added the pending condition to the is_finished function to avoid returning true when the action is still pending. --- include/iri_ros_tools/module_action.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/iri_ros_tools/module_action.h b/include/iri_ros_tools/module_action.h index e968d46..e299877 100644 --- a/include/iri_ros_tools/module_action.h +++ b/include/iri_ros_tools/module_action.h @@ -870,7 +870,7 @@ bool CModuleAction<action_ros,dyn_reconf_config>::is_finished(void) if(this->enabled) { action_state=action_client->getState(); - if(action_state==actionlib::SimpleClientGoalState::ACTIVE) + if(action_state==actionlib::SimpleClientGoalState::ACTIVE || action_state==actionlib::SimpleClientGoalState::PENDING) return false; else return true; -- GitLab