ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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

sam gravatar image

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

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 3,067 times

Last updated: Aug 25 '11