Collision-Affording Point Trees: SIMD-Amenable Nearest Neighbors for Fast Collision Checking

Clayton W. Ramsey, Zachary Kingston, Wil Thomason, Lydia E. KavrakiarXiv 2024

TL;DR

Collision checking against raw sensor data is the primary bottleneck in real-time robotic motion planning. This paper introduces the Collision-Affording Point Tree (CAPT), a novel spatial data structure that enables branch-free, SIMD-parallelized collision queries on standard CPUs. By achieving exact query times under 10 nanoseconds, CAPT allows high-dimensional robots to plan safe trajectories in dynamic, unmodeled environments at speeds exceeding 60 FPS.

What Problem Does This Paper Address?

For robots to operate safely in the real world, they must constantly plan paths that avoid obstacles. Sampling-based motion planners (SBMPs) excel at this by evaluating thousands of potential robot states. However, the most time-intensive component of this process is state validation—checking whether the robot collides with the environment.

While traditional planners assume perfect geometric knowledge of the world, real-world robots rely on sensors like depth cameras that generate raw point clouds. Collision checking against point clouds typically relies on spatial data structures like $k$-d trees or OctoMaps.

Unfortunately, these traditional structures are highly unsuited for modern CPU architectures:

  1. Conditional Branching: Searching them requires heavy conditional logic and backtracking, which stalls CPU pipelines.
  2. Cache Unfriendliness: They store data via fragmented pointers, causing random memory access patterns.

While GPU-accelerated alternatives exist, they suffer from high power requirements and severe latency overhead due to data synchronization between the CPU and GPU. The authors set out to design a point cloud representation tailored specifically for data-level parallelism (SIMD) on standard, low-power CPUs.

Methods

The authors introduce two core contributions: the CAPT data structure and a specialized space-filling curve filtering algorithm.

1. The Collision-Affording Point Tree (CAPT)

The CAPT redesigns the classical $k$-d tree to make it entirely branch-free and cache-friendly:

  • Implicit Eytzinger Layout: Instead of using pointer-heavy tree nodes, the CAPT arranges its test values in a single, contiguous array block (similar to a binary heap). This makes memory access patterns highly predictable during tree traversal.
  • Affordance Sets: In a standard $k$-d tree, finding the exact nearest neighbor requires a recursive backtracking phase. CAPT eliminates this entirely. Each leaf node pre-calculates an "affordance set"—a conservative list of all points in the cloud that could potentially collide with a query sphere of a given radius range ($r_{\text{min}}$ to $r_{\text{max}}$).

Search becomes a straight, branchless shot down the tree to a leaf node, followed by a vectorized distance check against its affordance set.

Figure 2: 2a: The cell containing p1 affords p2 and p3 at radius rmax, but not p4 or p5. The axis-aligned bounding box containing all afforded points is depicted in green. 2b: The sphere centered at p6 of radius rmin contains the entire cell, so no other points need to be included in the cell’s affordance set.

2. Space-Filling Curve Filtering

To prevent the tree from bloating in dense environments, the authors present a structurally conservative down-sampling method. By projecting 3D points onto a 1D Z-order (Morton) curve, they sort and filter out redundant points in $O(n \log n)$ time. Crucially, they prove mathematically that this filtering method preserves the underlying obstacle boundaries and will not introduce spurious gaps that could compromise robot safety.

Example of a dense point cloud filtered down from 126,000 points to 8,889 points using the proposed Z-order curve method.

Datasets

The approach was rigorously evaluated using:

  • MotionBenchMaker: A challenging benchmark dataset featuring 3 distinct robots (the 6-DOF UR5, 7-DOF Panda, and 8-DOF Fetch) across 7 cluttered environments (e.g., picking from bookshelves, cages, and tables).
  • Real-World Sensor Data: Live RGB-D streams captured via an Intel RealSense D455 camera to test reactive obstacle avoidance on a physical UR5 manipulator.

Key Insights and Ideas

  • Trading Memory for Speed: Traditional spatial trees focus heavily on minimizing memory overhead. CAPT deliberately duplicates select subsets of points across different leaf nodes' affordance sets. This intentional redundancy unlocks massive data-level parallelism, which is far more valuable for modern CPU throughput than saving a few megabytes of RAM.
  • Eliminating Backtracking: By shifting the geometric complexity of nearest-neighbor search from query time to construction time, the runtime query becomes deterministic and branchless.
  • Flipping the Bottleneck: CAPT accelerates collision checking so drastically that it ceases to be the primary bottleneck in motion planning. Instead, the slowest parts of the pipeline become the initial point cloud filtering and tree construction phases.

Key Results

  • Ultra-Low Query Latency: CAPT achieved a mean collision query time of 9.89 nanoseconds. For comparison, the next best exact baseline (NanoFLANN) took 309 nanoseconds, while OctoMap averaged roughly 10,000 nanoseconds (0.01 ms) per query.
  • Real-Time End-to-End Planning: Integrating CAPT with a vectorized motion planner allowed the system to complete the entire planning pipeline (filtering, tree building, path generation, and path simplification) in under 16 milliseconds—well within the frame rate of a 60 FPS camera.
  • Physical Demonstration: In live hardware tests, a physical robot successfully and reactively dodged dynamic, unmodeled obstacles (such as pool noodles swung by humans) in real time, operating at a complete planning loop rate of roughly 140Hz.
Figure 1: 1a, 1b: A cluttered tabletop scene, captured as RGB-D with an Intel Realsense D455 sensor. 1c: The point cloud rendering of the same scene, filtered using our proposed space-filling curve method (Sec. IV-C).

Limitations and Future Work

  • Immutability: CAPT is a static data structure; points cannot be dynamically inserted or deleted after construction. While it is fast enough to be rebuilt from scratch for every camera frame, it cannot currently be used for the state-space nearest-neighbor searches inherent to SBMPs.
  • Scalability to Massive Scenes: Because points are duplicated within affordance sets, the memory footprint could scale poorly ($O(kn^2)$ in the worst case) for massive, low-dispersion environments like those encountered in autonomous driving.
  • Occlusion Blindness: Unlike OctoMaps, CAPTs do not differentiate between free space and unobserved (occluded) space, which could pose challenges in highly shadowed environments.

Future Directions: The authors propose exploring compression techniques to de-duplicate affordance sets and pairing CAPTs as a secondary data structure within hierarchical voxel grids or spatial hashes to scale up to massive environments.

Summary updated

BibTeX
@misc{ramsey2024collision,
  author = {Clayton W. Ramsey and Zachary Kingston and Wil Thomason and Lydia E. Kavraki},
  title = {{Collision-Affording Point Trees: SIMD-Amenable Nearest Neighbors for Fast Collision Checking}},
  year = {2024},
  eprint = {2406.02807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.02807},
}
Figure