Re: [ros-users] Problem with tutorial 11: Writing a Simple …

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Aaron Holroyd
Date:  
To: ros-users
Subject: Re: [ros-users] Problem with tutorial 11: Writing a Simple Publisher and Subscriber (C++)
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# <> 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
>
> https://code.ros.org/mailman/listinfo/ros-users
>
>