Ask Your Question
1

ROS Consolor Color Print

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

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 -0500

Dimitri Schachmann gravatar image

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

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

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

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

Seen: 689 times

Last updated: Aug 19 '16