Hi Zhiping,

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 http://www.ros.org/wiki/rosconsole, specifically part 3 to override this.  The debug lines are still compiled, but just don't print.

Aaron Holroyd
B.S. Computer Science and Robotics Engineering
WPI M.S. CS 2011
http://users.wpi.edu/~aholroyd


On Sun, Aug 15, 2010 at 11:17, #TAN ZHI PING# <TANZ0066@e.ntu.edu.sg> wrote:
 Hi to all,

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. 

--------------------------------------------Experiment.cpp------------------------------
#include <ros/console.h>

int main(void){

    ROS_DEBUG("Hello %s", "World");
    ROS_DEBUG_STREAM("Hello " << "World");
    ROS_INFO("%s", "World");   

return 0;  
}
----------------------------------------------------------------------------------------------------

With thanks,
Zhiping

_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users