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

rosnode list for not active nodes

asked 2011-05-31 23:25:42 -0500

Filip gravatar image

Hi,

I'm creating something like an IDE for ROS. Is it possible to get a list of all available nodes. Something like 'rosnode list' but for the not yet started nodes. I think 'rosrun TAB TAB ' displays them, but this needs manual input of the TAB-key. Maybe there is a way to use the autocompletion-feature in a shellscript.

Thanks for the help!

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2011-05-31 23:29:32 -0500

dornhege gravatar image

You could probably use the completion to make a rospack list-nodes or similar. Maybe the output of rospack list (only packages) can help you.

edit flag offensive delete link more

Comments

Well I guess rospack list-names will do it at the moment. Thank you very much.
Filip gravatar image Filip  ( 2011-06-01 01:52:26 -0500 )edit

Groovy bash completion uses catkin_find --without-underlays --libexec <pkg> to determine the dir for executables of package PKG.

dornhege gravatar image dornhege  ( 2014-03-31 22:16:00 -0500 )edit
1

answered 2011-05-31 23:30:28 -0500

You'll find the tab-completion code in /opt/ros/diamondback/ros/tools/rosbash/rosbash

Look for function _roscomplete_exe

edit flag offensive delete link more

Comments

Thanks, I tried it a while, but couldn't figure out how this works. I guess this would be a nice solution.
Filip gravatar image Filip  ( 2011-06-01 01:57:05 -0500 )edit
-1

answered 2014-03-31 22:08:49 -0500

miloup gravatar image

updated 2014-03-31 22:25:20 -0500

to see the list of the available nodes in a package, do : $ rosrun [package_name] and hit "tab key" twice without hitting return key. ex: rosrun turtlesim "tab key" twice

edit flag offensive delete link more

Comments

Did you even read the question? Moreover, this is about 3 years old and has long been answered.

demmeln gravatar image demmeln  ( 2014-03-31 23:40:15 -0500 )edit

this is useful for folks working at the command line, but note the question explicitly asked for a way to do it programmatically, without having to enter 'tab'.

neuronet gravatar image neuronet  ( 2018-11-16 15:53:49 -0500 )edit

Question Tools

Stats

Asked: 2011-05-31 23:25:42 -0500

Seen: 2,032 times

Last updated: Mar 31 '14