Ask Your Question
0

Leaf Topics rqt_graph

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

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 imagebvbdort ( 2014-12-10 07:51:53 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

Airuno2L gravatar image

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 406 times

Last updated: Dec 10 '14