<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Generalizing Robust Control Barrier Functions From a Controller Design Perspective</title></titleStmt>
			<publicationStmt>
				<publisher>IEEE</publisher>
				<date>01/01/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10621872</idno>
					<idno type="doi">10.1109/OJCSYS.2025.3529364</idno>
					<title level='j'>IEEE Open Journal of Control Systems</title>
<idno>2694-085X</idno>
<biblScope unit="volume">4</biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Anil Alan</author><author>Tamas G Molnar</author><author>Aaron D Ames</author><author>Gábor Orosz</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[While control barrier functions provide a powerful tool to endow controllers with formal safety guarantees, robust control barrier functions (RCBF) can be used to extend these guarantees for systems with model inaccuracies. This paper presents a generalized RCBF framework that unifies and extends existing notions of RCBFs for a broad class of model uncertainties. Main results are conditions for robust safety through generalized RCBFs. We apply these generalized principles for more specific design examples: a worst-case type design, an estimation-based design, and a tunable version of the latter. These examples are demonstrated to perform increasingly closer to an oracle design with ideal model information. Theoretical contributions are demonstrated on a practical example of a pendulum with unknown periodic excitation. Using numerical simulations, a comparison among design examples are carried out based on a performance metric depicting the increased likeness to the oracle design.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Safety is one of the most important requirements when designing an autonomous system. Motivated to find control inputs with formal safety certification, safety-critical controllers can be designed using methods such as model predictive control <ref type="bibr">[1]</ref>, reference governor <ref type="bibr">[2]</ref>, or Hamilton-Jacobi-based reachability <ref type="bibr">[3]</ref>. Relying on a safety verification tool called barrier certificates <ref type="bibr">[4]</ref>, control barrier functions (CBFs) provide one such framework, and this has been widely adopted in the recent literature <ref type="bibr">[5]</ref>, <ref type="bibr">[6]</ref>. In simple terms, safety (or set invariance) is defined by staying in safe states corresponding to the positive values of a scalar-valued function h. The CBF framework provides a sufficient condition for safe control in the form of a lower bound on the time derivative &#7715;. One of the widely utilized applications of CBFs has been a control design paradigm called safety filters <ref type="bibr">[6]</ref>, <ref type="bibr">[7]</ref>, where the deviation from a given controller is penalized in a quadratic program (QP) while subject to a CBF-based safety constraint.</p><p>Proven to be a powerful tool in synthesizing safe controllers, the CBF literature has expanded towards various directions, including higher order derivatives to increase feasibility <ref type="bibr">[8]</ref>, <ref type="bibr">[9]</ref>, sampled-time systems <ref type="bibr">[10]</ref>, <ref type="bibr">[11]</ref>, <ref type="bibr">[12]</ref>, different time-explicit safety definitions <ref type="bibr">[13]</ref>, <ref type="bibr">[14]</ref>, and more general temporal logic specifications <ref type="bibr">[15]</ref>. One particular research direction that has gathered much interest is robustness against unmodeled dynamics. CBF-based safety guarantees may degrade if there is a mismatch between the real system and the model used to represent it. This mismatch may emerge from unknown external disturbances <ref type="bibr">[16]</ref> or complex internal dynamics omitted to facilitate the implementation.</p><p>Two main approaches have arisen for robustness against deterministic uncertainties: input-to-state safety (ISSf) and robust control barrier functions (RCBFs). On one hand, the ISSf framework (which is inspired from input-to-state stability for control Lyapunov functions <ref type="bibr">[17]</ref>) can be used to obtain an arbitrarily small (graceful) degradation of safety guarantees in the presence of uncertainty <ref type="bibr">[16]</ref>, <ref type="bibr">[18]</ref>, <ref type="bibr">[19]</ref>, <ref type="bibr">[20]</ref>. On the other hand, motivated to obtain zero safety degradation, the RCBF framework investigates conditions to sufficiently ensure the CBF-based safety condition for systems with uncertainty under the worst possible case <ref type="bibr">[21]</ref>.</p><p>This paper advances the theoretical and practical understanding of RCBFs by generalizing their framework to accommodate a wide spectrum of uncertainties. In particular, we present an overview of the sufficient conditions for feasible robust safety-critical control against different forms of uncertainties. Then, we study solutions for specific problem setups with increasing likeness to an oracle controller. Robust safety filters designed based on these principles are implemented on a practical example, and we illustrate the theoretical findings using simulations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. LITERATURE ON RCBF</head><p>The study of robust optimization in the presence of uncertainty spans back to earlier studies <ref type="bibr">[22]</ref>, <ref type="bibr">[23]</ref>, even in the context of barrier-Lyapunov functions <ref type="bibr">[24]</ref>. One of the key contributions for the CBF-based controllers was given in <ref type="bibr">[21]</ref>, where the CBF-based safety constraint was modified, hence the name robust CBF (RCBF). Providing conditions for sufficiently compensating the uncertainty under the worst-case scenario, the RCBF framework proves to be an effective method to guarantee robust safety. The RCBF framework received attention so much so the definition has expanded rapidly to other types of uncertainties ever since. For example, uncertainties with state dependence were addressed in the form of parametric uncertainties <ref type="bibr">[25]</ref>, <ref type="bibr">[26]</ref>, <ref type="bibr">[27]</ref>, or in a more general form <ref type="bibr">[13]</ref>, <ref type="bibr">[28]</ref>, <ref type="bibr">[29]</ref>. The more challenging case of uncertainties in how control inputs are related to the state dynamics were considered in works <ref type="bibr">[30]</ref>, <ref type="bibr">[31]</ref>, <ref type="bibr">[32]</ref>, <ref type="bibr">[33]</ref>.</p><p>The framework was also adopted by less conservative methods relying on estimators with deterministic or probabilistic residual estimation errors. RCBF definitions in these works took different forms to incorporate the estimator and the error compensation. For example, adaptive control techniques were adopted for parametric uncertainties <ref type="bibr">[25]</ref>, <ref type="bibr">[26]</ref>, <ref type="bibr">[27]</ref>, <ref type="bibr">[34]</ref>, where limitations in the parameter space were used in the RCBF definition. Various disturbance and state observer approaches were implemented for online uncertainty estimation <ref type="bibr">[29]</ref>, <ref type="bibr">[35]</ref>, <ref type="bibr">[36]</ref>, <ref type="bibr">[37]</ref>, <ref type="bibr">[38]</ref>, <ref type="bibr">[39]</ref>, <ref type="bibr">[40]</ref>, <ref type="bibr">[41]</ref>, where bounds on the Euclidean norm of the uncertainty, its derivative or its underlying dynamics were incorporated into the RCBF definition, and various forms of Lipschitz constants were utilized. Learning-based and data-driven extensions of the RCBF framework typically utilize Lipschitz constants or bounded Jacobians regarding the uncertainty <ref type="bibr">[42]</ref>, <ref type="bibr">[43]</ref>, <ref type="bibr">[44]</ref>. When unknown dynamics are estimated with probabilistic confidence bounds, adding these terms in the RCBF definition provides safety guarantees with high probability <ref type="bibr">[45]</ref>, <ref type="bibr">[46]</ref>, <ref type="bibr">[47]</ref>, <ref type="bibr">[48]</ref>, <ref type="bibr">[49]</ref>, <ref type="bibr">[50]</ref>.</p><p>Robustness requirements for deploying safety-critical controllers with specified sampling interval were also addressed within the RCBF framework. In this context, the definition of the RCBF incorporates the Lipschitz constants of the system and constraint functions, along with the bounds of the control space <ref type="bibr">[10]</ref>, <ref type="bibr">[11]</ref>, <ref type="bibr">[51]</ref>. Other types of imperfections addressed using the RCBF framework are robustness against measurement errors <ref type="bibr">[52]</ref> and unmodeled input dynamics <ref type="bibr">[53]</ref>, which utilize Lipschitz constant and integral quadratic constraints, respectively. The RCBF framework was also extended to higher order CBF formulations <ref type="bibr">[54]</ref>, <ref type="bibr">[55]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. CONTRIBUTIONS</head><p>The aforementioned boom in the robust safety-critical control literature inevitably led to a fractured landscape of different RCBF definitions that rely on various assumptions on the system, safe set and uncertainty. Motivated by the lack of such a study, we present an overview of the general robust safety-critical control design principles within the scope of the CBF framework as the first contribution of the paper. In particular, we elevate the RCBF formulation by considering a general form of uncertainty. This generalization not only unifies existing approaches but also establishes a foundation for deriving simplified verification conditions and implementable solutions for robust safety-critical controllers.</p><p>The second contribution of the paper demonstrates the utility of the general framework by developing a robust safety filter for a previously unaddressed type of uncertainty. Specifically, we propose a novel sufficient condition to guarantee feasibility and robust safety and to enable the derivation of closed-form controllers in certain scenarios. Additionally, leveraging the generalized framework, we introduce a tunable controller design that incorporates disturbance observers, extending the state of the art by reducing conservativeness. The tunability concept, originally conceived for the ISSf framework, is adapted here to improve flexibility and performance, demonstrating its broad applicability across different RCBF methods.</p><p>Finally, the theoretical advancements are validated through application to a physics-based example involving a pendulum with unknown periodic excitation. Numerical simulations showcase the efficacy of the proposed methods, compare their performance metrics to an idealized oracle design and highlight the significant reduction in conservativeness achieved by the proposed controllers. These results underscore the potential of the generalized RCBF framework to unify, extend, and enhance existing approaches of robust safety-critical control.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. ORGANIZATION</head><p>The paper is organized as follows. Section II provides the theoretical foundation, introducing the general principles of CBFs and extending these concepts to RCBFs to address system uncertainties. Section III presents the detailed design steps of a robust safety filter for a specific set of uncertainty assumptions. In Section IV we extend these principles for a less conservative problem setup with a disturbance observer. Section V introduces a detailed discussion on the performance of previously proposed controllers on a practical application platform. Section VI concludes the paper with a summary and future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. GENERALIZED RCBF FRAMEWORK</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A continuous function</head><p>it is strictly increasing, and lim r&#8594;&#177;&#8734; &#945;(r) = &#177;&#8734;. The term &#8711;h : R n &#8594; R n denotes the gradient vector of a function h : R n &#8594; R. Also, &#8226; denotes the 2-norm.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. SAFETY AND CONTROL BARRIER FUNCTIONS</head><p>Consider a nonlinear system affine in control:</p><p>where terms x &#8712; R n , u &#8712; U &#8838; R m and t &#8712; T [t 0 , &#8734;) denote the state, input and time from a given initial time t 0 &#8712; R, respectively, while functions f : R n &#215; T &#8594; R n and g : R n &#215; T &#8594; R n&#215;m describe dynamics. Substituting a feedback controller k : R n &#215; T &#8594; R m into the input u = k(x, t ) leads to the closed loop system:</p><p>If we can find an open set X &#8834; R n on which functions f , g and k are locally Lipschitz continuous in x and piece-wise continuous in t for all t &#8712; T, then there exists a time interval I (x 0 , t 0 ) &#8838; T for each initial condition x 0 &#8712; X such that (2) has a unique solution x(t ) for all t &#8712; I (x 0 , t 0 ) <ref type="bibr">[56]</ref>. Throughout the paper we assume that the solution is forward complete, that is, I (x 0 , t 0 ) = T.</p><p>Our goal is to obtain a formal guarantee that, initiated from a set, the solution never leaves the set.</p><p>Definition 1 (Safety, <ref type="bibr">[6]</ref>): The closed loop system (2) is safe w.r.t. a set S &#8834; X &#8834; R n if for all x 0 &#8712; S we have that x(t ) &#8712; S for all t &#8805; t 0 .</p><p>In particular, we consider set S defined as the 0-superlevel set of a continuously differentiable function h : X &#8594; R:</p><p>Here, &#8706;S and Int(S ) denote the boundary and the interior of S, respectively. Definition 2 (Regular value):</p><p>If 0 is a regular value of h, then a non-zero gradient exists for h everywhere on &#8706;S. Then a vector y &#8712; R n is an element of the tangent cone of S at a point x &#8712; &#8706;S if we have &#8711;h(x) y &#8805; 0 <ref type="bibr">[57]</ref>. Nagumo's theorem provide a condition for safety by utilizing tangent cones <ref type="bibr">[58]</ref>, <ref type="bibr">[59]</ref>:</p><p>Theorem 1 (Nagumo's theorem, <ref type="bibr">[58]</ref>): Let S be the 0superlevel set defined as in (3) with a continuously differentiable function h : X &#8594; R, and let 0 be a regular value of h. The closed loop system (2) is safe w.r.t. S if and only if:</p><p>Remark 1: A proof of Nagumo's theorem is in [57, &#167;4.2]. While this proof is constructed for autonomous systems, it can be extended to nonautonomous ones by introducing the time variable as a fictitious state; see [57, &#167;4.2.2] for details.</p><p>Our overarching goal is to design safety-critical controllers k(x, t ) such that the corresponding closed loop system (2) is safe. Control barrier functions provide a sufficient condition for the existence of a safe controller. Note that, hereafter we will utilize the Lie derivative notation L f h and L g h for the time derivative of h along the system:</p><p>Definition 3 (Control barrier function <ref type="bibr">[60]</ref>): Let S be the 0-superlevel set defined as in (3) with a continuously differentiable function h : X &#8594; R, and let 0 be a regular value of h. Then, the function h is called a control barrier function (CBF) for (1) on (X &#215; T) if there exists a &#945; &#8712; K e &#8734; such that &#8704;(x, t ) &#8712; (X &#215; T):</p><p>Defining the point-wise set of controllers:</p><p>the existence of h implies that K CBF (x, t ) is not empty &#8704;(x, t ) &#8712; (X &#215; T). Safety is ensured for controllers taking values in K CBF . Lemma 1 ( <ref type="bibr">[60]</ref>): Let h be a CBF for (1) on (X &#215; T). A controller k(x, t ), that is Lipschitz continuous in x and piecewise continuous in t, ensures that the system (2) is safe w.r.t. S &#8834; X if k(x, t ) &#8712; K CBF (x, t ) holds &#8704;(x, t ) &#8712; (X &#215; T).</p><p>Proof: The K e &#8734; definition implies &#945;(h(x)) = 0, &#8704;x &#8712; &#8706;S. Thus, <ref type="bibr">(9)</ref> implies that any controller k(x, t ) &#8712; K CBF (x, t ) satisfies <ref type="bibr">(6)</ref>. The regularity conditions on the controller k ensure the existence of a unique solution x(t ), and Theorem 1 completes the proof.</p><p>Remark 2: In Definition 3 we look for a strict inequality in the condition <ref type="bibr">(8)</ref>, whereas the inequality is non-strict in the definition of K CBF in <ref type="bibr">(9)</ref>. As elaborated in the works <ref type="bibr">[5]</ref>, <ref type="bibr">[21]</ref>, <ref type="bibr">[59]</ref>, <ref type="bibr">[61]</ref>, the strict inequality in the CBF definition allows us to endow the CBF-based controllers with useful properties such as continuity and Lipschitz continuity.</p><p>The following set definition will keep the notation compact throughout the paper:</p><p>The set G contains x and t values that the vector valued function L g h(x, t ) &#8712; R m vanishes. That is, the input relative degree of h becomes more than one for any (x, t ) &#8712; G. Remark 3 <ref type="bibr">([59]</ref>): The condition</p><p>is a necessary condition for the inequality <ref type="bibr">(8)</ref>. This implies that, should (8) hold, then safety can be shown with L f h when the input relative degree of h is more than one. Furthermore, if U = R m , then <ref type="bibr">(11)</ref> amounts to a necessary and sufficient condition to verify whether a function h is CBF <ref type="bibr">[59]</ref>. This is an easier condition to check whether a given h is a CBF for a system. We will utilize this property to obtain simpler sufficient conditions that ensure the feasibility of the robust safety-critical control problem.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. SAFETY FILTERS</head><p>We can utilize CBFs in a pointwise optimization problem under the context of correcting a given-possibly unsafe-nominal controller. In particular, the goal is to ensure safety in a minimally invasive fashion. Consider the controller</p><p>Here k d : X &#215; T &#8594; U is an existing controller, Lipschitz continuous in x and piecewise continuous in t, with desired guarantees like optimality and stability. The constraint ensures safety, while the cost function penalizes the deviation from k d . As a result, a minimum intervention occurs only when necessary (i.e., when</p><p>If U can be represented with affine constraints, this problem becomes quadratic programming (QP). The following theorem summarizes key points about this CBF-based controller scheme (often referred to as safety filter).</p><p>Theorem 2 ( <ref type="bibr">[59]</ref>, <ref type="bibr">[62]</ref>): Let S be the 0-superlevel set defined as in (3) with a continuously differentiable function h : X &#8594; R, and let 0 be a regular value of h.</p><p>r Let h be a CBF for (1) on (X &#215; T), then the QP ( <ref type="formula">12</ref>) is feasible, and k QP (x, t ) &#8712; K CBF (x, t ) for all (x, t ) &#8712; (X &#215; T). This implies that the system (2) is safe w.r.t. S when u = k QP (x, t ).</p><p>r If U = R m , then the QP has a closed-form solution:</p><p>) where the function : X &#215; T &#8594; R is defined as:</p><p>with the function : X &#215; T &#8594; R given as:</p><p>Interested reader is referred to works for details <ref type="bibr">[62]</ref>, <ref type="bibr">[63]</ref>. Remark 4: ([62], <ref type="bibr">[63]</ref>) For a scalar input system, i.e., m = 1, the safety filter (13) simplifies to:</p><p>where QP : X &#215; T &#8594; R is given as:</p><p>Remark 5: Since the Lipschitz properties are preserved through a max/min operation <ref type="bibr">[64]</ref>, the safety filter in (13) (and ( <ref type="formula">16</ref>)) can be shown to be Lipschitz continuous in x if all functions have the same property <ref type="bibr">[21]</ref>, <ref type="bibr">[65]</ref>.</p><p>Safety guarantees may degrade when the CBF-based control design relies on a partially known system model. Thus, successful implementation of a CBF-based safety-critical controller depends on the resilience of the design against uncertainties emerging from unmodeled dynamics. Next, we investigate conditions to obtain robust safety for the CBFbased safety condition (8) for a general type of uncertainty.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. GENERALIZED ROBUST CBFS</head><p>Consider the system</p><p>where f and g are the nominal (known) system functions, and</p><p>Evaluating &#7715; along the open loop system (18) yields:</p><p>The uncertainty prevents us from looking for the condition &#7715; &#8805; -&#945;(h), cf. <ref type="bibr">(7)</ref>. This motivates the introduction of robust control barrier functions (RCBFs) as follows. The main goal is to find a set of controllers K RCBF (x, t ) &#8838; U such that a controller k(x, t ) &#8712; K RCBF (x, t ) implies the condition &#7715; &#8805; -&#945;(h) under the worst-case scenario. This goal can be achieved by modifying the condition (8) by introducing a compensation term, which will be denoted as &#963; in this paper. The compensation term takes different forms based on what we know about the system and the uncertainty. For example, if there exists a &#956; &#8805; 0 such that &#956;(x, u, t ) &#8804; &#956; for all x &#8712; X, u &#8712; U and t &#8805; t 0 , then we can use <ref type="bibr">[21]</ref>, <ref type="bibr">[66]</ref>:</p><p>Consider that the uncertainty affects the system dynamics through input channels, that is,</p><p>This case is called matched uncertainty. If the input uncertainty d satisfies d (x, u, t ) &#8804; d with a d &#8805; 0 for all x &#8712; X, u &#8712; U and t &#8805; t 0 , then, instead of ( <ref type="formula">21</ref>), we can use:</p><p>to scale the compensation with L g h(x, t ) which characterizes the effect of d on &#7715;. If d (x, u, t ) &#8804; d u u for all x &#8712; X, u &#8712; U and t &#8805; t 0 , which can occur if there is a sector-bounded uncertainty in the input <ref type="bibr">[32]</ref>, then one can use a compensation of the form</p><p>The input-to-state safety type of robust controllers utilize a robustifying function of the form <ref type="bibr">[16]</ref>, <ref type="bibr">[18]</ref>:</p><p>and</p><p>where the latter introduces the 'tunability'. Table <ref type="table">I</ref> in <ref type="bibr">[66]</ref> provides a summary of various forms of &#963; in the literature as well as the underlying assumptions on the uncertainty. Definition 4 (Robust control barrier function, generalized from <ref type="bibr">[21]</ref>): Let S be the 0-superlevel set defined as in (3) with a continuously differentiable function h : X &#8594; R, and let 0 be a regular value of h. The function h is called a robust control barrier function (RCBF) for ( <ref type="formula">18</ref>) on (X &#215; T) if there exist functions &#945; &#8712; K e &#8734; and &#963; :</p><p>Given a RCBF h with functions &#945; &#8712; K e &#8734; and &#963; , we can define the point-wise set of controllers:</p><p>The following lemma summarizes the sufficient condition so that controllers from K RCBF guarantee the robust safety:</p><p>Lemma 2: Let h be a RCBF for <ref type="bibr">(18)</ref> on (X &#215; T) with a function &#963; . Any controller k(x, t ), that is locally Lipschitz continuous in x and piecewise continuous in t, satisfying k(x, t ) &#8712; K RCBF (x, t ) for all (x, t ) &#8712; (X &#215; T) ensures that the system ( <ref type="formula">19</ref>) is safe w.r.t. S if the following condition holds for all u &#8712; K RCBF (x, t ) and (x, t ) &#8712; (&#8706;S &#215; T)</p><p>Proof:</p><p>The K e &#8734; definition implies &#945;(h(x)) = 0, &#8704;x &#8712; &#8706;S. Thus, it is evident from ( <ref type="formula">27</ref>) and ( <ref type="formula">28</ref>) that any controller k(x, t ) &#8712; K RCBF (x, t ) for all (x, t ) &#8712; (X &#215; T) ensures that ( <ref type="formula">6</ref>) is satisfied. The regularity requirements on the controller k ensure the existence of a unique solution x(t ), and Theorem 1 completes the proof.</p><p>In general, it is a challenging task to find a proper &#963; . For example, choosing a function that takes large positive values may satisfy the condition (28) conservatively. However, this decreases the feasibility of the control problem by making the set K RCBF smaller, cf. <ref type="bibr">(27)</ref>. It is important to construct the compensation compatible with the safety problem (for example by adding &#8711;h or L g h into &#963; ) and the uncertainty assumptions to mitigate this trade-off; see e.g. ( <ref type="formula">21</ref>)- <ref type="bibr">(23)</ref>.</p><p>Furthermore, notice that the condition ( <ref type="formula">28</ref>) is posed over the boundary of S. Consequent to this observation, robust safety is primarily related to the values that the function &#963; takes when x &#8712; &#8706;S. This gives us a certain relaxation factor that will be used in the 'tunable' setting in Section IV.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. ROBUST SAFETY FILTERS</head><p>We can update the optimization problem (OP) in <ref type="bibr">(12)</ref> based on the RCBF condition <ref type="bibr">(26)</ref> to get the robust safety filters:</p><p>where k d is the desired controller. Relying on the RCBF definition and Lemma 2, we can summarize conditions such that k OP ensures the closed-loop robust safety. Theorem 3: Let h be a RCBF for ( <ref type="formula">18</ref>) on (X &#215; T) with functions &#945; &#8712; K e &#8734; and &#963; . Then, the OP ( <ref type="formula">29</ref>) is feasible, and k OP (x, t ) &#8712; K RCBF (x, t ) for all (x, t ) &#8712; (X &#215; T). Furthermore, the system ( <ref type="formula">19</ref>) is safe w.r.t. S when u = k OP (x, t ) if k OP is locally Lipschitz continuous in x and piecewise continuous in t, and &#963; satisfies (28) for all u &#8712; K RCBF (x, t ) and (x, t ) &#8712; (&#8706;S &#215; T).</p><p>Proof: The existence of a RCBF implies that K RCBF (x, t ) is not empty for any (x, t ) &#8712; (X &#215; T), thus the constraint in ( <ref type="formula">29</ref>) is feasible. Furthermore, this ensures k OP (x, t ) &#8712; K RCBF (x, t ) for all (x, t ) &#8712; (X &#215; T). Since &#963; satisfies (28), Lemma 2 concludes the proof.</p><p>It is noted that the controller should have appropriate regularity properties for closed loop safety. Another design concern for &#963; is the implementation of the OP <ref type="bibr">(29)</ref>. In particular, the class of the OP depends on the structure of &#963; (x, u, t ) with respect to u. For example, if &#963; is affine in u, and U can be represented with affine constraints, then the problem remains a QP. Other functions can be put into other solution-friendly forms such as second order cone program (SOCP) <ref type="bibr">[32]</ref>, <ref type="bibr">[67]</ref>, or mixed-integer quadratic program <ref type="bibr">[43]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. IMPLEMENTATION OF GENERAL PRINCIPLES</head><p>In this section, we outline the design process for a novel safety filter tailored to address a specific set of uncertainty assumptions. We derive a sufficient condition to ensure feasibility and establish robust safety guarantees. Then we demonstrate the controller on an application.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. WORST-CASE-BASED DESIGN</head><p>We start with the following assumption.</p><p>Assumption 1: The matrix g(x, t ) has full column rank for all (x, t ) &#8712; (X &#215; T), and thus the left pseudo-inverse g &#8224; : X &#215; T &#8594; R m&#215;n exists:</p><p>Since the number of nonzero singular values of a matrix is equal to its rank, this assumption also implies that there exists a constant &#961; &gt; 0 such that min i&#8712;{1,...,m}</p><p>where &#961; i (x, t ) is the i-th singular value of g(x, t ) at any point (x, t ) &#8712; (X &#215; T). Assumption 1 is common in disturbance rejection problems <ref type="bibr">[68]</ref>, <ref type="bibr">[69]</ref>. Using the left pseudo-inverse g &#8224; , we can separate matched and unmatched uncertainties:</p><p>where d : X &#215; U &#215; T &#8594; R m is the uncertainty matched with input, and it is defined as:</p><p>The remaining term : X &#215; U &#215; T &#8594; R n is called the unmatched uncertainty, where g &#8224; (x, t ) (x, u, t ) = 0 holds for all x &#8712; X, u &#8712; U and t &#8712; T.</p><p>Consider the following assumption on how much the uncertainty can affect the system dynamics:</p><p>Assumption 2:</p><p>&#8704;(x, t ) &#8712; (&#8706;S &#215; T) and &#8704;u &#8712; U. Remark 6: While ultimate boundedness (d 1 = 1 = 0) is a common assumption in the RCBF literature <ref type="bibr">[13]</ref>, <ref type="bibr">[21]</ref>, <ref type="bibr">[50]</ref>, <ref type="bibr">[70]</ref>, it may be too restrictive when the uncertainty scales with the control input (an example will be given in the next part). We include the terms d 1 and 1 to incorporate an affine relationship between u and the uncertainty bound. While a similar problem was studied in <ref type="bibr">[32]</ref> for d 0 = 0 = 1 = 0, our solution accounts for a more general problem and requires extra conditions to ensure the feasibility.</p><p>We consider a compensation of the form:</p><p>The set of K RCBF with &#963; 1 becomes</p><p>where (x, t ) L f h(x, t ) + &#945;(h(x)) -&#8711;h(x) 0 . The next theorem provides a novel sufficient condition to ensure the feasibility of the robust safety filter with &#963; 1 . Theorem 4: Let Assumption 1-2 hold with constants &#961; &gt; 0 and d 0 , d 1 , 0 , 1 &#8805; 0, and let U = R m . A continuously differentiable function h with a regular value of 0 is a RCBF for the system (18) on (X &#215; T) with &#963; 1 given as in <ref type="bibr">(35)</ref> if</p><p>and</p><p>where (x, t ) L f h(x, t ) + &#945;(h(x)) -&#8711;h(x) 0 . This implies that, should (37)- <ref type="bibr">(38)</ref> hold, the set K &#963; 1 RCBF (x, t ) is not empty for any (x, t ) &#8712; (X &#215; T).</p><p>Proof: Our goal is to show that (37)- <ref type="bibr">(38)</ref> are sufficient for the RCBF definition <ref type="bibr">(26)</ref> with &#963; = &#963; 1 . We consider two cases separately: (x, t ) &#8712; G and (x, t ) &#8712; (X &#215; T) \ G.</p><p>For the first case, we have L g h(x, t ) = 0 (cf. ( <ref type="formula">10</ref>)), and the condition in the RCBF definition <ref type="bibr">(26)</ref> becomes</p><p>If &#8711;h(x) 1 = 0, then this condition holds trivially for any u &#8712; R m since the left hand side is strictly positive &#8704;(x, t ) &#8712; G per <ref type="bibr">(38)</ref>. If &#8711;h(x) 1 &gt; 0, then (39) becomes</p><p>Since the right hand side is strictly positive, there exists a &#948; &gt; 0 such that <ref type="bibr">(40)</ref> holds for all u satisfying u &#8804; &#948;. Thus, K &#963; 1 RCBF (x, t ) is not empty for any (x, t ) &#8712; G.</p><p>For the second case, (x, t ) &#8712; (X &#215; T) \ G implies L g h(x, t ) = 0. Thus, &#8711;h(x) &gt; 0 and (26) becomes</p><p>Since U = R m , we can choose u such that L g h(x, t )u = L g h(x, t ) u (i.e., the same direction as the vector L g h(x, t )). This selection simplifies <ref type="bibr">(41)</ref> to</p><p>If M(x, t ) &gt; 0, then &#8707;u &#8712; R m satisfying (42) regardless of the sign of &#967; . Thus, M(x, t ) &gt; 0 is a sufficient condition for the RCBF definition when (x, t ) &#8712; (X &#215; T) \ G. Recall that &#8711;h(x) &gt; 0, which implies M(x,t ) &#8711;h(x) &gt; 0 where</p><p>Here we used L g h(x, t ) = &#8711;h(x) g(x, t ). Note that 1d 1 &gt; 0 per <ref type="bibr">(37)</ref>. Since <ref type="bibr">(31)</ref> implies</p><p>we have</p><p>Using <ref type="bibr">(37)</ref> we can show that M(x,t ) &#8711;h(x) &gt; 0. Thus, (37)-( <ref type="formula">38</ref>) are sufficient for the RCBF condition (26) with &#963; 1 .</p><p>Theorem 4 provides a condition for the existence of a controller ensuring robust safety when U = R m . While it is typically a challenging problem to find such explicit conditions for U &#8834; R m , recent developments led to a rigorous framework for incorporating input bounds implicitly using backup CBFs <ref type="bibr">[71]</ref>, even for a robust problem <ref type="bibr">[72]</ref>.</p><p>Remark 7: If we consider the case 1 = 0, then the sufficient condition (37) simplifies to d 1 &lt; 1, which is equivalent to the condition found in <ref type="bibr">[32]</ref> (given as 0 &#8804; d &lt; 1). However, with 1 , the condition (37) includes the case of an unmatched uncertainty changing with u.</p><p>Condition <ref type="bibr">(38)</ref> implies that when L g h(x, t ) = 0 the barrier function condition &#7715; &#8805; -&#945;(h) should be attainable merely by f under the worst case scenario. The existence of a &#945; &#8712; K e &#8734; satisfying <ref type="bibr">(38)</ref> with given f and 0 is a property that h should have for the RCBF definition.</p><p>Theorem 4 provides sufficient conditions ensuring the point-wise feasibility of the robust safety filter with the compensation &#963; 1 , which is tailored to cancel the uncertainty in a worst-case manner.</p><p>Theorem 5: Let Assumption 1-2 hold with constants &#961; &gt; 0 and d 0 , d 1 , 0 , 1 &#8805; 0. If h is a RCBF for the system <ref type="bibr">(18)</ref> with &#963; 1 as in ( <ref type="formula">35</ref>), then the system ( <ref type="formula">19</ref>) is safe w.r.t. S when u = k OP (x, t ) if k OP is locally Lipschitz continuous in x and piecewise continuous in t.</p><p>Proof: Considering Assumption 1 and the compensation &#963; 1 as in <ref type="bibr">(35)</ref>, the condition (28) becomes:</p><p>Thus, if the uncertainty satisfies Assumption 2 with constants d 0 , d 1 , 0 , 1 &#8805; 0, the compensation &#963; 1 as in <ref type="bibr">(35)</ref> satisfies the condition <ref type="bibr">(28)</ref>. Theorem 3 completes the proof. It is noted that the safety constraint becomes non-smooth due to u , therefore duality conditions cannot be used to calculate the closed-form solution in a general case. Yet, it can be shown that the constraints in the OP (29) can be represented as a rotated second order cone, and thus can be solved effectively using efficient algorithms such as <ref type="bibr">[73]</ref>. Moreover, a closed-form solution may exist for the scalar input case.</p><p>Remark 8: The lack of a general solution prevents us showing the Lipschitz continuity for the robust safety filter with &#963; 1 . In <ref type="bibr">[52]</ref>, authors show that relaxing the safety constraint with a slack variable can ensure Lipschitz property at the expense of losing the safety guarantee. Furthermore, authors in <ref type="bibr">[32]</ref> 'conjecture that the solution remains locally Lipschitz continuous when the constraint is described by two second order cone constraints'. Showing the Lipschitz properties for a general case is left for a future work. The scalar input case has the same Lipschitz properties as the QP in <ref type="bibr">(16)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. EXAMPLE</head><p>To demonstrate the theoretical concepts we consider a pendulum, depicted in Fig. <ref type="figure">1</ref>, whose angle from the vertical position denoted as &#952; . A mass m is carried by the massless rod and its distance from the pivot l changes periodically in time according to a time-dependent constraint. A motor provides the control torque u and G is the gravitational acceleration. This may be considered as the simplest model for a child on a swing who is moving its center of mass up and down to destabilize the hanging down position while the input torque is applied to ensure safe swinging.</p><p>The equation of motion is derived in Appendix A using Lagrangian equations. Choosing the angle and angular speed as states, i.e., x [&#952;, &#952; ] , we can obtain:</p><p>It is noted that the system functions f and g can be calculated explicitly when l (t ) and l (t ) are given. We let U = R.</p><p>To enforce physical safety, we want to limit the angle: |&#952; | &#8804; &#952; max = &#960;/6. Excluding &#952; from h(x) would imply that G = R 2 &#215; R, and the necessary condition (11) cannot be shown for a general periodic excitation of l (t ). Thus, we enforce the goal using a quadratic function h : R 2 &#8594; R:</p><p>The corresponding set S &#8712; R 2 is an ellipse with a slight tilt in counterclockwise direction for a 2 &lt; 0, see the green domain in Fig. <ref type="figure">1</ref> for parameters a 1 = -7.30, a 2 = -0.25 s, a 3 = -1 s 2 and c = 1. Observe that S is a subset of the original safety goal |&#952; | &#8804; &#952; max (white region). Therefore, ensuring the invariance of S is sufficient. We take the desired controller as k d (x, t ) &#8801; 0, and simulate <ref type="bibr">(47)</ref> for m = 30 kg and l (t ) &#8801; L = 1.75 m (this time-invariant configuration is denoted as case (A)). Starting from x 0 = [0, 1.4 rad/s] , the simulated trajectory (red curve in Fig. <ref type="figure">1</ref>) leaves S even for a constant l. Below we design safety filters to ensure safety w.r.t. S for two scenarios: ideal and partially known models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>1) IDEAL CASE</head><p>We will use safety filter to keep the system safe. To do this, first we need to show that h is a CBF for the system <ref type="bibr">(48)</ref>.</p><p>Proposition 1: The function h as defined in ( <ref type="formula">48</ref>) is a CBF for <ref type="bibr">(47)</ref> with &#945;(h) = &#945; c h for any &#945; c &gt; 0.</p><p>The proof of Proposition 1 is given in Appendix B. Since U = R and m = 1, the closed form solution of the safety filter in ( <ref type="formula">16</ref>) can be implemented. The system is simulated with the same conditions as above (case (A) and same x 0 ) using &#945; c = 1.5 1/s, see the black trajectory in the left panel of Fig. <ref type="figure">2</ref>. When &#952; approaches &#952; max with a large rate &#952; , the safe control is activated, i.e., k QP (x, t ) = QP (x, t ), and it slows down the swing to ensure safety. The controller switches back to k d (x, t ) = 0 when state is ensured to be contained in S with no control. This cycle is repeated until the trajectory converges to a stable limit cycle inside S.</p><p>The curve where the switch occurs between safe control and no control can be found explicitly using QP (x, t ) = k d (x, t ) = 0. This equation yields two solutions in the form of time-varying parabolas in the state space (depicted in the left panel of Fig. <ref type="figure">2</ref> for case (A)). We have k QP (x, t ) &#8801; k d (x, t ) inside the curves, and k QP (x, t ) = QP (x, t ) outside. Note that the stable limit cycle that trajectories converge to grazes the switch curves, which implies that its shape can be modified through h and &#945;. We leave the further analysis of the effect of these particular selections on the nonlinear characteristics of the system trajectories as a future work, and focus on improving the resilience of the CBF condition against uncertainties.</p><p>Next, we consider the case where a periodic excitation of the form l (t ) = L + r sin(&#969; t ) is introduced with known amplitude and frequency values (case (B) is for r/L = 0.2 and &#969; = 4.8 rad/s). Implementing the safety filter ( <ref type="formula">16</ref>) successfully keeps the system safe, because it has full information of the model f (x, t ) and g(t ), see the middle panel of Fig. <ref type="figure">2</ref>. The safety results hold for different &#969; and r values. The right panel in Fig. <ref type="figure">2</ref> shows the values max |&#952; (t )| over all t &gt; t s , where t s denotes the time it takes for trajectories to converge to the limit cycle.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>2) PARTIALLY KNOWN MODEL</head><p>Let us consider the case where the amplitude of the periodic excitation, r, is not known. The uncertainty emerging from the unknown periodic excitation can be separated from the known part in (47) (called the 'nominal system'). We give detailed calculations in Appendix C, where we use Taylor expansion with the assumption r L to obtain:</p><p>cf. <ref type="bibr">(47)</ref>. The function &#956; represents the uncertainty, and it depends on state, input, and time. When we design the safety filter ( <ref type="formula">16</ref>) considering &#956; &#8801; 0, the resulting controller becomes indifferent to the periodic excitation. Consequently, we observe &#952; &gt; &#952; max for a large enough r at certain &#969;, see the left panel in Fig. <ref type="figure">3</ref>. The visual depiction of the safety violation is given in the right panel for case (B).</p><p>Our goal is to design a robust safety filter using &#963; 1 as in <ref type="bibr">(35)</ref>. To use this framework we check Assumption 1-2. Assumption 1 is satisfied for (49) since g = 0. In addition, in Appendix C we show that </p><p>cf. <ref type="bibr">(34)</ref>, and that assuming r &#8804; r and &#969; &#8804; &#969; we have</p><p>We pick r = 0.2L and &#969; = 6.0 rad/s, which yields d 0 = 310 Nm and d 1 = 0.4. With Assumption 1-2 satisfied, we can utilize &#963; 1 as in ( <ref type="formula">35</ref>) for robust safety. Note that the condition (37) holds since 1 = 0 and d 1 &lt; 1. Moreover, since 0 = 0, <ref type="bibr">(38)</ref> simplifies to L f h(x, t ) + &#945;(h(x)) &gt; 0, cf. <ref type="bibr">(36)</ref>. This condition holds since h was shown to be a CBF for <ref type="bibr">(47)</ref>, see Remark 3. Consequently, Theorem 4 establishes that h is a RCBF.</p><p>Proposition 2: The function h in ( <ref type="formula">48</ref>) is a RCBF for (49) with &#945;(h) = &#945; c h and &#963; 1 as in <ref type="bibr">(35)</ref> for any &#945; c &gt; 0.</p><p>The robust safety filter with &#963; 1 will be called as k SOCP . Implementing k SOCP for different values of &#945; c &#8712; [0.75, 7.5] 1/s, r &#8804; r and &#969; &#8804; &#969;, we give simulation results in the left panels of Fig. <ref type="figure">4</ref>. The trajectory for &#945; c = 1.5 1/s (case C) is depicted in the top panel, which converges to a limit cycle inside S without leaving it. We find the values max |&#952; (t )| over all t &gt; t s , where t s denotes the settling time of convergence to the limit cycle. Our findings, shown in the bottom two panels, align with the theoretical results.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. LESS CONSERVATIVE CONTROLLER DESIGN</head><p>This section presents more sophisticated methodologies to design less conservative robust safety-critical controllers, leveraging observer-based uncertainty estimation and tunable compensatory mechanisms to improve control performance while maintaining rigorous safety guarantees.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. OBSERVER-BASED CONTROLLER</head><p>Recall that, with the uncertainty &#956;, &#7715; becomes:</p><p>While the function L &#956; h is unknown, it can be estimated so that the barrier function-based safety condition &#7715; &#8805; -&#945;(h) can be ensured less conservatively.</p><p>Assumption 3: Given a controller k : X &#215; T &#8594; U, there exist functions L &#956; h : X &#215; T &#8594; R and : T &#8594; R such that:</p><p>This assumption implies the existence of an estimator with a deterministic error bound. Some of the well-known observer and estimator techniques were implemented in the CBF framework to satisfy Assumption 3, for example, <ref type="bibr">[29]</ref>, <ref type="bibr">[36]</ref>, <ref type="bibr">[37]</ref>, <ref type="bibr">[38]</ref>, <ref type="bibr">[39]</ref>, <ref type="bibr">[40]</ref>, <ref type="bibr">[41]</ref>. In an effort of finding an estimator satisfying Assumption 3, we propose the function &#963; 2 : X &#215; T &#8594; R:</p><p>where the first term cancels L &#956; h, and the second term compensates for the residual error.</p><p>Assumption 4: The input relative degree of h is less than or equal to the uncertainty relative degree of h:</p><p>This assumption implies that the lowest-order time derivative of h that the uncertainty &#956; can affect is equal to or higher than the lowest-order time derivative of h that the input u can affect. Consequently, the term L &#956; h can be canceled in &#7715; using u. Assumption 4, which can be relaxed, see Remark 10, allows us to find sufficient conditions such that h is a RCBF. In particular, using <ref type="bibr">(56)</ref>, the bound (54) implies</p><p>Thus, extending Remark 3 for the RCBF definition requires</p><p>to hold for the inequality <ref type="bibr">(26)</ref>. <ref type="formula">58</ref>) is a necessary and sufficient condition for <ref type="bibr">(26)</ref>. Theorem 6: Let S be the 0-superlevel set defined as in (3) with a continuously differentiable function h : X &#8594; R, and let 0 be a regular value of h. Let the uncertainty &#956; and functions L &#956; h and satisfy Assumptions 3 and 4.</p><p>r If h is a RCBF for ( <ref type="formula">18</ref>) on (X &#215; T) with &#963; 2 , then the system ( <ref type="formula">19</ref>) is safe w.r.t. S when u = k OP (x, t ). r Substituting &#963; 2 , the OP in (29) becomes a QP. Further- more, if U = R m , then the QP has a closed-form solution given in the form ( <ref type="formula">13</ref>)-( <ref type="formula">14</ref>) with (x, t ) = ob (x, t ) defined as: ob (x, t ) -</p><p>Proof: The proof for the first two statements can be extended from the discussion in Remark 3 and the proof of Theorem 5, respectively. Furthermore, since the OP becomes a QP with &#963; 2 , the last bullet point can be followed from the proof of Theorem 2 (as given in <ref type="bibr">[21]</ref>, <ref type="bibr">[60]</ref>, <ref type="bibr">[62]</ref>) with simple modifications for &#963; 2 .</p><p>Remark 9: Analogous to the CBF-based QP ( <ref type="formula">16</ref>), the robust safety filter ( <ref type="formula">13</ref>)-( <ref type="formula">14</ref>) with ( <ref type="formula">59</ref>) can be simplified for the scalar input case (m = 1):</p><p>where QP,ob :</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>HIGH-GAIN DISTURBANCE OBSERVER</head><p>Motivated by the estimator-based compensation setup, we consider an observer L &#956; h : X &#215; T &#8594; R utilized in <ref type="bibr">[35]</ref>, <ref type="bibr">[37]</ref>:</p><p>where k obs &gt; 0 is the observer gain and &#950; (t ) denotes an auxiliary state. In particular, given an initial condition &#950; (0) = &#950; 0 , &#950; (t ) satisfies the following ODE:</p><p>Note that ( <ref type="formula">63</ref>) is a linear ODE, and convolution integral can be used to find the solution:</p><p>We can find a deterministic error bound (t ) for the observer <ref type="bibr">(62)</ref>. Focusing on the explicit time dependency with a slight abuse of notation, we use</p><p>Assumption 5: There exist constants L &#956; h 0 , L &#8805; 0 such that:</p><p>While <ref type="bibr">(65)</ref> accounts for the boundedness of the initial uncertainty, (66) constitutes an upper bound on how fast the effect of the uncertainty changes in time. That is, L is the Lipschitz constant of L &#956; h in t. Lipschitz bounds are commonly utilized in RCBF formulations <ref type="bibr">[42]</ref>, <ref type="bibr">[43]</ref>, <ref type="bibr">[52]</ref> and these can be obtained from sampled data using Strongin's estimator <ref type="bibr">[74]</ref>, <ref type="bibr">[75]</ref>.</p><p>Using the observer error e(t ) L &#956; h(t ) -L &#956; h(t ), the following lemma gives us the error bound (t ).</p><p>Lemma 3 <ref type="bibr">([35]</ref>): Consider a function h with the time derivative given in <ref type="bibr">(53)</ref> and an observer defined in ( <ref type="formula">62</ref>)-( <ref type="formula">64</ref>) with a gain k obs &gt; 0 and the initial condition &#950; 0 = k obs h(x 0 ). Let the function L &#956; h satisfy Assumption 5. Then, the following bound holds for the observer error</p><p>, &#8704;t &#8712; T.</p><p>The proof (which can be seen in <ref type="bibr">[35]</ref> in detail) is omitted here. Starting from |e(t 0 )| = L &#956; h 0 , the error moves into a narrower band determined by L k obs as the time progresses (assuming L &#956; h 0 &gt; L k obs ). Note that the faster the uncertainty dynamics are (specified by a larger L), the wider the steadystate error band gets. A larger k obs not only shrinks the steady state error band, but it also forces a faster initial decay. Lemma 3 implies that the observer <ref type="bibr">(62)</ref> and the error bound (67) satisfy Assumption 3. Under Assumption 4, see Remark 10, Theorem 6 can be used to obtain safety results for the observer-based robust safety filter. We note that, for the observer <ref type="bibr">(62)</ref>, the necessary condition (58) becomes:</p><p>More accurate initial uncertainty guess and smaller rate of change of the uncertainty can alleviate the condition <ref type="bibr">(68)</ref>.</p><p>Remark 10: Assumption 4 can be relaxed for the observer scheme discussed here. Details can be obtained in references <ref type="bibr">[36]</ref>, <ref type="bibr">[68]</ref>, yet, in short, the observer can be extended to estimate disturbances on &#7819; rather than &#7715;. Then, a high relative degree CBF framework <ref type="bibr">[8]</ref>, <ref type="bibr">[9]</ref> can be used to ensure robust safety in the case the input relative degree is more than the uncertainty relative degree.</p><p>Remark 11: There is a causality issue hidden when the observer ( <ref type="formula">62</ref>) is implemented to a control system <ref type="bibr">(18)</ref>, and at the same time the observed value L &#956; h is used to calculate a control input u. In particular, calculating the controller u(t ) using (59) requires &#950; (t ) (plug ( <ref type="formula">62</ref>) into <ref type="bibr">(55)</ref>). Yet, <ref type="bibr">(64)</ref> implies that &#950; depends on the function u( t ) over t &#8712; [t 0 , t]. We break this causality loop in the implementation by using a delayed input when calculating (64) (single time interval). Investigating the effect of this ad-hoc solution in a mathematically rigorous way using control barrier functionals <ref type="bibr">[76]</ref> is left as future work. We note that we observed this effect to be negligible in our examples.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. TUNABILITY-BASED CONTROLLER</head><p>The difference between an oracle safety filter (with full model information) and a robust design emerges from two sources: the uncertainty in the model L &#956; h, and the term &#963; used to compensate for it, cf. ( <ref type="formula">8</ref>) and <ref type="bibr">(26)</ref>. The observer (62) alleviates both as the observer gain k obs increases. Indeed, for k obs &#8594; &#8734;, we get L &#956; h &#8594; L &#956; h and &#8594; 0. However, in practice, a high observer gain k obs makes the closed-loop system more susceptible to imperfections, e.g., the system may become unstable in the presence of input delay <ref type="bibr">[35]</ref>.</p><p>Even for a limited observer gain it is still possible to decrease the difference between the oracle design and a robust safety filter with observer. To see this, notice that the sufficient condition <ref type="bibr">(28)</ref> for robust safety is defined on x &#8712; &#8706;S. Thus, can be reshaped inside S as long as it satisfies (28) on the boundary. Motivated by this observation, as is done in the tunable ISSf case in <ref type="bibr">(25)</ref>, the compensation can be reduced based on how far away a state is from the boundary of S <ref type="bibr">[18]</ref>. In particular, we propose</p><p>where, the function : R &#8594; R satisfies (r) &#8805; 0, &#8704;r &#8712; R, and (1</p><p>The second condition in <ref type="bibr">(70)</ref> implies that (0) = 1, thus (28) holds for &#963; 3 with an observer satisfying Assumption 3 since x &#8712; &#8706;S &#8658; h(x) = 0 &#8658; &#963; 3 (x, t ) &#8801; &#963; 2 (x, t ). The class-K property of 1implies (h(x)) &lt; 1 if h(x) &gt; 0. Therefore, the effect of the error compensation term in (69) gets mitigated inside S. As a result, the tunability modification yields less conservative robust safety filters. Remark 12: Even the necessary condition for the RCBF definition is relaxed with , cf. <ref type="bibr">(58)</ref>:</p><p>Theorem 7: Let S be the 0-superlevel set defined as in (3) with a continuously differentiable function h : X &#8594; R, and let 0 be a regular value of h. Let the uncertainty &#956; and functions L &#956; h and satisfy Assumptions 3 and 4. Let satisfy <ref type="bibr">(70)</ref>.</p><p>r If U = R m , then h is a RCBF for ( <ref type="formula">18</ref>) on (X &#215; T) with &#963; 3 in (69) if and only if (71) holds.</p><p>r If h is a RCBF for ( <ref type="formula">18</ref>) on (X &#215; T) with &#963; 3 , then the system ( <ref type="formula">19</ref>) is safe w.r.t. S when u = k OP (x, t ).</p><p>r Substituting &#963; 3 , the OP in (29) becomes a QP. Further- more, if U = R m , then the QP has a closed-form solution given in the form ( <ref type="formula">13</ref>)-( <ref type="formula">14</ref>) with (x, t ) = Tob (x, t ) defined as:</p><p>Proof: The proof of Theorem 6 can be followed with the only change .</p><p>Remark 13: If the function is continuously differentiable on a closed interval, then it is Lipschitz continuous. As a result, the Lipschitz properties of the resulting controller is the same as the observer-based QP.</p><p>Remark 14: Similar to the observer-based method, the robust safety filter ( <ref type="formula">13</ref>)-( <ref type="formula">14</ref>) with (72) simplifies for scalar input:</p><p>where QP,Tob (x, t )=-</p><p>Henceforth, we will use an exponential function as :</p><p>which satisfies <ref type="bibr">(70)</ref> for any &#955; &gt; 0. Note that &#955; = 0 returns to the observer-based design with &#963; 2 as in <ref type="bibr">(55)</ref>. its worst-case type of compensation, see the right panel of Fig. <ref type="figure">5</ref>. The input of the tunability-based case, however, is closer to the oracle thanks to its ability to reject the effect of the unknown dynamics in the controller using L &#956; h. The difference between the robust controllers and the oracle is given in the bottom right panel. Motivated by these observations, we use a performance metric to compare robust controllers. The performance goal for this comparison study is taken as minimizing the deviation from the oracle controller. The logic behind this choice is as follows: if we have the perfect information of a system model, then it may be possible to design a controller minimizing a cost function. Comparing robust controllers to this oracle controller serves as a meaningful and practical comparison metric because it eliminates the necessity of specifying this cost. This metric is merely used for comparing these robust controller design principles and it does not play a specific role in designing these controllers.</p><p>The performance goal is quantified as minimizing the cost k s (x, t )k oracle (x, t ) , where k oracle denotes the oracle controller that is designed utilizing the ideal model information, and the index s refers to different robust safety filter designs, i.e., SOCP, QP, ob and QP, Tob. In this comparative study, the oracle is represented with data generated using simulations for random system configurations (initial conditions t 0 &#8712; R and x 0 &#8712; S, and amplitude r &#8804; r and frequency &#969; &#8804; &#969; of periodic excitation). Overall, we generate M = 1000 episodic runs of length N when u = k oracle (x, t ) is utilized. We collect the state, time and input data from these runs:</p><p>where k denotes a time instant in an episode k = {1, . . . , N}, and i denotes the number among all episodic runs i = {1, . . . , M}.</p><p>Based on this, we can define the cost:</p><p>to represent the average of the deviation in control &#361;i k along trajectories over all episodes. The term p collects the parameters p = [&#945; c , k obs , &#955;] .</p><p>We start with the evaluation of k SOCP . The only parameter in this case is &#945; c . The blue curve in the top panel of Fig. <ref type="figure">6</ref>  shows that the cost J SOCP decreases monotonously with &#945; c and it settles around &#8764;10 Nm for large &#945; c . Next, we evaluate the performance of k QP,ob . There are two parameters for this case: &#945; c and k obs . In particular, k obs increases the rate at which the uncertainty is observed, thus a more accurate cancellation can be obtained in the controller. The cost J QP,ob is depicted in the left panel of Fig. <ref type="figure">6</ref> as a function of &#945; c for k obs &#8712; {20, 25, 30, 40} 1/s with different colors. Each curve has a minimum value J * QP,ob , which decreases as k obs is increased. This aligns with the discussion that introducing an estimator mitigates the difference between the robust safetycritical controller and the oracle-based design. Finally, we evaluate the tunability modification k QP,Tob which depends on the parameters &#945; c , k obs and &#955;. We compute the cost J QP,Tob and find the minimum J * QP,Tob over a range of &#945; c . These minima are depicted in the right panel of Fig. <ref type="figure">6</ref> as a function of &#955; for k obs &#8712; {20, 25, 30, 40} 1/s. Note that &#955; = 0 means the observer-based design without tunability. Our findings support the argument that tunability (i.e., increasing &#955;) reduces the deviation from the oracle-based controller.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VI. CONCLUSION</head><p>This work investigated the means to obtain robust safety guarantees for control barrier function-based safety-critical controllers in the presence of model uncertainties. We first introduced a general framework providing conditions for robust safety. Then, we utilized the general framework to investigate the robust safety conditions of three design methodologies: a worst-case-based approach, an observer-based approach, and a modification to the latter via tunability. The theoretical results were demonstrated on a practical example of a pendulum with unknown periodic excitation. Finally, we compared the designs based on a performance metric defined as their deviation from the oracle-based controller. Our findings showed that improved performance could be obtained by introducing means in the controller to estimate the effects of the uncertainty. Further improvements could be shown by reshaping the error compensation based on how safety-critical the state is.</p><p>The main future research direction is the development of a broad and systematic framework for merging different robustifying compensation designs to pick the most appropriate design strategy. This framework can include an online scheme to switch between different compensation strategies to adapt dynamically to changing conditions. Moreover, future efforts will be directed to obtain conditions for Lipschitz continuity of RCBF-based controllers. per the assumptions on A in <ref type="bibr">(48)</ref>. First, we define the set:</p><p>which forms the line x 2 = -a 2 a 3 x 1 in the state space R 2 , see Fig. <ref type="figure">1</ref>. Choosing &#945;(h) = &#945; c h &#8712; K e &#8734; with &#945; c &gt; 0, our goal is to show that there exists an open set X &#8834; R 2 such that L f h(x, t ) + &#945; c h(x) &gt; 0 is satisfied &#8704;(x, t ) &#8712; G. Notice that L f h(x, t ) = -(a 1a 2 2 /a 3 )a 2 /a 3 x 2 1 for all x satisfying L g h(x, t ) = 0, thus the condition reduces to</p><p>which is time-invariant, thus any T &#8834; R can be selected. We separate cases 0 &lt; &#945; c &#8804; 2 a 2 a 3 and &#945; c &gt; 2 a 2 a 3 . For the former, one can show that the coefficient of x 1 becomes nonnegative, thus (84) holds over any X &#8834; R 2 . For latter one, the left hand side of (84) becomes a concave parabola that crosses the horizontal axis at </p><p>see Fig. <ref type="figure">7</ref>. Notice that L f h(x, t ) &gt; 0 for all (x, t ) &#8712; G. Thus L f h(x, t ) + &#945; c h(x) = 0 holds if and only if h(x) &lt; 0. This implies that x * 1 &#8712; R 2 \ S regardless of &#945; c , thus X can be selected such that S &#8834; X &#8834; R 2 on which (84) holds.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. SEPARATING UNCERTAINTY AND FINDING BOUNDS</head><p>We use l (t ) = L + r sin(&#969;t ), yielding l (t ) = r&#969; cos(&#969;t ). Considering the amplitude of the periodic excitation as unknown, we can use Taylor expansion to separate the uncertainty from the known portion of the model. In particular, we represent the functions 1 l (t ) , l (t ) l (t ) and 1 l (t ) 2 using Taylor expansion around r = 0. Assuming r L and ignoring the higher order terms yields (91</p><p>Our goal is to look for constants d 0 and d 1 such that (34) is satisfied for a reasonable range of periodic excitation r &#8804; r and &#969; &#8804; &#969;. Since | sin(&#969;t )| &#8804; 1 for any &#969; and t we have</p><p>Next, we look for the bound d 0 on x &#8712; &#8706;S, which is a closed contour of h(x) = 0 in R 2 , see Fig.</p><p>2. The bound d 0 can be approximated on this contour using &#952; max and &#952;max , where &#952; max and &#952;max denote the maximum values that state variables get on this contour. This leads to d 0 = r L mGL sin &#952; max + 2mL 2 &#969; &#952;max , (93) cf. (91), where &#952; max = -2c a 1a 2 2 /a 3 , &#952;max = -2c a 3a 2 2 /a 1 . (94) Assuming negligible tilt, that is, a 2 2 a 1 a 3 , we have &#952; max &#8776; 2c -a 1 and &#952;max &#8776; 2c -a 3 . Furthermore, assuming &#969; G sin &#952; max 2L &#952;max</p><p>, the second term in d becomes more dominant. Thus, we can get the approximation:</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="66" xml:id="foot_0"><p> VOLUME 4, 2025   </p></note>
		</body>
		</text>
</TEI>
