Skip to content

Commit

Permalink
Print goal ID when sendind a goal
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron committed Apr 8, 2019
1 parent 0d13d00 commit 8ef62e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ros2action/ros2action/verb/send_goal.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def send_goal(action_name, action_type, goal_values, feedback_callback):
print('Goal was rejected.')
return

print('Goal accepted with ID: {}\n'.format(bytes(goal_handle.goal_id.uuid).hex()))

result_future = goal_handle.get_result_async()
rclpy.spin_until_future_complete(node, result_future)

Expand Down

0 comments on commit 8ef62e0

Please sign in to comment.