Safety on the Fly: Constructing Robust Safety Filters via Policy Control Barrier Functions at Runtime
Luzia Knoedler, Oswin So, Ji Yin, Mitchell Black, Zachary Serlin, Panagiotis Tsiotras, Javier Alonso-Mora, Chuchu Fan
TL;DR
The paper tackles safe control synthesis for nonlinear systems under disturbances and input constraints by introducing Robust Policy CBF (RPCBF), a runtime method that builds robust control barrier functions from the policy value function. RPCBF uses finite-horizon policy rollouts and cubic-spline time discretization to approximate $V^{h,\pi}_T$ and its gradient, enabling a CBF-QP safety filter that remains valid under bounded disturbances; a sampling-based robust extension $V^{h,\pi}_{T,N}$ further guards against worst-case disturbances. The authors prove that the finite-horizon approximation can be a valid CBF under suitable conditions and demonstrate, through simulations on high-relative-degree systems and hardware experiments on a quadcopter, that RPCBF improves safety and robustness relative to non-robust and heuristic baselines, while maintaining real-time feasibility. The work provides practical guidance on horizon length, disturbance sampling, and time-discretization to balance safety guarantees with computational efficiency, highlighting the potential for runtime-safe control in complex robotic systems. Overall, RPCBF offers a scalable path to robust safety filters that can adapt to system dynamics and disturbance bounds without retraining.
Abstract
Control Barrier Functions (CBFs) have proven to be an effective tool for performing safe control synthesis for nonlinear systems. However, guaranteeing safety in the presence of disturbances and input constraints for high relative degree systems is a difficult problem. In this work, we propose the Robust Policy CBF (RPCBF), a practical approach for constructing robust CBF approximations online via the estimation of a value function. We establish conditions under which the approximation qualifies as a valid CBF and demonstrate the effectiveness of the RPCBF-safety filter in simulation on a variety of high relative degree input-constrained systems. Finally, we demonstrate the benefits of our method in compensating for model errors on a hardware quadcopter platform by treating the model errors as disturbances. Website including code: www.oswinso.xyz/rpcbf/
