nvblox: GPU-Accelerated Incremental Signed Distance Field Mapping

Alexander Millane, Helen Oleynikova, Emilie Wirbel, Remo Steiner, Vikram Ramasamy, David Tingdahl, Roland SiegwartarXiv 2023

TL;DR

nvblox is an open-source library that brings massive GPU acceleration to robotic volumetric mapping, achieving up to a 177× speedup in surface reconstruction and a 31× speedup in distance field computation compared to CPU-based state-of-the-art. By bridging the gap between high-fidelity 3D reconstruction and the specific needs of robotic path planning, it enables high-resolution, real-time mapping even on constrained embedded hardware like the NVIDIA Jetson.

What Problem Does This Paper Address?

For a robot to navigate safely, it needs a dense, accurate representation of its environment. Traditionally, researchers have faced a trade-off:

  1. CPU-based systems (like voxblox or Octomap) provide features essential for planning, such as Euclidean Signed Distance Fields (ESDFs)—which tell a robot the distance to the nearest obstacle at any point. However, these are computationally heavy, forcing robots to use low-resolution maps or slow update rates.
  2. GPU-based reconstruction (like KinectFusion) is incredibly fast and produces beautiful 3D meshes but often ignores the "hidden" data robots need, like an explicit representation of free space or incremental ESDF updates for collision avoidance.

nvblox fills this gap by moving the entire robotic mapping pipeline—from sensor integration to distance field calculation and collision querying—onto the GPU.

Methods

The core of nvblox is a flexible architecture the authors call a "LayerCake."

Fig. 2: The system architecture of nvblox, configured for TSDF mapping from an RGB-D camera sensor. The reconstructed map (called a LayerCake) is composed of co-located and aligned 3D voxel grids. Input depth-maps and color images are integrated into the TSDF and Color voxel layers, from which voxel grids containing the ESDF and a mesh reconstruction are derived. See Sec. IV for details.
  • Layered Voxel Grids: The map consists of multiple overlapping layers (TSDF for surfaces, ESDF for planning, occupancy for dynamic objects, etc.). These use a two-level hierarchy: a hash table for sparse 3D blocks and dense $8 \times 8 \times 8$ voxel groups within those blocks to ensure efficient GPU memory access.
  • Incremental ESDF Algorithm: The paper’s standout technical contribution is a highly parallelized, incremental ESDF algorithm. Inspired by the Parallel Banding Algorithm (PBA), it updates only the parts of the map that have changed. It involves "marking" sites (surface boundaries), "clearing" invalid distances, and a series of "sweeps" to propagate distance information across the grid.
Fig. 5: Marking and lowering, shown step-by-step on an image, for simplicity on 2D occupancy (rather than 3D TSDF). Here we start with a previous map shown in a to demonstrate clearing of previously-occupied space. The bold lines represent VoxelBlock boundaries. The general idea of the algorithm is to iteratively compute correct distance values within a VoxelBlock, and then communicate distance information across VoxelBlock boundaries to neighbors.

Datasets

The authors evaluated nvblox using several standard benchmarks to ensure both speed and accuracy:

  • Replica Dataset: High-quality synthetic interior scenes.
  • Redwood Dataset: Real-world scans of various environments.
  • Cow and Lady: A classic dataset for testing ESDF accuracy.
  • Sun3D: Used specifically for testing large-scale query rates.

Key Insights and Ideas

  • GPU-to-GPU Efficiency: By keeping the map data on the GPU, nvblox allows other GPU-accelerated modules (like path planners) to query the map directly without expensive data transfers back to the CPU.
  • Full Euclidean Distance: Unlike some CPU methods that use "quasi-Euclidean" approximations to save time, nvblox computes full Euclidean distances, providing higher accuracy for planning without a performance penalty.
  • Embedded Viability: The system isn't just for beefy desktop GPUs; it is optimized for embedded platforms like the Jetson Xavier AGX, making it practical for real-world drones and mobile robots.
  • Dynamic Handling: By using a separate occupancy layer, the system can segment out dynamic obstacles (like people) so they don't permanently "pollute" the static map of the room.

Key Results

The performance gains are substantial across the board:

  • Surface Reconstruction (TSDF): Up to 177× faster than CPU-based voxblox.
  • Distance Field (ESDF): On average 31× faster than voxblox and 7× faster than Fiesta (a recent high-performance competitor).
  • Resolution: nvblox can process a high-resolution 2 cm map faster than voxblox can process a low-resolution 10 cm map.
  • Query Rates: The system can handle giga-queries per second. On a Jetson, an uncorrelated collision query takes only about 3 nanoseconds.
Fig. 1: An example of an nvblox reconstruction in an office environment (left) compared to a photo of the mapped scene (right). The reconstruction is built in real-time from a handheld Intel RealSense Depth Camera D455. It shows the mesh and a slice through the distance field. All operations to build this reconstruction are performed in real-time on an embedded GPU.

Limitations and Future Work

While nvblox represents a major leap forward, the authors note a few areas for growth:

  • Dynamic Objects: While the paper demonstrates basic dynamic obstacle handling using semantic segmentation (e.g., PeopleSemSegnet), more sophisticated tracking and prediction of moving objects remain a future direction.
  • Large-Scale Mapping: While spatial hashing helps, extremely large-scale environments (like entire city blocks) would likely require further optimizations in sub-mapping or global consistency.
  • Integration: The library is currently focused on the mapping component; full integration with a wider variety of GPU-based planners is an ongoing effort in the robotics community.

Summary updated

BibTeX
@misc{millane2023nvblox,
  author = {Alexander Millane and Helen Oleynikova and Emilie Wirbel and Remo Steiner and Vikram Ramasamy and David Tingdahl and Roland Siegwart},
  title = {{nvblox: GPU-Accelerated Incremental Signed Distance Field Mapping}},
  year = {2023},
  eprint = {2311.00626},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.00626},
}
Figure