Ask Your Question
1

Rviz colorbar

asked 2014-07-02 12:42:05 -0500

crpizarr gravatar image

I have a cloud of PointXYZI and I'm visualising them in Rviz. With the rainbow transform for intensities (you know, high values are "blue" and low values are "red"), is there a way to get a colorbar to know which colors match which values?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-10-23 04:43:29 -0500

peci1 gravatar image

It is standard HSV color palette cropped at 83.33% (or 5/6) of max hue value. This is because if it weren't cropped, then the color for the lowest and highest values would be the same.

You can plot it in matlab:

figure(1);
colorbar;
axis off;
map = hsv(100);
colormap(map(1:83,:));
set(gca, 'CLim', [min_value, max_value]);
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: 2014-07-02 12:42:05 -0500

Seen: 557 times

Last updated: Oct 23 '15