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 -0600
Seen: 11,525 times
Last updated: Aug 14 '11
cancelGoal crashes if called before any goal has been sent...
genaction not found in diamondback
Using Smach and SimpleActionState
Action server with more than one action...
Subscribing to action servers' feedback topic
SimpleActionState doesn't abort on timeout