Safe Stabilizing Control for Polygonal Robots in Dynamic Elliptical Environments

Kehan Long, Khoa Tran, Melvin Leok, Nikolay Atanasov

TL;DR

This paper introduces an analytic distance formula between polygons and ellipses to enable safe, real-time control for complex-shaped robots. By integrating this formula into a Control Barrier Function (CBF) framework, the authors allow robots—such as polygonal mobile bases and multi-joint arms—to navigate dynamic, cluttered environments with formal safety guarantees that circular approximations simply cannot provide.

What Problem Does This Paper Address?

In the world of safe robot navigation, the "spherical cow" approximation is alive and well. Most existing methods for ensuring safety via Control Barrier Functions (CBFs) simplify robots and obstacles into points or circles. While mathematically convenient, this is highly restrictive. A long, rectangular robot might be able to slip through a narrow gap by turning sideways, but a circular approximation would see that gap as impassable.

Existing methods that attempt to handle complex shapes often rely on numerical optimization or non-smooth distance functions. These are computationally expensive and can lead to "jittery" control signals, making them difficult to deploy in real-time dynamic environments where obstacles (like humans or other robots) are constantly moving. The authors tackle the need for a smooth, analytic, and computationally efficient way to represent the distance between a polygonal robot and elliptical obstacles.

Methods

The core contribution is a two-part analytic procedure to calculate the exact distance between a polygon (the robot) and an ellipse (the obstacle) in $SE(2)$ configuration space.

  1. Vertex-to-Ellipse Distance: The authors solve a minimization problem for the squared Euclidean distance from a point to an ellipse. This reduces to solving a quartic equation, which they solve analytically using Cardano’s and Ferrari’s methods.
  2. Edge-to-Ellipse Distance: They compute the distance between the ellipse and the infinite line containing a polygon edge. This involves finding the point on the ellipse where the tangent is parallel to the edge, then projecting that back onto the line segment.

By combining these, they derive a smooth distance function and, crucially, its gradients with respect to the robot's position and orientation. These gradients are then plugged into a Time-Varying Control Barrier Function (TV-CBF). This CBF is combined with a Control Lyapunov Function (CLF)—which handles the goal-reaching behavior—into a Quadratic Program (QP). The QP is solved at every time step to find the optimal control input that stays as close as possible to the desired path while strictly obeying the safety boundary.

Datasets

The authors evaluated their approach using custom-built simulation environments rather than standard datasets:

  • Polygonal Unicycle: A triangular robot navigating a field of moving elliptical obstacles.
  • K-joint Robot Arm: A 3-link arm operating in a dynamic environment, where each link is treated as a line segment (a degenerate polygon) that must avoid moving ellipses.

Key Insights and Ideas

  • Orientation is a Safety Feature: By working in $SE(2)$ (position + orientation), the controller understands that rotating the robot can be just as effective for safety as moving it. Figure 1 illustrates how the $SE(2)$ distance function correctly accounts for the robot's shape compared to a conservative $R^2$ circular approximation.
Comparative analysis of the SE(2) and R2 signed distance functions.
  • Analytic vs. Numerical: Because the distance and its gradients are calculated via closed-form equations rather than iterative solvers, the control loop is extremely fast and the resulting trajectories are smooth.
  • Uniform Relative Degree: The $SE(2)$ formulation ensures a uniformly relative degree of 1 for the CBF. In control theory terms, this simplifies the math significantly, avoiding the need for complex "look-ahead" models often required for non-holonomic robots like unicycles.

Key Results

The simulations demonstrated that the proposed method significantly outperforms circular approximations in constrained spaces.

  • Narrow Passage Navigation: In Figure 2, the triangular robot successfully navigates a tight gap between two moving obstacles by adjusting its pose. A robot using a circular CBF (Figure 2e) was forced to take a much longer, circuitous route because it perceived the gap as a collision risk.
Safe navigation sequence showing the robot adjusting its pose to pass through a narrow gap.
  • Multi-Link Safety: The 3-joint robot arm was able to "snake" through moving obstacles to reach its goal. The CBF values remained consistently positive throughout the task, providing a formal proof of safety during the entire motion.
Safe stabilization of a 3-joint robot arm avoiding moving elliptical obstacles.
  • Feasibility: The use of a slack variable ($\delta$) in the QP (Equation 6) ensures that even when the robot is very close to an obstacle, the controller can prioritize safety (the CBF) while momentarily relaxing the goal-reaching objective (the CLF) to maintain feasibility.

Limitations and Future Work

While powerful, the current work has a few limitations:

  • 2D Constraints: The analytic formulas are currently derived for 2D environments. Extending this to 3D (e.g., polytopes and ellipsoids) would be significantly more complex.
  • Shape Variety: The method is specific to polygons and ellipses. While many objects can be approximated this way, it doesn't natively handle highly irregular or non-convex shapes without decomposing them into smaller convex parts.
  • Perfect Information: The simulations assume the robot knows the exact geometry and future motion of obstacles. Real-world deployment would require integrating this with on-board perception and motion prediction, which introduces noise and uncertainty.

The authors suggest that future work will focus on extending these formulas to 3D robot arm manipulation and incorporating real-time environment estimation from sensors.

Summary updated

BibTeX
@inproceedings{long2024safe,
  author = {Kehan Long and Khoa Tran and Melvin Leok and Nikolay Atanasov},
  title = {{Safe Stabilizing Control for Polygonal Robots in Dynamic Elliptical Environments}},
  booktitle = {ACC},
  year = {2024},
  url = {https://openreview.net/forum?id=hDpHXjUEhr},
}
Figure