Practical Considerations for Discrete-Time Implementations of Continuous-Time Control Barrier Function-Based Safety Filters
Lukas Brunke, Siqi Zhou, Mingxuan Che, Angela P. Schoellig
TL;DR
This work analyzes a practical failure mode of continuous-time control barrier function (CBF) safety filters when implemented in discrete time: as $\|L_g L_f^{s-1} h(x)\|$ approaches zero, the safety filter can become inactive, risking safety violations and chattering between control modes. To address this, the authors propose three mitigation strategies: (1) augmenting the safety objective with a penalty term and switching to a safe backup policy near problematic regions, (2) transforming the safe set to shift away from critical regions, and (3) constructing an alternative safe set using multiple affine CBFs to avoid vanishing Lie derivatives. They validate these approaches in simulation on an ellipsoidal CBF for a linear system and in real-world Crazyflie 2.1 quadrotor experiments, demonstrating reduced chattering and preserved safety. The results provide practical guidelines for implementing discrete-time CBF safety filters in safety-critical, real-world systems.
Abstract
Safety filters based on control barrier functions (CBFs) have become a popular method to guarantee safety for uncertified control policies, e.g., as resulting from reinforcement learning. Here, safety is defined as staying in a pre-defined set, the safe set, that adheres to the system's state constraints, e.g., as given by lane boundaries for a self-driving vehicle. In this paper, we examine one commonly overlooked problem that arises in practical implementations of continuous-time CBF-based safety filters. In particular, we look at the issues caused by discrete-time implementations of the continuous-time CBF-based safety filter, especially for cases where the magnitude of the Lie derivative of the CBF with respect to the control input is zero or close to zero. When overlooked, this filter can result in undesirable chattering effects or constraint violations. In this work, we propose three mitigation strategies that allow us to use a continuous-time safety filter in a discrete-time implementation with a local relative degree. Using these strategies in augmented CBF-based safety filters, we achieve safety for all states in the safe set by either using an additional penalty term in the safety filtering objective or modifying the CBF such that those undesired states are not encountered during closed-loop operation. We demonstrate the presented issue and validate our three proposed mitigation strategies in simulation and on a real-world quadrotor.
