Ask Your Question
1

ROS Stream prints spurious characters to log

asked 2012-01-01 08:52:48 -0500

Aditya gravatar image

updated 2012-06-13 05:00:32 -0500

I launched a node with roslaunch. The node uses ROS_*_STREAM macros to log information. The log file created by the node however shows spurious characters. Following line shows an example

^[[0m[ INFO] [1325453858.376186830]: Alasca scan: time=-0.000000, points=31, nodes=11^[[0m

Every line in the log file starts and ends with "^[[0m". Does anyone know what might cause this behavior. This happens with not just this node, but all nodes that I launch with roslaunch.

ROS: Electric, OS: Ubuntu 11.10 x86

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2012-01-01 09:43:46 -0500

dornhege gravatar image

To me they look like escape sequences for colorization. The 0 should reset all previous color commands.

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

Stats

Asked: 2012-01-01 08:52:48 -0500

Seen: 335 times

Last updated: Jun 13 '12