[ros-users] Problem with tutorial 11: Writing a Simple Publisher and Subscriber (C++)

Aaron Holroyd aholroyd at WPI.EDU
Sun Aug 15 15:25:35 UTC 2010


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 at 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 at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100815/e954f01c/attachment-0003.html>


More information about the ros-users mailing list