From bdf18e0c7ea91fa9b84d3deda8412537c94e79f6 Mon Sep 17 00:00:00 2001 From: Ferry Schoenmakers Date: Tue, 7 May 2024 14:18:18 +0200 Subject: [PATCH] Change callback for clarity --- smach_ros/smach_ros/simple_action_state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smach_ros/smach_ros/simple_action_state.py b/smach_ros/smach_ros/simple_action_state.py index 9c6b212..40501f2 100644 --- a/smach_ros/smach_ros/simple_action_state.py +++ b/smach_ros/smach_ros/simple_action_state.py @@ -359,7 +359,7 @@ def execute(self, ud): # Dispatch goal via non-blocking call to action server send_future = self._action_client.send_goal_async( self._goal, feedback_callback=self._goal_feedback_cb) - send_future.add_done_callback(self._goal_active_cb) + send_future.add_done_callback(self._goal_accepted_cb) # Execution timeout watch thread if self._exec_timeout: @@ -435,7 +435,7 @@ def execute(self, ud): return outcome # Action client callbacks - def _goal_active_cb(self, future): + def _goal_accepted_cb(self, future): """Goal Active Callback Accept or reject a client request to begin an action. """