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

Why do all nodes have to be linked to /rosout?

asked 2011-10-10 20:46:53 -0500

jlo gravatar image

Hi there, I was redoing this tutorial where you get to run two turtlesims and one of them mimics the other. Well, exploring the rxgraph we get this:

image description

(link for bigger resolution)

That's when I asked myself: why do all nodes have to be linked to /rosout? It doesn't make sense to me that /mimic is connected to it. What is the purpose for that?

Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2011-10-11 00:37:07 -0500

dornhege gravatar image

rosout collects all data from the ROS_INFO...-style macros to display not only in the terminal but also in rxconsole. Nodes connect to it by default to be able to publish there.

If you are only concerned about the chaotic rxgraph output the "quiet" option will remove those.

edit flag offensive delete link more
0

answered 2011-10-11 03:34:48 -0500

Every node produces messages, possibly with loginfo, logerr etc etc.. Even if you don't see them, there is a lot of debug messages going on in your node. rosout collects all these messages. The advantages are in terms of logging, and in terms of displaying all the messages in a single place.

Probably the main reason for a centralized messages collector is to allow wonderful tools like rxconsole to exist :-)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-10-10 20:46:53 -0500

Seen: 501 times

Last updated: Oct 11 '11