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,256 times
Last updated: Aug 14 '11
How do I create a callback-based actionlib client in python?
Why does SimpleActionClient abort?
no msgs shown while following actionlib tutorial
actionLib: which way is better when using setSucceed()?
Actionlib client unable to cancel goals
The move_base node doesn't provide an action server?
difference between execute_cb and goalcb?
[actionlib] Problems when try to connect client <=> server
Executing Trajectories Generated by Descartes on Either ABB or FANUC Arm