A Fast and Practical Algorithm for Generalized Penetration Depth Computation

Liangjun Zhang, Young J. Kim, Dinesh ManochaRobotics: Science and Systems 2007

A Fast and Practical Algorithm for Generalized Penetration Depth Computation

Introduction

In fields ranging from robotics to haptic rendering and physical simulations, determining the degree of overlap between two objects is a fundamental task. This measure is known as Penetration Depth (PD). While traditional algorithms focus on Translational PD ($PD_t$)—the minimum straight-line distance required to separate colliding objects—this approach often fails to capture physically realistic scenarios. In the real world, objects frequently rotate to disentangle themselves. Ignoring these rotational components leads to "conservative" or unnatural results, particularly in 6-DOF haptic feedback or complex motion planning.

However, computing Generalized Penetration Depth ($PD_g$), which accounts for both translation and rotation, is computationally intensive. For non-convex objects, the combinatorial complexity can reach $O(n^{12})$, making real-time application difficult without significant simplification or loss of accuracy. This paper presents a fast, practical algorithm that achieves interactive speeds for $PD_g$ computation on complex 3D models.

The Contact Space Framework

The core of the proposed approach is treating $PD_g$ as a constrained optimization problem: finding the minimum motion (according to a specific distance metric) that moves the objects from a colliding state to a non-overlapping state.

Configuration space representation of penetration depth.

A key theoretical insight is the Contact Space Realization. The authors prove that the optimal separation motion must result in a configuration where the objects are just touching—a state residing in the "contact space" ($C_{contact}$). By focusing exclusively on this boundary between the colliding region ($O$) and the free space ($F$), the algorithm drastically reduces the search space.

Optimization and Linearization

The algorithm operates through an iterative process designed for speed and robustness:

  1. Initial Guess: The process begins with a starting configuration, often derived from global sampling or motion coherence (using data from the previous simulation frame).
  2. Local Approximation and Linearization: Around the current configuration, the algorithm constructs a simplified, linear model of the local contact space. It represents local geometry as primitive constraints (e.g., vertex-face or edge-edge contacts).
  3. Iterative Walk: The algorithm "slides" along this linearized contact space in the direction that most effectively reduces the chosen distance metric.
  4. Refinement: Continuous Collision Detection (CCD) is employed during these steps to ensure the object does not inadvertently "skip" over new collision boundaries during its motion.
Linearization of the contact space for different contact scenarios.

To ensure physical relevance, the authors utilize "bi-invariant" distance metrics like DISP (maximum displacement of any point) and Object Norm (average squared displacement). These metrics ensure that the calculated "distance" remains consistent regardless of the arbitrary placement of coordinate axes.

Results and Performance

The algorithm was tested against several challenging non-convex benchmarks, including interlocking torus knots and complex industrial CAD parts. Key findings include:

  • Interactive Speeds: Solutions are typically found within 100ms to 450ms on standard hardware, making it suitable for interactive applications.
  • Handling Non-Convexity: Unlike previous methods that required convex decomposition, this approach handles highly non-convex and "interlocking" shapes gracefully by operating directly on the contact manifold.
  • Efficiency: The iterative approach converges rapidly, often providing high-quality upper-bound solutions within 30 iterations.

Conclusion

This research provides a practical path forward for incorporating rotational components into penetration depth calculations. While the algorithm is a local optimizer and depends on a good initial "seed" configuration, its speed and ability to handle complex non-convex geometry represent a significant advancement for real-time physical simulation and robotics. Future work aims to extend these techniques to articulated systems and deformable objects.

Summary updated

BibTeX
@inproceedings{zhang2007fast,
  author = {Liangjun Zhang and Young J. Kim and Dinesh Manocha},
  title = {{A Fast and Practical Algorithm for Generalized Penetration Depth Computation}},
  booktitle = {Robotics: Science and Systems},
  year = {2007},
  doi = {10.15607/rss.2007.iii.034},
}
Figure