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

how to list all the nodes of a package?

asked 2012-10-12 04:41:53 -0600

roskidos gravatar image

I'm getting used to ROS and I've found several times commands have the following syntax:

command package_name package_node

then it raises a question "How can I list all the nodes of that package??" to use in such commands??

edit retag flag offensive close merge delete

Comments

1

Maybe I'm misinterpreting your question, but if you're talking about running commands in your shell, (like rosrun, roslaunch) tab auto-completion works with ROS commands too. Tabbing twice should give you all the options you can use.

thebyohazard gravatar image thebyohazard  ( 2012-10-12 05:03:24 -0600 )edit

rosrun robotino_navigation executables [args] -> I think that's only possible to search for all possible packages. In this case, when I tab again to find all the possible executables but it ROS cursor doesn't show these hints

roskidos gravatar image roskidos  ( 2012-10-12 05:47:30 -0600 )edit

@joq & @tbh: that solves half of my problem. Thank you!

roskidos gravatar image roskidos  ( 2012-10-12 20:35:44 -0600 )edit

Since you still have a problem, please edit your question to add additional information about it, or open a new question, whichever makes sense to you.

joq gravatar image joq  ( 2012-10-13 04:21:31 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2012-10-12 06:15:09 -0600

joq gravatar image

updated 2012-10-13 04:18:13 -0600

As @tbh said, shell auto-completion will list all the nodes by pressing the tab key twice like this:

$ rosrun package_name <tab><tab>
edit flag offensive delete link more

Comments

2

This doesn't work on all platforms. i.e. Raspian doesn't support tab-completion.

Cerin gravatar image Cerin  ( 2017-02-05 21:49:42 -0600 )edit
2

Tab completion works, but there should be a command for that.

bxl gravatar image bxl  ( 2017-06-20 13:50:28 -0600 )edit
1

Also: Doesn't this list the executable name, not the node name?

fabian gravatar image fabian  ( 2020-11-05 12:30:35 -0600 )edit

Question Tools

Stats

Asked: 2012-10-12 04:41:53 -0600

Seen: 11,245 times

Last updated: Oct 13 '12