Conversation
Contains ros2cli command 'action' with verbs: list and show. The list verb lists action names for any running action servers and action clients. The show verb prints the definition for a given action type. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Prints a list of node names that have an action client or server for a given action name. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
The tool shouldn't need to know details about the implementation of actions. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
|
Not sure how trivial it is, but somehow echoing the feedback after submitting a goal would be extremely handy I believe. |
|
Currently, the $ ros2 action send_goal --feedback /fibonacci example_interfaces/Fibonacci "order: 5"
Waiting for an action server to become available...
Sending goal:
order: 5
Feedback:
sequence: [0, 1, 1]
Feedback:
sequence: [0, 1, 1, 2]
Feedback:
sequence: [0, 1, 1, 2, 3]
Feedback:
sequence: [0, 1, 1, 2, 3, 5]
Result:
sequence: [0, 1, 1, 2, 3, 5]
Goal finished with status: SUCCEEDEDI agree that also echoing the goal ID would be useful. |
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
|
The command line tool looks great to me. I can send a command, get the feedback and see the action definitions. 👍 Only nitpick I had was for the |
Karsten1987
left a comment
There was a problem hiding this comment.
I'll give you a 👍 , but you might want to have somebody look over the code who has a more critical eye on Python code than me :)
I was trying to mimic |
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
This also has the side-effect of making the forward slash optional for the action name. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
|
The forward slash situation was addressed. 👍 I have two more remarks though:
|
|
Thanks @Karsten1987!
I plan to make this feature as part of a new
This reminded me that the intention was to cancel the goal if the user terminates the I can also see the value in a separate |
Wrapped send goal logic in try-finally clause. This ensures that any active goal will be canceled before the CLI command terminates and also ensure that the ROS node is shutdown. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
I've updated the send goal logic to account for a SIGINT or errors.
sloretz
left a comment
There was a problem hiding this comment.
LGTM with nitpicks fixed and green CI. It works fine, including tab completion, on my machine.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Done 6a62cb8 |
Created a new package,
ros2action, defining the commandaction. This PR adds implementation for the following verbs:Connects to #202
Requires ros2/rcl#411
Requires ros2/rclpy#306