Robotics StackExchange | Archived questions

rosnode info on only the plugin

Is it possible to isolate the topics a plugin within a node publishes and subscribes to?

Running a rosnode info generates the list of all topics all plugins to the node subscribe/publish to. We work with a lot of plugins and it would be helpful to get information on individual plugins.

Thanks.

Asked by 2ROS0 on 2015-03-23 20:49:58 UTC

Comments

Answers

Sorry; ROS isn't able to provide this information.

If you can load and unload plugins on the fly, you could look at the difference in topics that are in use between when your plugin is loaded and when it isn't.

Asked by ahendrix on 2015-03-23 21:15:22 UTC

Comments

Hm, thanks.

Still won't be able to differentiate if many plugins subscribe/publish to the same topic.

Although, I think you could find out the difference in the "connections" provided by rosnode info?

Asked by 2ROS0 on 2015-03-23 21:45:13 UTC

Nope; the connection data isn't useful here. Internally, roscpp uses a singleton to keep track of each publisher and subscriber, so you can't tell how many copies of each there are internally.

Asked by ahendrix on 2015-03-23 22:04:44 UTC

You can also start plugins/nodelets standalone

Asked by Wolf on 2015-03-24 02:08:34 UTC

That's a good idea. If I were to unload a plugin, compile software and reload the plugin - would this executable be the new one? If not, is there a way to do that?

Asked by 2ROS0 on 2015-04-28 11:33:45 UTC

That's probably possible, with a bunch of gotchas. You should probably ask that as a new question.

Asked by ahendrix on 2015-04-28 17:07:54 UTC