swri-robotics / mapviz

Modular ROS visualization tool for 2D data.
BSD 3-Clause "New" or "Revised" License
370 stars 144 forks source link

Update Min/Max values when Auto is triggered For Pointcloud plugin #804

Open jgassaway opened 7 months ago

jgassaway commented 7 months ago

In RVIZ, when coloring pointclouds by intensity, when you click "Autocompute Intensity" (the equivalent of mapviz's "Use Auto Max/Min"), the values for min/max intensity will automatically update to the max/min of the current pointcloud. These values can then be manually scaled by disabling that option and modifying the min or max values. In mapviz, these values are not updated, so you must manually check the scale of your data by experimentation, or prior knowledge of the max/min bounds.

It would be helpful to update the max/min values displayed in the pointcloud2 plugin when "Use Auto Max/Min" is toggled.