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):
0
The key MCBF invariance condition is:
- Exponential Matrix Barrier Condition: If 1 such that
2
then the safe set 3 is forward-invariant; i.e., trajectories starting in 4 remain in 5 for all 6.
For control-affine dynamics 7, require that for each 8, there exists 9 such that
0
For indefinite (OR-type) MCBFs, the barrier condition becomes
1
with 2 an extended class–3 function and 4.
The standard CBF conditions for scalar safe sets are recovered as special cases (when 5).
3. SDP-Based Synthesis of Continuous Safety Filters
At each control interval and state 6:
- Formulate a convex optimization (semidefinite program, SDP):
7
where 8 is the nominal (possibly unsafe) control.
- For generalized barrier conditions (class–9, indefinite), replace 0 by the appropriate matrix–function.
- In the case of OR-composed CBFs (e.g., 1), the SDP constraint enforces that at least one constituent 2, corresponding to the semantic disjunction.
Computational complexity is 3 per SDP solve, practical for moderate 4.
4. Continuity and Robustness of the SDP Safety Filter
The MCBF-SDP filter enjoys strong continuity properties:
- The feasible set 5 in 6 is convex, lower-semicontinuous, and has nonempty interior due to the strict 7 in the barrier conditions.
- The objective 8 is strictly convex in 9 and continuous in 0.
- By parametric convex optimization theory, the argmin mapping 1 is continuous on a neighborhood of 2.
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 3 (state estimate at control step 4).
- Nominal Control: Compute 5.
- Barrier Evaluation: Evaluate 6, 7, and 8 for all 9.
- 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 0.
- Actuation: Apply 1 until the next update.
For 2, 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 3 drones, the safe set is defined by the nonnegativity of the second-smallest Laplacian eigenvalue, encoding network connectivity.
- MCBF Encoding: 4 is the modified weighted Laplacian plus perturbation; 5 is the set where 6.
- 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: 7 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).