Safe and Dynamically Feasible Motion Planning Using Control Lyapunov and Barrier Functions

Pol Mestres, Carlos Nieto-Granda, Jorge Cortés

TL;DR

This paper introduces C-CLF-CBF-RRT, a novel motion planning algorithm that generates collision-free paths for robots that are not only safe but also dynamically feasible. It achieves this by integrating Control Lyapunov Functions (CLFs) and Control Barrier Functions (CBFs) within a Rapidly-exploring Random Tree (RRT) framework, ensuring that generated paths can be tracked by controllers that guarantee both stability and safety.

What Problem Does This Paper Address?

Motion planning algorithms typically generate a sequence of waypoints for a robot to follow. However, a significant challenge arises in ensuring that these waypoints can be connected by a controller that respects the robot's dynamics, avoids collisions, and maintains stability. Existing methods often struggle to guarantee all these properties simultaneously. Trajectory optimization methods can be computationally expensive and may not always produce robust solutions. Sampling-based methods like RRTs are efficient but often fail to guarantee dynamic feasibility or safety when connecting sampled points. Control Lyapunov Functions (CLFs) are used for stability, and Control Barrier Functions (CBFs) for safety, but ensuring their compatibility for a given system and set of obstacles is a non-trivial problem. This paper bridges this gap by developing a method to verify CLF-CBF compatibility and integrating it into an RRT framework to generate paths that are guaranteed to be trackable by safe and stable controllers.

Methods

The core contribution is the C-CLF-CBF-RRT algorithm. This algorithm builds upon the standard RRT framework but incorporates a crucial CLF-CBF compatibility check at each step of tree expansion.

Here's a breakdown of the key methodological components:

  • Control Lyapunov Functions (CLFs): Used to ensure the asymptotic stability of the robot's trajectory towards a target waypoint.
  • Control Barrier Functions (CBFs): Used to guarantee that the robot remains within a safe region and avoids obstacles.
  • CLF-CBF Compatibility Verification: A novel theoretical result is presented that establishes a condition for a CLF and a CBF to be compatible. This involves solving an optimization problem. For specific cases like linear systems with polytopic or ellipsoidal obstacles, this problem reduces to a computationally tractable Quadratic Program (QP) or Quadratically Constrained Quadratic Program (QCQP).
  • C-CLF-CBF-RRT Algorithm: This is a modified RRT that, before adding a new node to the tree, verifies if a CLF-CBF-based controller can safely and stably connect the nearest node in the tree to the new node. This compatibility check ensures that the generated path is dynamically feasible.
  • High-Order Control Barrier Functions (HOCBFs): The framework is generalized to handle safety constraints with higher relative degrees, extending its applicability to more complex systems.

Datasets

Not discussed in the paper. The experiments are conducted in simulated environments and a physical hardware setup.

Key Insights and Ideas

  • Bridging the Gap: The paper successfully bridges the gap between high-level motion planning (generating waypoints) and low-level control (ensuring safety and stability).
  • CLF-CBF Compatibility is Key: The core insight is that ensuring CLF and CBF compatibility is essential for generating dynamically feasible and safe trajectories. The paper provides a theoretical framework and practical methods to verify this compatibility.
  • RRT as a Foundation: Leveraging the probabilistic completeness and efficiency of RRTs, the authors adapt it to incorporate the rigorous safety and stability guarantees provided by CLFs and CBFs.
  • Computational Tractability: For important classes of systems (linear dynamics, polytopic/ellipsoidal obstacles), the compatibility check is shown to be computationally tractable, making the overall algorithm practical.
  • Guaranteed Safety and Stability: By construction, the generated paths are guaranteed to be trackable by controllers that ensure both collision avoidance and asymptotic stability.

Key Results

  • C-CLF-CBF-RRT Algorithm: A novel algorithm that generates dynamically feasible and safe motion plans.
  • Probabilistic Completeness: The algorithm is proven to be probabilistically complete, meaning it will find a path if one exists, given enough iterations.
  • Simulation and Hardware Validation: The algorithm was successfully demonstrated in both simulation (Unity) and hardware experiments (Clearpath Jackal robot).
  • Performance Comparison:
    • vs. GEOM-RRT: C-CLF-CBF-RRT achieved significantly higher percentages of feasible paths and was orders of magnitude faster in hardware experiments. GEOM-RRT often failed to reach the goal due to a lack of dynamic feasibility guarantees.
  • vs. CBF-RRT: C-CLF-CBF-RRT was significantly faster (e.g., 8.72 seconds vs. 384.58 seconds for CBF-RRT in one scenario). CBF-RRT also faced potential safety violations between controller updates.
  • vs. LQR-CBF-RRT*: While LQR-CBF-RRT* could achieve no safety violations with a fine resolution, C-CLF-CBF-RRT offers a more principled approach with inherent safety guarantees.

Limitations and Future Work

  • Computational Complexity of Compatibility Check: While tractable for specific cases, the general CLF-CBF compatibility verification problem can be non-convex and computationally challenging.
  • Finding CLFs: The paper assumes the availability of CLFs and CBFs. Finding these functions for general systems remains a challenging problem. The authors suggest using techniques like sum-of-squares, neural networks, or learning-based methods.
  • Waypoint Convergence Speed: The current controller leads to asymptotic convergence to waypoints, which can cause the robot to slow down near them. Future work aims to address this by:
  • Modifying the objective function of the controller.
  • Using finite-time CLFs for guaranteed convergence within a specific time horizon.
  • Increasing the rate of convergence by adjusting parameters, though this might compromise compatibility.
  • Generalization to Uncertainty: The current framework assumes known system dynamics and obstacle shapes. Future work will explore systems under uncertainty.
  • Asymptotically Optimal Versions: Developing asymptotically optimal variants of C-CLF-CBF-RRT is a future research direction.
  • Differential Flatness: Extending the framework to differentially flat systems is mentioned as a promising avenue.

Summary updated

BibTeX
@article{mestres2024safe,
  author = {Pol Mestres and Carlos Nieto-Granda and Jorge Cortés},
  title = {{Safe and Dynamically Feasible Motion Planning Using Control Lyapunov and Barrier Functions}},
  journal = {IEEE Trans. Robotics},
  year = {2024},
}
Figure