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

Is there a command line utility to list available nodelets within the package path?

asked 2011-04-28 11:58:48 -0600

In debugging nodlet issues, and considering which nodes can be consolidated into a single process via nodelets, it would be nice to be able to simply list all available nodelets. Is there a command that does this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
5

answered 2015-08-24 08:24:53 -0600

bit-pirate gravatar image

updated 2015-08-24 08:34:15 -0600

Now there is (since a while actually).

A first check can be done via:

$ rospack plugins --attrib=plugin nodelet

Ref: http://answers.ros.org/question/65189...

(S: The link @tfoote provided is dead, but wouldn't be surprised, if this is the tool he talked about.)

However, this only shows you packages exporting the nodelet information.

If your nodelet is listed there, but you are still unable to load it properly, I suggest to run the following (replace /nodelet_manager with the name of your nodelet manage):

$ rosservice call /nodelet_manager/load_nodelet "name: ''
type: 'burb'
remap_source_args: ['']
remap_target_args: ['']
my_argv: ['']
bond_id: ''"

This will respond with an error.

ERROR: service [/nodelet_manager/load_nodelet] responded with an error:

But in the terminal running the nodelet manager you will get the list of available nodelets. If your nodelet is missing there (or registered under a wrong name), something went wrong with your plugin registration and/or exported nodelet information.

edit flag offensive delete link more
6

answered 2011-04-28 15:34:14 -0600

tfoote gravatar image

There was not. I've written one and added it to the nodelet package for the next release. You can pull it from this url in the meantime. It's just a python script. Download it and run it in python, or change it to executable https://code.ros.org/svn/ros-pkg/stacks/common/trunk/nodelet/scripts/declared_nodelets

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-04-28 11:58:48 -0600

Seen: 4,367 times

Last updated: Aug 24 '15