<font size="2"><font face="georgia,serif">Hi Zhiping,</font></font><div><font size="2"><font face="georgia,serif"><br></font></font></div><div><font class="Apple-style-span" face="georgia, serif">The default level that rosout prints out in is INFO.  You can set this in the rosconole.conf file to be something else.  Take a look at </font><a href="http://www.ros.org/wiki/rosconsole"><font class="Apple-style-span" face="georgia, serif">http://www.ros.org/wiki/rosconsole</font></a><font class="Apple-style-span" face="georgia, serif">, specifically part 3 to override this.  The debug lines are still compiled, but just don't print.</font></div>

<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><font size="2"><font face="georgia,serif"><br clear="all"></font></font>Aaron Holroyd<br>B.S. Computer Science and Robotics Engineering<br>WPI M.S. CS 2011<br>

<a href="http://users.wpi.edu/~aholroyd">http://users.wpi.edu/~aholroyd</a><br>
<br><br><div class="gmail_quote">On Sun, Aug 15, 2010 at 11:17, #TAN ZHI PING# <span dir="ltr"><<a href="mailto:TANZ0066@e.ntu.edu.sg">TANZ0066@e.ntu.edu.sg</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0, 0, 0);font-size:13px">
<div> Hi to all,<br>
<br>
Thanks for your help. But i'm very curious why there is only output from ROS_INFO and none from ROS_DEBUG although there is no error. 
<br>
<br>
--------------------------------------------Experiment.cpp------------------------------<br>
#include <ros/console.h><br>
<br>
int main(void){<br>
<br>
    ROS_DEBUG("Hello %s", "World");<br>
    ROS_DEBUG_STREAM("Hello " << "World");<br>
    ROS_INFO("%s", "World");    <br>
<br>
return 0;   <br>
}<br>
----------------------------------------------------------------------------------------------------<br>
<br>
With thanks,<br>
Zhiping<br>
</div>
</div>
</div>

<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br></div>