MoffKalast / vizanti

A mission planner and visualizer for controlling outdoor ROS robots.
https://wiki.ros.org/vizanti
BSD 3-Clause "New" or "Revised" License
145 stars 30 forks source link

UI improvements #67

Closed MoffKalast closed 5 months ago

MoffKalast commented 6 months ago

TF grouping and enable/disable all links buttons.

Extended the occupancy grid rendering to also include raw and switched to using the original rviz palletes (for reference):

makeMapPalette:
For values 0 to 100, set color to grayscale values (255 - (255 * i) / 100, same value for R, G, B, and alpha set to 255).
Set color for illegal positive values to green (0, 255, 0).
Set color for illegal negative values to red-yellow gradient.
Set color for legal negative value -1 to (0x70, 0x89, 0x86).

makeCostmapPalette:
Set color for value 0 to black (0, 0, 0, 0).
For values 1 to 98, set color to a gradient from blue to green ((255 * i) / 100, 0, 255 - (255 * i) / 100, 255).
Set color for value 99 to cyan (0, 255, 255, 255).
Set color for value 100 to purple (255, 0, 255, 255).
Set color for illegal positive values to green (0, 255, 0).
Set color for illegal negative values to red-yellow gradient.
Set color for legal negative value -1 to (0x70, 0x89, 0x86).

makeRawPalette:
For values 0 to 255, set color to grayscale values (i, i, i, 255).