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

ROS Consolor Color Print

asked 2016-08-18 16:39:45 -0600

Pototo gravatar image

Folks,

Is there a way to change the color of what I print with ROS_INFO(), etc.? I want to leave red and yellow for real errors and real warnings.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-19 02:43:07 -0600

Dimitri Schachmann gravatar image

updated 2016-08-19 02:47:43 -0600

It looks like the colors are #define d here: https://github.com/ros/ros_comm/blob/...

I took just a brief glance and did not see any option for runtime configuration. Time to fork? :p

Or you could pipe the output to sed and replace the colors with a clever regex.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-18 16:39:45 -0600

Seen: 2,345 times

Last updated: Aug 19 '16