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,259 times
Last updated: Aug 14 '11
Latency when sending goal to move_base and it starting
Python action client does not connect properly
Why does SimpleActionClient abort?
rosjava actionlib waitForResult() function [closed]
How to cancel goals from within an action server?
Actionlib client unable to cancel goals