Perception to Nav2 Costmaps: LiDAR, Depth Cameras, and YOLO Detections
Connect LiDAR scans, depth camera point clouds, and YOLO object detections into Nav2 costmap obstacle layers in ROS 2. Full pipeline with YAML config and Python examples.
In this article
- Path 1: LiDAR → ObstacleLayer (simplest)
- Path 2: Depth camera → VoxelLayer
- Point cloud filtering before Nav2
- Combining multiple sources
- Tuning checklist and common failure modes
- Radar tracks: obstacles that carry a velocity
- When to use something else