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

how is a rosconsole message making it to /rosout?

asked 2016-04-01 12:38:51 -0600

brice rebsamen gravatar image

I've been reading the rosconsole code and I can't find any publisher to /rosout. rosconsole dependencies are only rostime, cpp_common, rostime and console_bridge. Can someone explain exactly how those work?

I see that rosconsole is a wrapper around log4cxx. It handles the initialization, provides vargs interface, formatting and the logging macros. I am confused about what console bridge is supposed to do. There is also the rosout package that dumps the messages on the /rosout topic to a file (which seems redundant to what rosconsole is doing...)

But I can't find a publisher from rosconsole to /rosout

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-04-01 13:56:04 -0600

brice rebsamen gravatar image

updated 2016-04-01 13:56:58 -0600

Turns out that ros::init in roscpp sets the global logger object to be a ROSOutAppender which publishes to /rosout.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-01 12:38:51 -0600

Seen: 610 times

Last updated: Apr 01 '16