Ask Your Question


asked 2011-08-04 05:23:58 -0500

qdocehf gravatar image

updated 2011-08-04 05:36:41 -0500

What does ROS_INFO_STREAM, ROS_INFO, and ROS_ERROR do? Do they output data?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-08-04 05:42:50 -0500

Eric Perko gravatar image

See the rosconsole docs for details on these logging macros. You can view and configure the verbosity for a particular node using rxconsole.

edit flag offensive delete link more


Thanks. For some reason I couldn't find anything about them through google or the ROS search.
qdocehf gravatar imageqdocehf ( 2011-08-04 05:47:23 -0500 )edit

answered 2016-08-23 16:55:24 -0500

sunking gravatar image

I dont know if the information has been moved since this question was answered but the given link to rosconsole docs mentions nothing about ROS_INFO and the top search result on google takes you to this page :-( I was able to discern from the description in Learning ROS for Robotics Programming that the difference between ROS_INFO and ROS_INFO_STREAM is that the former is intended for C and the latter for C++. However it seems a bit more complicated than that. I had several ROS_INFO calls in my C++ code that seemed to work fine but in another place ROS_INFO_STREAM worked while ROS_INFO printed nothing. ROS_ERROR is for sending error messages to whatever stream or fd you have set up for errors

edit flag offensive delete link more



the rosconsole docs linked by @Eric Perko list all the logging macros in the Code API section. The examples are just given once, but at the end of the section the other verbosity levels are listed. That includes INFO.

gvdhoorn gravatar imagegvdhoorn ( 2016-08-24 01:57:54 -0500 )edit

I agree, and it would seem more clear to give explicit examples, or even something like ROS_VERBOSITY_TYPE as a base format so it's clear that every time we see ROS_DEBUG_X, the DEBUG could be otherwise. As is, the user has to infer this (and beginners likely won't, hence this question).

jwhendy gravatar imagejwhendy ( 2017-05-10 12:36:12 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2011-08-04 05:23:58 -0500

Seen: 14,845 times

Last updated: Aug 23 '16