Skip to content

Commit

Permalink
Call own executing function
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Clephas <[email protected]>
  • Loading branch information
Timple committed Feb 14, 2024
1 parent 0dcf078 commit 66a0609
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rclpy/rclpy/action/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def execute(self, execute_callback=None):
# In this case we want to avoid the illegal state transition to EXECUTING
# but still call the users execute callback to let them handle canceling the goal.
if not self.is_cancel_requested:
self._update_state(_rclpy.GoalEvent.EXECUTE)
self.executing()
self._action_server.notify_execute(self, execute_callback)

def publish_feedback(self, feedback):
Expand Down Expand Up @@ -248,7 +248,8 @@ def __init__(
if execute_callback:
self.register_execute_callback(execute_callback)
elif handle_accepted_callback is default_handle_accepted_callback:
self._logger.warning("Not handling nor executing the goal, this server will do nothing")
self._logger.warning(
"Not handling nor executing the goal, this server will do nothing")

# Import the typesupport for the action module if not already done
check_for_type_support(action_type)
Expand Down

0 comments on commit 66a0609

Please sign in to comment.