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

rosnode info on only the plugin

asked 2015-03-23 20:49:58 -0500

2ROS0 gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-23 21:15:22 -0500

ahendrix gravatar image

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.

edit flag offensive delete link more

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?

2ROS0 gravatar image 2ROS0  ( 2015-03-23 21:45:13 -0500 )edit

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.

ahendrix gravatar image ahendrix  ( 2015-03-23 22:04:44 -0500 )edit

You can also start plugins/nodelets standalone

Wolf gravatar image Wolf  ( 2015-03-24 02:08:34 -0500 )edit

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?

2ROS0 gravatar image 2ROS0  ( 2015-04-28 11:33:45 -0500 )edit

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

ahendrix gravatar image ahendrix  ( 2015-04-28 17:07:54 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-03-23 20:49:58 -0500

Seen: 140 times

Last updated: Mar 23 '15