What problem does it solve?
VoxelLayer extends ObstacleLayer with a 3D voxel grid for proper volumetric raycasting. It enables accurate obstacle clearing across height dimensions when using depth sensors or 3D LiDAR.
Core Features & Use Cases
- 3D voxel grid per (x, y) cell with z_voxels and z_resolution to capture height variation and enable 3D raycasting.
- 3D raycasting for simultaneous clearance across multiple height layers, improving accuracy for elevated obstacles or shelves.
- Configurable parameters including z_voxels, z_resolution, origin_z, and mark_threshold to tune reporting, memory usage, and sensitivity.
- Use cases: depth cameras or 3D lidar on robots requiring height-aware clearing, handling objects at different elevations, and verifying clearance with upper voxels in RViz.
Quick Start
Configure your local_costmap by enabling voxel_layer and set z_voxels, z_resolution, and origin_z to match your sensor setup.