Control Barrier Function for Unknown Systems: An Approximation-free Approach ††thanks: This work was supported in part by the ARTPARK.
Abstract
We study the prescribed-time reach-avoid (PT-RA) control problem for nonlinear systems with unknown dynamics operating in environments with moving obstacles. Unlike robust or learning based Control Barrier Function (CBF) methods, the proposed framework requires neither online model learning nor uncertainty bound estimation. A CBF-based Quadratic Program (CBF-QP) is solved on a simple virtual system to generate a safe reference satisfying PT-RA conditions with respect to time-varying, tightened obstacle and goal sets. The true system is confined to a Virtual Confinement Zone (VCZ) around this reference using an approximation-free feedback law. This construction guarantees real-time safety and prescribed-time target reachability under unknown dynamics and dynamic constraints without explicit model identification or offline precomputation. Simulation results illustrate reliable dynamic obstacle avoidance and timely convergence to the target set.
1 Introduction
Safety assurance in dynamical systems is essential in applications such as autonomous vehicles, aerial robots, and industrial automation. Beyond achieving the control objective, it is necessary to ensure that the system trajectories remain within safe regions of the state space. These requirements are often expressed as state constraints, and most existing control strategies rely on some knowledge of the system dynamics to check or enforce them. In practice, obtaining an accurate model is difficult due to uncertainty, unmodeled effects, and environmental changes. Exhaustive testing is also not feasible, yet safety and timely goal satisfaction must still be ensured, often within a prescribed time window.
Several approaches have been developed for the safety-critical control of nonlinear systems. Hamilton–Jacobi (HJ) reachability (mitchell2005) provides rigorous guarantees through backward reachable sets, but it requires solving high-dimensional PDEs, making it model-dependent and computationally expensive. Predictive safety filters (waberisich2023) enforce Nagumo’s condition through constrained optimization, but their complexity grows rapidly with the prediction horizon and the number of known obstacle trajectories. saxena proposed an RL-based approach to handle partially unknown dynamics, but it requires extensive offline training and offers no formal safety guarantees. Symbolic control (tabuada2009verification) requires large offline abstractions, making it impractical for high-dimensional or prescribed-time tasks. Achieving prescribed-time reach–avoid behavior remains challenging for all these approaches.
CBFs (ames2019theory; jagtap2020formal) have emerged as an efficient framework for real-time safety enforcement. However, classical CBF-based Quadratic Programs (CBF-QPs) (ames2019theory) assume fully known dynamics. To address uncertainty, several extensions have been proposed. Robust formulations explicitly compensate for known bounded disturbances or modeling errors (JANKOVIC2018359; buch2022; XU201554; kolathaya2019; alan2023), while learning-based methods employ Gaussian Processes or neural networks to approximate the unknown dynamics from data (jagtap2020; seiler2022; COHEN2024100947). Other works focus on improving estimation and observer design under uncertainty (takano2018) or adaptively adjusting safety margins. Moreover, Dynamic obstacle avoidance has been addressed via collision-cone constraints (manan). Despite these advances, most approaches still depend on either prior knowledge of uncertainty bounds or extensive offline training, limiting their practicality for systems with unstructured or time-varying uncertainties. Time-varying CBFs (8404080) extend safety constraints to logical or temporal tasks but remain applicable mainly to known system models and known disturbance bounds.
To deal with an unknown model, Prescribed-Performance Control (4639441; BERGER2018345; Berger2021) provides an approximation-free framework that ensures tracking errors remain in user-defined transient performance bounds. dasstt and das2025 extend the approximation-free framework to address the reach-avoid problem by using Spatiotemporal Tubes (STT). However, these frameworks do not explicitly encode safety constraints or support dynamic obstacle avoidance.
To overcome these limitations, we propose the Virtual Confinement Zone (VCZ) framework, which unifies approximation-free confinement and CBF-based safety. A CBF-QP generates a virtual trajectory ensuring reach-avoid satisfaction within a prescribed time using time-varying CBF constraints, while the true system is confined around this trajectory inside a shrinking, time-varying region. This construction guarantees VCZ forward invariance and prescribed-time reachability for nonlinear systems with unknown dynamics and moving obstacles, providing real-time safety and goal satisfaction without exact model knowledge, conservative uncertainty bounds, or any form of offline pre-computation. The proposed framework has been demonstrated using simulation.
2 Preliminaries and Problem Formulation
Notations: The Euclidean norm of vector is denoted by . The closed and open balls centered at with radius are given by and , respectively. The intersection and union of a collection of sets are denoted by and , respectively. For a vector-valued function , the Jacobian with respect to is denoted by . The class consists of continuous, strictly increasing functions with ; denotes unbounded functions; and the extended class includes functions that are continuous, strictly increasing, unbounded, and satisfy . The notations and represent positive (negative) definite and semidefinite matrices, respectively. The symbol denotes a vector of zeros. All other notation in this paper follows standard mathematical conventions.
2.1 System Definition
We consider a nonlinear control-affine dynamical system
| (1) |
where denotes the state, denotes the control input, maps , and disturbance signal satisfies the following assumptions.
Assumption 1.
The functions and are unknown, but bounded and locally Lipschitz continuous. Moreover, is assumed to be sign definite for all . The disturbance is an unknown but bounded and piecewise continuous signal.
2.2 Control Barrier Functions (CBFs)
A Control Barrier Function (CBF), as defined in ames2019theory, is a scalar function that ensures forward invariance of a safe set by enforcing an inequality constraint on the system’s input.
Definition 1 ( (8404080) Def. 2).
A continuously differentiable vector-valued function , where is number of unsafe set, given by , is a Control Barrier Function (CBF) candidate, where defines a unsafe set as
| (2) |
and each scalar function satisfies: in the interior of the unsafe set, on its boundary, and outside.
Given a known control-affine system where and , forward invariance over is ensured by enforcing the following CBF condition for all ,:
| (3) |
where is an extended class function.
The control input is then synthesized via the following Quadratic Program (QP):
| (4) | ||||
where , is a positive-definite Hessian matrix and is a gradient vector. This QP guarantees that the system remains within the safe set .
Lemma 1 (Forward Invariance of the Safe Set).
Let , , be continuously differentiable functions defining the unsafe set If the control input is chosen as the solution to the Quadratic Program (4), and the QP remains feasible for all and , then the safe set is forward invariant. That is,
2.3 Problem Formulation
In this work, we consider the prescribed-time reach-avoid tasks as defined next.
Definition 2.
Given an initial state , let denote the time-varying unsafe set, and let denote the target set. For the initial state and a prescribed time , the system in (1) is said to satisfy prescribed-time reach-avoid (PT-RA) task if and .
Problem 1.
Given an unknown system defined in (1) satisfying Assumption 1, time-varying unsafe set , a target set , a prescribe time , and initial state ; the objective is to synthesize a continuous controller such that the system state satisfies the prescribed-time reach-avoid task as defined in Definition 2 using a Control Barrier Function-based Quadratic Program (CBF-QP).
In principle, CBFs can achieve the PT-RA objective by enforcing set invariance and guaranteeing reach-avoid behavior, provided the CBF constraints are feasible. However, this approach relies on precise system dynamics, making it unsuitable for systems with unknown or uncertain dynamics.
To address this, in the next Section, we introduce a Virtual Confinement Zone (VCZ), a designer-specified, time-varying region, endowed with nominal virtual dynamics and a virtual control input, that encloses the system trajectory with appropriate approximation-free control design. We then generate a virtual control input via CBF-QP formulation to ensure satisfaction of the PT-RA task by VCZ. Next, as the true system trajectory remains confined within VCZ, it inherits its safety and reachability properties, ensuring the PT-RA task. Detailed controller design and analysis are presented in Sections 3 and 4, respectively. The schematic of the control flow is shown in Figure 1.
3 Controller Design
To address unknown dynamics, we first introduce the Virtual Confinement Zone (VCZ), a user-specified, time-varying region equipped with nominal virtual dynamics and a virtual control input.
Definition 3 (Virtual Confinement Zone).
A Virtual Confinement Zone (VCZ) is a time-varying open ball defined as , where is a time-varying center and is a fixed radius.
The center is assumed to evolve according to a user-defined virtual dynamical system of relative degree one:
| (5) |
where and are chosen as locally Lipschitz continuous functions, and is the virtual control input.
The VCZ serves as a dynamically adjustable admissible set that guides and constrains the actual system’s state. By appropriately designing the virtual dynamics , one can generate reference trajectories that respect PT-RA requirements. Moreover, the radius is chosen such that the terminal ball lies entirely within the target region .
With the (VCZ) and virtual dynamics defined, the overall control strategy proceeds in two concurrent stages:
-
(1)
Virtual control design: a CBF-QP-based controller that navigates the VCZ center.
-
(2)
Confinement control design: a separate controller maintains the system state within the evolving VCZ.
Step 1: Virtual Control Design using CBF-QP over VCZ dynamics
Consider a prescribed-time reach-avoid problem defined in Problem 1, where unsafe region is defined as the union of moving obstacles
where each obstacle is modeled as an open Euclidean ball with center and radius . The target set is a closed ball with and by Definition 2, it satisfies .
a) Initialization of VCZ.
At , we initialize a Virtual Confinement Zone (VCZ) around the initial state [cf. Def 3], i.e., , and , ensuring that the system starts in a safe configuration. Additionally, the radius of VCZ is chosen as to ensure that .
b) Barrier functions for PT-RA Task.
Assuming that the true state lies within , an equivalent subobjective is to ensure that the entire VCZ remains safe and reaches the target set at the prescribed time :
We make the following assumptions about the obstacle sets:
Assumption 2 (Obstacle motion and separation).
For all and for all :
-
1.
Each obstacle has known radius , center position , and velocity . The quantitie is bounded, and obstacle motion is continuous.
-
2.
Minimum distance between any two obstacles satisfies
ensuring that the VCZ can pass between them.
-
3.
At , the target set is obstacle-free: .
To ensure the entire VCZ remains outside all obstacles, it suffices for its center to satisfy the tightened constraint
Accordingly, the unsafe set for the VCZ center is
To guarantee the VCZ remains within the target region at , we define the shrunk target set for the center as
By construction, maintaining the center of VCZ within the tightened safe set for all and driving it into at ensure that the entire VCZ satisfies PT-RA task. Formally,
| (6) |
A formal proof of this implication is provided in the next section.
To address the prescribed-time reach-avoid problem for the VCZ center with respect to the unsafe set and the target set , we employ the CBF–QP framework [Def. 1] applied to the virtual dynamics (5). We consider obstacles forming the unsafe set , with corresponding control barrier functions
| (7) |
To ensure reaches the target , within the prescribed time , we construct a shrinking set that initially encloses both and and contracts over time until it is fully contained in at . A barrier function associated with this set guarantees the invariance of and thus the prescribed-time convergence.
Formally, the shrinking set is defined as , where with and . The parameters and are chosen to satisfy the boundary conditions based on the geometry of the sets, and can be explicitly computed as and .
The corresponding barrier function for target reach is
| (8) |
c) Controller synthesis for prescribed-time reach-avoid.
By Lemma 1, the CBF conditions guarantee forward invariance of the set associated with each CBF
| (10) |
Consequently, the VCZ center satisfies PT-RA task (3).
To enforce these conditions, we synthesize the virtual control input via the following quadratic program (QP) based on the virtual dynamics (5):
| (11) | ||||
| s.t. |
where and . The matrices and the class- function are defined in Def. 1.
Assumption 3.
and , there exists a control input that satisfies the CBF constraints in (11).
Remark 1.
The virtual dynamics, driven by the virtual control input , ensure the PT-RA task. The next step ensures that the true state remains within the VCZ , which allows the true system to inherit the reach–avoid property
Step 2: Confinement Control Design
In Step 1, it has been shown that the entire VCZ avoids the true unsafe sets for all and reaches the target set at time . Hence, if the true state trajectory is confined within the VCZ , the PT-RA objective in Definition 2 is satisfied. The goal of Step 2 is to ensure this confinement:
| (12) |
To enforce (12), we design a feedback controller based on the error between the true state and the VCZ center
| (13) |
and its normalized form . From Definition 3 , the normalized error satisfies .
The control input ensuring confinement within VCZ is defined as:
| (14) |
where is defined as , acting as a logarithmic barrier that ensures . The design gain if , and if . Furthermore, .
Remark 2.
By Step 1, the VCZ center trajectory satisfies the PT-RA specification with respect to inflated sets (3). By Step 2, the true state is confined within the VCZ for all (12). Together, these yield the implication chain:
| (15) |
Thus, the true system trajectory satisfies the prescribed-time reach–avoid specification of Definition 2.
4 Stability and Invariance Analysis
This section establishes the stability of the closed-loop system and demonstrates set invariance with respect to the true obstacles. We first verify the well-posedness of the CBF-QP (11) and continuity of the control input . Next, we show that the true system state remains within the VCZ for all . Finally, leveraging this confinement, we prove that the true system satisfies the PT-RA condition [Def. 2] via set invariance.
Lemma 2 (Boundedness of solution of CBF-QP).
Lemma 3 (Continuity of controller).
Theorem 1.
Consider an unknown dynamical system (1) subject to Assumption 1, initialized at . Let the control input be defined in (14),
where is derived from the virtual dynamics (5)
of the VCZ constructed in Section 3, such that , with and locally Lipschitz. The virtual control input is derived from the CBF-QP (11)
| s.t. |
where Under Assumption 3, The resulting closed-loop system satisfies the PT-RA task
Proof.
We first show that and then prove prescribed-time reach-avoid (PT-RA) for the VCZ .
Step 1: Confinement of in : Using error (13) and the true dynamics (1), we get error dynamics as
| (16) |
By Assumption 1, , , and are bounded. The virtual system satisfies , where and are locally Lipschitz. The CBF (7) subject to the feasibility Assumption 3 ensures , making and bounded over the compact domain . By virtue of Lemma 2, the virtual control input is uniformly bounded and piecewise continuous in . Thus is uniformly bounded over compact set and piecewise continuous in , implying continuity of and therefore of . With the control law (14),
| (17) |
where is bounded and piecewise continuous in and is sign-definite and bounded (Assumption 1).
At the dynamics (17) is well defined as control is defined for ) and remains well posed within as is continuous over from Lemma 3. Now to prove that we consider the Lyapunov candidate defined over domain , where . is a extended class- function (strictly increasing, continuous, and ), is positive in . Differentiating along (17) and applying standard comparison arguments, we obtain ultimate boundedness of , i.e., the closed-loop system is uniformly ultimately bounded [ref. khalil2002nonlinear Theorem 4.18 ] on , which implies
| (18) |
The proof for error for error dynamics (17) to be Uniformly Ultimately Bounded (UUB) within follows similarly to related constructions in the literature (e.g., demos_funnel).
5 Simulation Results and Discussion
We validate the proposed control strategy on a two-dimensional second-order nonlinear control-affine system with unknown drift and a time-varying unsafe set. The true system dynamics are given by , where , , , , and with initial condition . A static and a dynamic circular obstacle are defined as the sets and , where , , , and . The objective is to reach the target set in , where .
The virtual trajectory evolves under the single-integrator dynamics given in (5), where the virtual control is obtained from the CBF-QP (11). The safety constraints for the virtual state are encoded by the CBFs and with , in accordance with (7). To impose prescribed-time convergence, the target set is chosen as with center , together with a shrinking set and the reach CBF defined in (8). The radius decreases linearly as from to over the interval with . Given an initial condition , the virtual state is initialized as with , ensuring that the real system starts inside the VCZ. The CBF-QP ensures that remains within the safe sets and inside the shrinking region , while the actual control confines the true state around . Consequently, when reaches at , the true state also lies inside the desired target region , thereby achieving prescribed-time reach-avoid.


As illustrated in Fig. 2(a) and (b), the system trajectory remains within the prescribed bounds over the entire time horizon . It consistently avoids both static and moving obstacles with a guaranteed safety margin of , enforced by the control barrier function-based constraints. Moreover, the trajectory converges to the final target set , demonstrating the effectiveness of the proposed approach under time-varying safety and performance constraints for an unknown system. The simulation video is available at https://youtu.be/OqGYwqsUnAw
6 Discussion and Comparison
Table 1 compares the proposed VCZ–CBF framework with representative safe control approaches. Classical HJ–reachability methods (waberisich2023; mitchell2005) provide formal safety guarantees but rely on accurate models, known disturbance bounds, and are, in general, computationally demanding and less suited for real-time control in dynamic environments. Predictive safety filters (PSFs) (waberisich2023) are real-time but require nominal control and cannot work under a dynamic unsafe set unless the trajectory is known. Reinforcement learning approaches (saxena) can handle partially unknown systems but depend on extensive pretraining or precomputation and no formal guarantee. Similarly, Symbolic Control (tabuada2009verification) also requires extensive precomputation and is difficult to achieve PT-RA. Funnel control (4639441) ensures bounded transient response without explicit model knowledge, but cannot directly encode time-varying safety constraints or moving obstacles. Spatio-Temporal Tubes (STT) (dasstt) ensures PT-RA with an unknown model, but also cannot handle dynamic environments.
In contrast, the proposed VCZ–CBF framework is approximation-free, ensures PT-RA, operating on a nominal virtual system while confining the true, unknown dynamics within a shrinking invariant region. This decoupling enables real-time implementation, prescribed-time reach-avoid guarantees, and robustness in dynamic environments, capabilities not jointly achieved by existing methods.
Despite these advantages, several practical limitations remain. First, as in many QP-based CBF methods, the virtual control can become large near intersecting constraints or rapidly moving obstacle boundaries, increasing control effort. Second, estimating obstacle velocities in real time is challenging under noisy or delayed perception, which may lead to conservative barrier constraints and potential control saturation. Finally, because the true state must remain within a fixed radius of the virtual trajectory, the tightened safe sets reduce the effective workspace, introducing spatial conservatism. Incorporating bounded-input feasibility and adaptive inflation strategies could mitigate these issues while preserving invariance and prescribed-time guarantees.
| Algorithm | Unknown | Precomp./ | Formal | PT-RA | Dynamic |
|---|---|---|---|---|---|
| Dynamics | Training Req. | Guarantee | Environments | ||
| RL (saxena) | ✓ | ✓ | ✗ | ✗ | ✗ |
| Symbolic Control (tabuada2009verification) | ✗ | ✓ | ✓ | ✗ | ✗ |
| PSFs (waberisich2023) | ✗ | ✗ | ✓ | ✗ | ✗ |
| STT (dasstt) | ✓ | ✗ | ✓ | ✓ | ✗ |
| HJ-Reachability (mitchell2005) | ✗ | ✓ | ✓ | ✗ | ✗ |
| Funnel Control (Berger2021) | ✓ | ✗ | ✓ | ✗ | ✗ |
| VCZ-CBF (Proposed) | ✓ | ✗ | ✓ | ✓ | ✓ |
7 conclusion
We proposed a safe control framework for nonlinear control-affine systems with unknown dynamics using a Virtual Confinement Zone (VCZ) scheme. A virtual control input was synthesized via a CBF-based Quadratic Program, ensuring prescribed-time reach–avoid guarantees without requiring explicit system identification or uncertainty bounds. Safety was enforced through Control Barrier Functions applied to a known virtual system, while the true system was confined around the virtual trajectory.
Appendix A Proof of Lemma 2
Proof.
From Assumption 2, the signals , , , and are bounded (and measurable) on the compact domain enforced by shrinking CBF (7); hence is bounded for .
The CBF for target set reach (8) can be expressed as
with , . By construction of the shrinking set , the quantities , , , , and are bounded (and measurable) on ; hence is bounded for .
Stacking them together, the constraint becomes
where the rows of are the and the entries of are the with bounded.
From the feasibility Assumption 3 and strict convexity of the objective (constant ), bounded RHS and non vanishing LHS as , the CBF–QP (11) admits a unique optimizer . Since the quadratic cost is coercive, and the affine feasible set is a nonempty closed polyhedron; by Berge’s maximum theorem and assumption 3 the argmin set is nonempty and compact, hence is uniformly bounded on . Finally, by assumption3 the solution is feasible and the optimizer is unique, the mapping is piecewise continuous in . ∎
Appendix B Proof of Lemma 3
Proof.
From (14) the auxiliary function is continuous on over . Furthermore, the function is continuous on , over and is constant based on eigenvalue of
We prove continuity of the control input in two parts: one where , and another at by applying limits.
Part 1. For , and are continous on in , the contoller is continuous on in .
Part 2. To prove that is continuous at , it is necessary that
When , the control input is defined to be . Thus . For , from (14),
For , expanding gives so
The terms cancel, yielding as .
Therefore, . Hence, the control input is continuous in on .
∎