Skip to content

Commit 8ef62e0

Browse files
committed
Print goal ID when sendind a goal
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
1 parent 0d13d00 commit 8ef62e0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ros2action/ros2action/verb/send_goal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def send_goal(action_name, action_type, goal_values, feedback_callback):
114114
print('Goal was rejected.')
115115
return
116116

117+
print('Goal accepted with ID: {}\n'.format(bytes(goal_handle.goal_id.uuid).hex()))
118+
117119
result_future = goal_handle.get_result_async()
118120
rclpy.spin_until_future_complete(node, result_future)
119121

0 commit comments

Comments
 (0)