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

Change laserscan colors dependent on distance

asked 2020-03-31 07:12:05 -0600

cheesee61 gravatar image

Hello everybody,

when I visualize a laser scan in rviz, every scan (every point) is in the same color. How can I change the color dependent on the distance measured, pretty much as in this package here?

I am using Ubuntu 16.04 LTS with ROS Kinetic.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-04 10:40:38 -0600

Weasfas gravatar image

Hi @cheesee61,

You can change the LaserScann display on Rviz in the property Color tranformer, setting the value to AxisColor.

edit flag offensive delete link more



Just remember to change the Axis too.

Teo Cardoso gravatar image Teo Cardoso  ( 2020-04-06 11:10:11 -0600 )edit

Thx to both of you guys!

cheesee61 gravatar image cheesee61  ( 2020-04-11 18:14:10 -0600 )edit

Question Tools

1 follower


Asked: 2020-03-31 07:12:05 -0600

Seen: 622 times

Last updated: Apr 04 '20