Differentiable optimization based time-varying control barrier functions for dynamic obstacle avoidance

Bolun Dai, Rooholla Khorrambakht, Prashanth Krishnamurthy, Farshad Khorrami

TL;DR

This paper introduces a novel approach for robotic systems to safely navigate around dynamic obstacles by extending "differentiable optimization-based control barrier functions" (diffOpt CBFs) to handle time-varying environments. This method allows robots to avoid complex, moving shapes more effectively and robustly, even with noisy sensor data and actuation limits, as demonstrated in both simulations and real-world experiments.

What Problem Does This Paper Address?

Ensuring the safety of robots operating in dynamic, real-world environments is a critical challenge. Robots need to avoid collisions with moving obstacles, which can be unpredictable and have complex geometries. Traditional methods like Model Predictive Control (MPC) can be computationally expensive, especially for nonlinear systems and complex safety constraints. Control Barrier Functions (CBFs) offer a more efficient way to encode safety constraints, but existing CBF methods often struggle with:

  • Dynamic Obstacles: Most CBFs are designed for static environments.
  • Complex Geometries: Representing non-spherical or non-ellipsoidal robot and obstacle shapes can lead to overly conservative avoidance maneuvers.
  • Real-World Imperfections: Sensor noise and limitations in the robot's actuators (e.g., joint velocity limits) can compromise safety if not explicitly handled.

This paper aims to bridge this gap by developing a CBF-based framework that can handle time-varying safe sets (due to moving obstacles), accommodate arbitrary geometric shapes, and robustly account for sensor noise and actuation limits.

Methods

The core contribution is the extension of differentiable optimization-based control barrier functions (diffOpt CBFs) to handle time-varying safe sets, leading to a Time-Varying Control Barrier Function Quadratic Program (TVCBFQP) controller.

  • Time-Varying CBFs (TVCBFs): The standard CBF formulation is adapted to account for environments where the safe set changes over time, denoted as $h(x, \psi(t))$, where $\psi(t)$ represents the configuration of the safe set at time $t$.
  • Differentiable Optimization (diffOpt): The paper leverages the diffOpt framework from prior work [13] to compute CBFs between complex geometric shapes. This involves solving an optimization problem to find a scaling factor that ensures collision avoidance. The novelty here is applying this to time-varying obstacle configurations.
  • Handling Sensor Noise: To address measurement noise, the authors propose a method that considers a "most unsafe" configuration of the obstacle within a certain Mahalanobis distance of the measurement distribution. This effectively inflates the perceived obstacle to guarantee safety with a certain probability.
  • Addressing Actuation Limits: Actuation limits are incorporated by introducing an additional scaling factor that inflates the obstacle based on the relative velocity between the robot and the obstacle. This effectively "moves" the obstacle closer to the robot in the CBF formulation, forcing earlier and more conservative avoidance maneuvers when actuator capabilities are limited.
  • Geometric Representation: The method uses primitive shapes (like spheres and capsules) to represent both the robot and obstacles, allowing for the handling of a wider range of geometries beyond simple spheres or ellipsoids.

Datasets

The paper does not explicitly mention or introduce new datasets. Instead, it relies on:

  • Simulated Environments: The "Moving Circles" example and a "Dynamic Rectangular Obstacle Avoidance" task are used for simulation-based evaluation.
  • Real-World Experiments: Experiments are conducted using a 7-DOF Franka Research 3 (FR3) robotic manipulator. Obstacle poses are measured using a Vicon Valkyrie motion capture system.

Key Insights and Ideas

  • TVCBFs unlock dynamic environments: The extension of diffOpt CBFs to time-varying safe sets is crucial for enabling robust dynamic obstacle avoidance.
  • Geometric flexibility is key: The ability to represent complex obstacle and robot geometries (beyond spheres/ellipsoids) leads to less conservative and more natural-looking avoidance maneuvers compared to methods that rely on simplified shapes.
  • Robustness to real-world imperfections: Explicitly incorporating sensor noise and actuation limits into the CBF formulation significantly improves safety guarantees in practical scenarios. The proposed methods for handling these imperfections are effective without drastically increasing computational cost.
  • Heuristic for noise handling: The Mahalanobis distance-based approach for sensor noise is a practical way to ensure safety probabilistically, avoiding computationally prohibitive exact solutions.
  • Actuation limit inflation: Inflating the obstacle based on relative velocity is an intuitive and effective way to enforce safety under actuator constraints.

Key Results

  • Simulation: The proposed TVCBFQP method successfully avoided dynamic obstacles (moving circles and a moving rectangle) in simulations, outperforming a standard MPC-based method and a basic diffOpt CBF approach that did not account for time-varying environments. The MPC method was observed to be more conservative.
  • Real-World Experiments (FR3 Robot):
    • Moving Board: The robot successfully avoided a moving board in various configurations, maintaining positive CBF values. The method demonstrated robustness to inherent joint measurement noise.
  • Two Moving Boxes: The robot safely avoided two moving boxes, again maintaining positive CBF values.
  • Computational Efficiency: The proposed method achieved an average computation time of 0.29 ms for the rectangular obstacle task and 0.41 ms and 1.7 ms for the FR3 robot tasks, which is significantly faster than the MPC-based method (2.9 ms for the rectangular obstacle task). This speed is crucial for real-time applications.
  • Comparison with other CBF methods: When sensor noise and actuation limits were ignored, other CBF-based methods (vanilla TVCBF and a circular CBF approach) resulted in collisions, highlighting the importance of the proposed extensions.

Limitations and Future Work

  • Limitations:
    • Assumption of controllable systems: The paper assumes that a control sequence exists that guarantees safety. It acknowledges that in some extreme cases (e.g., an obstacle directly hitting a fixed base), safety might not be achievable.
  • Negligible rotational motion assumption: For handling sensor noise, the paper assumes rotational motion's contribution to velocity is negligible compared to translational motion. While noted as valid for many applications, this might limit applicability in scenarios with significant rotational dynamics.
  • Heuristic for noise: The Mahalanobis distance approach provides probabilistic safety, not absolute guarantees.
  • Future Work:
    • Characterizing obstacle motion: Further investigation into the types of obstacle motions the method can effectively handle.
  • Integration with MPC: Exploring the integration of the proposed TVCBF framework with MPC for potentially enhanced performance or broader applicability.
  • More complex geometries: Extending the primitive shape representation to even more complex shapes.

Summary updated

BibTeX
@inproceedings{dai2023differentiable,
  author = {Bolun Dai and Rooholla Khorrambakht and Prashanth Krishnamurthy and Farshad Khorrami},
  title = {{Differentiable optimization based time-varying control barrier functions for dynamic obstacle avoidance}},
  booktitle = {Robotics Auton. Syst},
  year = {2023},
}
Figure