SteveMacenski / spatio_temporal_voxel_layer

A new voxel layer leveraging modern 3D graphics tools to modernize navigation environmental representations
http://wiki.ros.org/spatio_temporal_voxel_layer
GNU Lesser General Public License v2.1
620 stars 184 forks source link

Fix voxel visualization #213

Closed doisyg closed 2 years ago

doisyg commented 2 years ago

Voxel visualization currently outputs a pointcloud where the x and y coordinates of each point are the coordinates of the corner of the voxel. This can be confusing while debugging in rviz as illustrated below:

This PR proposes to change the behavior by centering the points of the voxel visualization pointcloud on the voxels they are suppose to represent.