Control Barrier Function Filters
- Control Barrier Function Filters are real-time algorithms that adjust nominal control inputs to ensure state safety by keeping trajectories within defined safe sets.
- They leverage barrier functions and semidefinite programming, including matrix-valued formulations, to handle complex, nonsmooth, and Boolean-composite safety constraints.
- Applications such as drone connectivity and obstacle avoidance showcase their ability to maintain continuous, robust control in safety-critical environments.
A control barrier function (CBF) filter is a real-time control algorithm that enforces system safety by minimally modifying the control input produced by a nominal controller to guarantee that the closed-loop state remains within a safe set defined by barrier functions. CBF filters are central to the modularization of safety in control, enabling complex or learning-based systems to meet safety-critical requirements in a modular, computationally tractable manner. Recent advances generalize the classical (scalar) CBF paradigm through matrix-valued barrier functions and the synthesis of safety filters via semidefinite programming (SDP), enabling the treatment of more general, possibly nonsmooth or Boolean-composite safe sets while guaranteeing continuous, real-time implementable safety filters (Ong et al., 15 Aug 2025).
1. Matrix Control Barrier Functions: Definitions and Safe Set Classes
Matrix Control Barrier Functions (MCBFs) extend the standard CBF framework from scalar-valued to matrix-valued functions:
- Let be a continuously differentiable mapping from state space to the space of symmetric matrices.
- The associated semidefinite safe set is defined as
where denotes positive semidefiniteness.
MCBFs enable the description of a richer class of safe sets:
- Spectrahedral sets and sets defined by linear matrix inequalities (LMIs), notably encompassing connectivity constraints (e.g., weighted Laplacian eigenvalues for multi-agent networks).
- Safe sets defined by Boolean combinations of simpler sets (e.g., disjunctions via the maximum eigenvalue of diagonal ).
- Nonsmooth or piecewise-composite sets (e.g., union of polytopes or intersection of complex regions).
For indefinite safe sets, can be indefinite and , with the largest eigenvalue of .
2. MCBF Conditions and Forward Invariance
For dynamics , define the matrix Lie derivative (applied componentwise):
The key MCBF invariance condition is:
- Exponential Matrix Barrier Condition: If such that
then the safe set is forward-invariant; i.e., trajectories starting in remain in for all .
For control-affine dynamics , require that for each , there exists such that
For indefinite (OR-type) MCBFs, the barrier condition becomes
with an extended class– function and .
The standard CBF conditions for scalar safe sets are recovered as special cases (when ).
3. SDP-Based Synthesis of Continuous Safety Filters
At each control interval and state :
- Formulate a convex optimization (semidefinite program, SDP):
where is the nominal (possibly unsafe) control.
- For generalized barrier conditions (class–, indefinite), replace by the appropriate matrix–function.
- In the case of OR-composed CBFs (e.g., ), the SDP constraint enforces that at least one constituent , corresponding to the semantic disjunction.
Computational complexity is per SDP solve, practical for moderate .
4. Continuity and Robustness of the SDP Safety Filter
The MCBF-SDP filter enjoys strong continuity properties:
- The feasible set in is convex, lower-semicontinuous, and has nonempty interior due to the strict in the barrier conditions.
- The objective is strictly convex in and continuous in .
- By parametric convex optimization theory, the argmin mapping is continuous on a neighborhood of .
Consequently, the filtered control law is continuous, avoiding chattering or discontinuities even in the presence of eigenvalue crossings or Boolean compositions (unlike standard scalar CBF-QPs, where such transitions may induce nonsmooth behavior).
5. Practical Procedure and Algorithm Architecture
The online MCBF safety filter operates as follows:
- State Measurement: Obtain (state estimate at control step ).
- Nominal Control: Compute .
- Barrier Evaluation: Evaluate , , and for all .
- SDP Assembly: Construct the SDP constraint as dictated by the MCBF type (exponential, class–K, or indefinite).
- SDP Solve: Solve (typically via interior-point SDP solvers, e.g., Clarabel or MOSEK), obtaining .
- Actuation: Apply until the next update.
For , solve times are 1–2 ms on modern CPUs, suitable for control frequencies in the hundreds of Hz.
6. Applications: Drone Connectivity and Non-Smooth Obstacles
6.1 Drone Network Connectivity Maintenance
- Safety Objective: Maintain graph connectivity in a multi-UAV network.
- Barrier Construction: For a set of drones, the safe set is defined by the nonnegativity of the second-smallest Laplacian eigenvalue, encoding network connectivity.
- MCBF Encoding: is the modified weighted Laplacian plus perturbation; is the set where .
- Empirical Results: Both simulation and hardware (Crazyflie quadrotor swarm) confirm that MCBF-SDP centrally enforces continuous, connectivity-preserving controls without eigenvalue-chattering.
6.2 Nonsmooth Obstacle Avoidance via OR-CBF SDP
- Scenario: Enforce that the state stays outside the union of objects, e.g., keeping outside cylinder and plane constraints.
- OR-Composition: block-diagonalizes scalar functions; enforcement via a single indefinite MCBF-SDP encodes the disjunction exactly.
- Observations: The resulting filter yields continuous, minimally relaxing safe controls—unlike soft-max or penalty methods, no relaxation of the true Boolean safe set is incurred.
7. Comparative and Broader Implications
MCBF filters unify and generalize many scalar CBF approaches:
- All OR-compositions and Boolean constraint logic are handled natively in the SDP, unlike in QP-based scalar CBFs which typically require soft-min/max relaxations or multi-stage logic.
- Matrix-valued representation conveniently encodes constraints with spectral, graph-theoretic, or multidimensional geometric semantics, such as connectivity or spectrahedral obstacles.
- The continuous dependence on state and control input underpins robust, chattering-free real-time operation, critical for hardware deployment.
In summary, the MCBF-SDP framework establishes a rigorous, computationally viable safety filtering paradigm applicable to a broad range of safety-critical systems with high-dimensional, composite, or nonsmooth safety requirements (Ong et al., 15 Aug 2025).