Command-line action server interface?
Hi Rossers,
Is there an easy command-line way to call an action server? Like... rosaction actionserver goal?
Dan
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hi Rossers,
Is there an easy command-line way to call an action server? Like... rosaction actionserver goal?
Dan
For a simpler (hackier) solution than rosh
, you could actually use
> rostopic pub [action_ns]/goal [action_type]ActionGoal [fill in fields here]
This will send a goal message directly to the action server. The action server has been designed to handle goals from "dumb action clients", such as rostopic pub
. You don't even have to bother filling in the header goal_id fields in the message.
There's not a true command line interface to send a goal, besides rostopic pub, but there are light-weight GUI tools for both action clients and action servers:
rosrun actionlib axclient.py
rosrun actionlib axserver.py
Hopefully, these suit your needs.
Does not work when connecting on a SSH a machine that has no X server!
You can use rosh as an interactive command line for calling actions. It supports tab-completion and uses Python syntax.
You will need to load the 'rosh_common' plugin to support actions
e.g.
actions.add_two_ints()
Asked: 2011-08-08 15:03:34 -0500
Seen: 11,025 times
Last updated: Aug 14 '11
Use actionlib across ROS releases?
ROS node as a service and publisher at the same time
How to use navigation stack in catkin workspace?
Is simple action client deprecated? [closed]
Actionlib client unable to cancel goals
actionlib axclient always disconnected from server
Setting the goal in TrajectoryPlannerROS
How to document actionlib interface / Best practice for messages from .action files