Motions in Microseconds via Vectorized Sampling-Based Planning

Wil Thomason, Zachary Kingston, Lydia E. KavrakiarXiv 2023

TL;DR

This paper introduces Vector Accelerated Motion Planning (VAMP), a method that achieves over 500x speedups in sampling-based motion planning for high-degree-of-freedom robots. By exploiting fine-grained SIMD parallelism on standard CPUs, the authors bring planning times down to the microsecond range, enabling reactive planning at control-level frequencies (up to 25 kHz) without the need for specialized GPU hardware.

What Problem Does This Paper Address?

Sampling-based motion planners (SBMPs), such as RRT and PRM, are the workhorses of robotics, capable of finding paths for complex robots in cluttered environments. However, they are traditionally slow, often taking hundreds of milliseconds or even seconds to find a solution. This latency makes them unsuitable for truly reactive behavior in dynamic environments and creates a bottleneck for higher-level tasks like integrated task and motion planning.

While researchers have tried to speed up planning using multi-threading (coarse-grained parallelism) or GPUs, these approaches often suffer from high synchronization overhead, communication latency, and increased power consumption. The prevailing belief in the field was that the core primitives of SBMP—like checking if a motion between two states is valid—were either inherently serial or required specialized, power-hungry hardware to accelerate significantly.

Methods

The authors refute the "inherently serial" belief by focusing on fine-grained parallelism using SIMD (Single Instruction/Multiple Data) instructions, which are available on almost all modern consumer CPUs (e.g., AVX2 on Intel/AMD, Neon on ARM).

Key technical contributions include:

  • Struct-of-Arrays (SoA) Memory Layout: Standard robotics code uses an "Array-of-Structs" (AoS) layout (e.g., an array where each element is a full robot configuration). VAMP switches to SoA, where each dimension of the configuration is stored in its own contiguous array. This allows SIMD units to load and process multiple configurations simultaneously with minimal memory overhead.
Comparison of AoS and SoA memory layouts.
  • Tracing Kinematics Compiler: The authors developed a compiler that takes a standard URDF file and "traces" the math required for Forward Kinematics (FK). It generates "straightline," branchless C++ code that is hyper-optimized for SIMD, removing redundant calculations and spurious data dependencies found in traditional kinematic libraries.
  • Vectorized Collision Checking: Instead of complex mesh-to-mesh checks, they use hierarchical sphere-based approximations. This allows them to perform intersection tests for entire batches of robot states in parallel.
  • The "Rake" Motion Validator: When checking a path segment, instead of checking states sequentially from start to finish, VAMP checks a spatially distributed set of states across the entire segment in parallel. This "raking" approach increases the probability of finding a collision early, allowing the planner to reject invalid motions much faster.
Illustration of the "raked" motion validator checking multiple states in parallel.

Datasets

The approach was evaluated using the MotionBenchMaker dataset, a collection of realistic and challenging motion planning problems. The benchmarks included:

  • Problem Classes: Table pick/under-pick, bookshelf (small, tall, thin), and constrained reaching (box, cage).
  • Robots: The 7-DOF Franka Emika Panda, the 8-DOF Fetch (with a prismatic torso), and the 14-DOF bimanual Baxter.
  • Baselines: The authors compared VAMP against industry standards: MoveIt/OMPL and PyBullet/OMPL.

Key Insights and Ideas

  • CPU SIMD > GPU for Planning: For the relatively small workloads typical of individual planning steps, the low latency of CPU SIMD is superior to GPUs, which are hampered by the overhead of moving data across the PCIe bus.
  • Branching is the Enemy: Traditional robotics code is full of "if-else" statements (e.g., for different joint types). By using a tracing compiler to produce branchless code, the authors allowed the CPU's execution pipeline to run at full speed.
  • Interleaving is Key: Because SIMD has such low overhead, parallelized subroutines (like collision checking) can be seamlessly interleaved with serial code (like graph search) within the same thread.
  • Generality: These improvements are "generality-preserving." They don't require changing the underlying RRT or PRM algorithms; they simply swap out the slow serial primitives for fast vectorized ones.

Key Results

  • Massive Speedups: VAMP achieved over 500x speedup compared to PyBullet/OMPL and 100-200x speedup compared to MoveIt/OMPL across all tested robots.
  • Microsecond Latency: For the 7-DOF Panda, the median planning time was just 40 microseconds. This equates to a 25 kHz planning rate.
  • Efficiency on Low-Power Hardware: Even on a $100 ARM-based single-board computer (Orange Pi 5B), VAMP was 20-50x faster than the baselines running on a high-end AMD Ryzen desktop CPU.
  • Path Quality: Despite the speed, the resulting path lengths were qualitatively similar to those produced by standard planners, as shown in the cumulative distribution plots.
Planning time results for the 7-DOF Panda, showing VAMP's orders-of-magnitude lead.

Limitations and Future Work

  • Euclidean Assumption: The current implementation assumes the robot's configuration space is Euclidean for the sake of simple linear interpolation. Extending this to more complex manifolds (like SO(3)) is a noted area for future work.
  • Sphere Approximations: The collision checking relies on sphere models. While conservative and efficient, some highly precise tasks might require more complex geometric primitives.
  • New Research Avenues: The authors suggest that these speeds could enable "empirical proofs of solution non-existence"—a holy grail in motion planning—and allow planners to act as local controllers within higher-level autonomy frameworks.

Summary updated

BibTeX
@misc{thomason2023motions,
  author = {Wil Thomason and Zachary Kingston and Lydia E. Kavraki},
  title = {{Motions in Microseconds via Vectorized Sampling-Based Planning}},
  year = {2023},
  eprint = {2309.14545},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.14545},
}
Figure