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

Leaf Topics rqt_graph

asked 2014-12-10 07:18:32 -0500

fabbro gravatar image

Moreover, I would like to know what does it mean LEAF TOPIC in ROS because in the rqt_graph user interface there is the option HIDE LEAF TOPICS.

Could someone help me? Thanks a lot.

p.s. When I launch rqt_graph I have the feeling that it doesn't update properly and previous nodes are showed. Of Course I click on refresh time by time. Is there something else I can do?

edit retag flag offensive close merge delete

Comments

Leaf topics which has zero subscribers.

bvbdort gravatar image bvbdort  ( 2014-12-10 07:51:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-12-10 08:59:30 -0500

Airuno2L gravatar image

updated 2014-12-10 09:04:01 -0500

As bvbdort mentioned, a leaf topic is a topic which has no subscribers. It is called that in reference to a tree structure which has branches and leaves. Elements without children are called "leaf nodes" or "end-nodes".

Since nothing is subscribing to a leaf topic, you usually are not interested in viewing it in the graph because its data is not in use. However, sometimes you need to know about a leaf topic, for example if it isn't suppose to be a leaf topic and you actually want something to be subscribed to that data!, so the option to display those topics can be toggled mainly for debugging purposes.

The problem you mention at the end of your question may be happening if you close rqt_graph, but do not close roscore, and then restart rqt_graph. There could be things still running that are showing up on the graph that you don't expect. To start fresh you can restart roscore when you restart rqt_graph. Or use the rosnode kill command to kill the nodes you don't want running. What I actually do is use rqt instead of rqt_graph, that way you can see the node graph and process monitor at the same time and it is easy to kill nodes you don't want.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-12-10 07:18:32 -0500

Seen: 1,103 times

Last updated: Dec 10 '14