ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

Is there any console output similar with ROS_INFO without "\n"?

asked 2011-08-25 02:26:22 -0600

sam gravatar image

updated 2014-01-28 17:10:17 -0600

ngrennan gravatar image

I found that when I use ROS_INFO to output console message,it always output a line.

Is there any ROS output method only output the message I specify?

Thank you~

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-08-25 04:34:47 -0600

joq gravatar image

Nothing I know about. ROS_INFO() and other ROS logging services send messages to a central logging facility where they are collected from many nodes. Sending incomplete messages does not make much sense in that environment.

You can accumulate a message string in your own code, waiting until a complete line is constructed before logging it. For that, the standard C++ or Python string operations are sufficient.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-08-25 02:26:22 -0600

Seen: 3,402 times

Last updated: Aug 25 '11