Skip to content

Commit

Permalink
publish action goal status once accepted before execution.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya.Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Feb 6, 2025
1 parent bbc46d7 commit dad57ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rclpy/rclpy/action/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ async def _execute_goal_request(

self._logger.debug('New goal accepted: {0}'.format(goal_uuid.uuid))

# Publish accepted status before execution
self._handle.publish_status()

# Provide the user a reference to the goal handle
await await_or_execute(self._handle_accepted_callback, goal_handle)

Expand Down

0 comments on commit dad57ec

Please sign in to comment.