Abstract
This paper presents a fundamental algorithm, called VDB-EDT, for Euclidean distance transform (EDT) based on the VDB data structure. The algorithm executes on grid maps and generates the corresponding distance field for recording distance information against obstacles, which forms the basis of numerous motion planning algorithms. The contributions of this work mainly lie in three folds. Firstly, we propose a novel algorithm that can facilitate distance transform procedures by optimizing the scheduling priorities of transform functions, which significantly improves the running speed of conventional EDT algorithms. Secondly, we for the first time introduce the memory-efficient VDB data structure, a customed B+ tree, to represent the distance field hierarchically. Benefiting from the special index and caching mechanism, VDB shows a fast (average $O(1)$) random access speed, and thus is very suitable for the frequent neighbor-searching operations in EDT. Moreover, regarding the small scale of existing datasets, we release a large-scale dataset captured from subterranean environments to benchmark EDT algorithms. Extensive experiments on the released dataset and publicly available datasets show that VDB-EDT can reduce memory consumption by about 30%-85%, depending on the sparsity of the environment, while maintaining a competitive running speed with the fastest array-based implementation. The experiments also show that VDB-EDT can significantly outperform the state-of-the-art EDT algorithm in both runtime and memory efficiency, which strongly demonstrates the advantages of our proposed method.
Introduction
In robotics, knowing the distance to the nearest obstacle is critical for safe motion planning. This is typically achieved via a Euclidean Distance Transform (EDT), which generates a distance field. However, standard implementations face a significant trade-off: multi-dimensional arrays offer $O(1)$ lookup speed but consume excessive memory by allocating space for the entire map. Conversely, hierarchical structures like Octrees save memory but introduce significant overhead during tree traversal, slowing down real-time performance.
As robots venture into larger and more complex environments, such as those encountered in the DARPA SubT Challenge, there is a pressing need for a distance field representation that is both memory-efficient and fast enough for high-frequency trajectory updates.
The VDB-EDT Approach
VDB-EDT addresses these challenges by combining a high-performance data structure with an optimized transform logic.
1. Hierarchical VDB Data Structure
The core of the algorithm is the VDB data structure, a volumetric B+ tree variant. Unlike standard Octrees, VDB is "shallow and wide," featuring a very large branching factor. This design allows it to achieve near-constant time random access speed, mimicking the performance of an array while retaining the memory benefits of a sparse tree.
VDB also utilizes "tile values" to represent large, uniform regions of space (e.g., empty air or solid obstacles beyond a certain threshold) with a single node. This exploits the spatial coherency inherent in distance fields, significantly reducing the memory footprint.
2. Optimized Transform Scheduling
Traditional incremental EDT algorithms rely on Raise and Lower functions to update distances as obstacles are removed or added. Typically, Raise operations are given strict priority, which can lead to redundant calculations in dynamic environments. VDB-EDT introduces a transform status flag that allows a Lowering wave to "interrupt" a Raising wave if a closer obstacle is detected. This optimization prevents unnecessary work and boosts runtime performance.
Experimental Evaluation
The authors evaluated VDB-EDT against standard benchmarks (OctoMap datasets, Cow-and-Lady) and a newly released large-scale subterranean dataset.
Key Results
- Memory Efficiency: VDB-EDT reduced memory usage by 30% to 85% compared to array-based implementations, with the greatest gains seen in sparse environments.
- Runtime Performance: The algorithm achieved a 1.1x to 1.5x speedup over conventional incremental EDT methods.
- State-of-the-Art Comparison: In head-to-head tests against FIESTA, a leading EDT framework, VDB-EDT demonstrated superior speed and memory efficiency. For instance, in the "Cow-and-Lady" dataset, it processed over five times more map changes in half the time.
- Real-world Application: The system was successfully deployed on a Micro Aerial Vehicle (MAV), maintaining a planning frequency of 16Hz during high-speed flight in dense environments.
Conclusion
VDB-EDT successfully bridges the gap between memory-hungry arrays and slow hierarchical trees. By leveraging the shallow-and-wide VDB structure and an "interruptible" transform logic, it provides a robust solution for real-time motion planning in large-scale environments. Future work may explore hardware acceleration via GPUs to further exploit the hierarchical nature of the VDB structure for parallel processing.
Summary updated