Ask Your Question
3

list action servers

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

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
6

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

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 image130s ( 2016-02-01 04:39:48 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 5,254 times

Last updated: Dec 18 '15