ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
8

list action servers

asked 2015-12-17 22:59:43 -0500

Fry gravatar image

How can I get a list of the names of action servers?

Is there also a way to get a list of the actions that a given action server has?

Using either a cmd line or python would be preferable for me. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
14

answered 2015-12-18 01:45:25 -0500

peci1 gravatar image

Each action server publishes 5 topics (my server is named test below):

/test/cancel
/test/feedback
/test/goal
/test/result
/test/status

So you can e.g. use grep to the output of rostopic list to get the list of available actions, e.g.

rostopic list | grep -o -P '^.*(?=/feedback)'
edit flag offensive delete link more

Comments

2

While this works very well for me, I also opened a ticket for a new feature https://github.com/ros/actionlib/issu...

130s gravatar image 130s  ( 2016-02-01 04:39:48 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2015-12-17 22:59:43 -0500

Seen: 14,492 times

Last updated: Dec 18 '15