<?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'>Discontinuous Barrier Functions for Piecewise Continuous Dynamics</title></titleStmt>
			<publicationStmt>
				<publisher>IEEE</publisher>
				<date>07/10/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10560724</idno>
					<idno type="doi">10.23919/ACC60939.2024.10644766</idno>
					
					<author>Carmen Jimenez Cortes</author><author>Makhin Thitsa</author><author>Samuel Coogan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We propose a novel characterization of piecewisedefined barrier functions for certifying forward invariant sets of piecewise continuous dynamical systems. Forward invariance is established by checking two conditions: the first condition is a usual barrier-type inequality on the interior of each piece, and the second condition imposes an appropriate interaction of the tangent cone and vector field at the boundary between pieces. We then show that this separation is especially well suited for constructing discontinuous barrier functions that are an appropriate generalization of high-order control barrier functions to the piecewise setting and can be used to construct controllers for forward invariance. In particular, the tangent cone condition at the boundary of pieces does not depend on the particular control strategy and can be checked, e.g., offline, while standard online methods can be used to enforce the barrier-type inequality on the interior of pieces.]]></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 of control systems modeled as a constraint on the system's state arises in applications ranging from collision avoidance <ref type="bibr">[1]</ref> to motion planning <ref type="bibr">[2]</ref> where safety is enforced with a barrier at the constraint boundary. Such approaches use barrier functions or control barrier functions (CBFs) <ref type="bibr">[3]</ref>- <ref type="bibr">[6]</ref> to enforce forward invariance of the constraint set. Most of the existing literature focuses on smooth functions as candidate barrier functions or CBFs and controllers that are at least Lipschitz continuous. However, nonsmooth candidate functions arise naturally in many applications and often give rise to discontinuous control strategies.</p><p>Discontinuous control strategies are used in <ref type="bibr">[7]</ref>, where the authors proved forward invariance of the composed set obtained as the intersection of multiple sets. Boolean compositions of level sets of continuously differentiable functions are considered in <ref type="bibr">[8]</ref>, <ref type="bibr">[9]</ref> and applied to multiagent robotic systems in <ref type="bibr">[10]</ref>. This approach requires the barrier function to still be continuous and uses a set-valued Lie derivative construction to obtain a sufficient condition for forward invariance that can be conservative in practice. The paper <ref type="bibr">[11]</ref> provides general sufficient conditions for forward invariance of hybrid inclusions and allows for vector-valued barrier functions that are only locally Lipschitz using the Clarke generalized gradient. In <ref type="bibr">[12]</ref>, sufficient conditions for forward invariance of a set defined by a possibly discontinuous barrier function are given using the proximal subdifferential of the barrier. These conditions are general and applicable to hybrid inclusions but require computing the proximal subdifferential at all points in a neighborhood of the boundary of the candidate invariant set, which might be challenging to check in practice. Moreover, <ref type="bibr">[12]</ref> does not particularly address the case of high-order barrier functions, discussed next.</p><p>Given a candidate CBF, the system dynamics might be such that the control input does not affect, up to first order, the rate of change of the barrier, that is, the input does not appear in the first time derivative of the barrier function. In this case, the system is said to have high relative degree with respect to the barrier and standard CBF approaches for forward invariance are generally not applicable. A common remedy is to obtain an alternative CBF constructed from the original candidate CBF and CBF-type inequalities. The resulting new CBF is called a high-order CBF (HO-CBF) to emphasize its manner of construction <ref type="bibr">[13]</ref>- <ref type="bibr">[15]</ref>, however, existing approaches exclusively assume sufficient smoothness of the barrier function.</p><p>In this paper we prove forward invariance of sets defined by the level sets of piecewise-defined barrier functions for piecewise continuous dynamical systems. These barrier functions arise when we extend HO-CBFs theory to the nonsmooth setting, which leads to discontinuities. To do so, there are two conditions that need to be met: the first condition is barrier-type inequality on the interior of each piece of an open finite partition of the state space; meanwhile, the second condition imposes a well-behaved interaction between the tangent cone and the vector field at the boundary between each pair of pieces. To the best of our knowledge, this problem has not yet been addressed in the existing literature. Additionally, the second condition does not depend on the control input and can be checked offline, while the first one can be used to synthesize CBF-type controllers.</p><p>The rest of this paper is structured as follows: Section II includes key definitions, a review of smooth (control) barrier functions, and a review of high-order smooth control barrier functions. Section III contains the main results of this work, the definition and conditions for valid piecewisedefined (control) barrier functions, as well as a detailed example. Section IV extends the theory from Section III to discontinuous high-order CBFs and includes an additional example using the nonlinear dynamics of the Second-Order Unicycle. Finally, Section V summarizes the main contri-butions of the paper and how they extend the scope of the current barrier functions and CBFs theory.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. BACKGROUND MATERIALS</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Tangent Cones, Filippov Solutions, and Invariance</head><p>Given a closed set C &#8838; R n , the Bouligand tangent cone [16, Def. 2.2] to C at x is defined as</p><p>where dist(&#8226;, &#8226;) is the distance function given by dist(x, C) = min y&#8712;C xy . Given a system &#7819; = f (x)</p><p>where</p><p>and &#181;N =0 denotes the intersection over all sets N of Lebesgue measure zero, co denotes convex closure, and B(x, &#948;) is the ball of radius &#948; centered at</p><p>x. An open finite partition of R n is a collection of disjoint, open, and connected sets {X i } i&#8712;I for finite index set I whose closures cover R n , that is &#8746; i&#8712;I cl(X i ) = R n where cl(&#8226;) denotes closure. We denote the boundary of a part X i of the partition by &#8706;X i = cl(X i )\X i .</p><p>The system &#7819; = f (x) is piecewise continuous if there exists an open finite partition {X i } i&#8712;I of R n such that f is continuous on X i for all i &#8712; I and admits a continuous extension to cl(X i ), denoted f Xi . For piecewise continuous systems, there always exists a Filippov solution from each initial condition x 0 &#8712; R n . Moreover, the set-valued map K[f ] is characterized as <ref type="bibr">[18]</ref> </p><p>f is discontinuous at x, then x must be on the boundary of some parts of the partition, and K[f ] is the convex hull of the continuous extension of f on all these parts. We will generally be interested in piecewise continuous systems that also admit unique solutions, which is often (but not exclusively) the case in practice, and restrict to such systems by assumption. Sufficient conditions ensuring uniqueness are provided in <ref type="bibr">[18,</ref><ref type="bibr">Prop. 5]</ref>.</p><p>A closed set S is forward invariant for the system &#7819; = f (x) if for all T &gt; 0, all x 0 &#8712; S, and all Filippov solutions x(t) on [0, T ] satisfying x(0) = x 0 , i.e., x 0 is a initial condition of the system, it holds that x(t) &#8712; S for all t &#8712; [0, T ]. This definition does not exclude the possibility of finite escape from within S, which can be ruled out with further assumptions such as a linear growth condition on K[f ] [16, Ch. 4, Cond. 1.2(c)] or compactness of S. Usually, this notion of forward invariance is called strong forward invariance since it requires all Filippov solutions to remain in S, and weak forward invariance is then used if some solution remains in S for each initial condition from S. Since we restrict to systems with unique Filippov solutions, strong and weak notions of forward invariance become equivalent.</p><p>The following fundamental result, which is an adaptation of <ref type="bibr">[16,</ref><ref type="bibr">Ch. 4,</ref><ref type="bibr">Thm. 2.10]</ref>, connects all the concepts introduced above.</p><p>Proposition 1. Let &#7819; = f (x) for x &#8712; R n be piecewise continuous and suppose it admits unique Filippov solutions. The closed set S &#8834; R n is forward invariant if and only if</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Barrier Functions and Control Barrier Functions</head><p>Suppose now S is defined as S = {x | h(x) &#8805; 0} for some continuously differentiable function h(x), called a Barrier Function, with the property that h(x) = 0 implies &#8711;h(x) = 0. The boundary of S, denoted &#8706;S = S\int(S), is given by</p><p>which is classically known as Nagumo's Theorem. In the barrier function literature, the righthand condition is often relaxed to</p><p>for some locally Lipschitz function &#945; : R &#8594; R satisfying &#945;(0) = 0. This condition must hold for all x rather than only on the boundary of S, which more readily leads to control design techniques. For example, consider the controlled system &#7819; = f (x) + g(x)u, now with input u &#8712; R m , and the goal of designing a feedback controller &#963;(x) such that S is forward invariant. Then, condition (5) leads to the design criterion that any Lipschitz continuous feedback controller &#963;(x) satisfying &#963;(x) &#8712; U (x) where</p><p>ensures forward invariance of S. Notably, the inequality in the definition of U (x) is affine in u and, therefore, can be included in convex optimization programs that compute a feedback controller &#963;(x), possibly online at runtime. If such a feedback controller exists, then h(x) is called a (classical) Control Barrier Function (CBF).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. High-Order Control Barrier Functions</head><p>A common challenge in standard CBF-based control design is that, for many physically meaningful systems, &#8711;h(x) T g(x) can be identically zero so that U (x) becomes empty for some x. A possible solution is to use the theory of High-Order Control Barrier Functions (HO-CBF) that systematically constructs an alternative barrier function as follows: initialize &#968; 0 (x) = h(x) and, as long as &#8711;&#968; i (x) T g(x) &#8801; 0, iteratively set &#968; i+1 (x) = &#8711;&#968; i (x) T f (x) + &#945; i (&#968; i (x)) for some user-chosen Lipschitz functions &#945; i (&#8226;). Suppose the process terminates after r iterations. The resulting final &#968; r (x) can often (e.g., when the system has a well-defined uniform relative degree) be used as a CBF that guarantees forward invariance of &#8745; i:i&#8804;r {x | &#968; i (x) &#8805; 0}, which is a subset of S.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. PIECEWISE-DEFINED BARRIER FUNCTIONS</head><p>Consider the system &#7819; = f (x, u) with state x &#8712; R n and control input u &#8712; R m given by a feedback control law u = &#963;(x). Suppose also a given nonsmooth function h(x) and safe set S = {x | h(x) &#8805; 0}. The objective is to derive conditions ensuring that S is forward invariant for the closed loop dynamics f (x, &#963;(x)) with the intention that such conditions can be used to design the controller &#963;(x) for safety. This paper focuses on piecewise-defined barriers and piecewise continuous systems that naturally arise from piecewise-defined controllers. To motivate this approach, we first begin with an example and then formalize the insights from this example in the remainder of this section.</p><p>Example 1. Consider the triple integrator system with dynamics</p><p>which can be written as &#7819; = f (x) + g(x)u with x &#8712; R 3 and u &#8712; R for appropriate f (x) and g(x), and consider</p><p>At all x such that h 0 (x) is differentiable, that is, all x such that x 1 = 0, we have that &#8711;h 0 (x) T g(x) = 0, preventing the application of existing nonsmooth CBF formulations. Consider instead h(x) defined as</p><p>for some &#946; &gt; 0 where</p><p>As formalized in Section IV, h(x) can be considered a generalized HO-CBF generated from the nonsmooth h 0 (x). Note that h(x) is discontinuous when x 1 = 0. Consider that a Lipschitz feedback nominal controller u nom is given. The feedback safe controller u = &#963;(x) is defined as</p><p>where</p><p>for some &#947; &gt; 0. The result is a piecewise continuous system &#7819; = f (x) + g(x)&#963;(x) with unique Filippov solutions according to <ref type="bibr">[18,</ref><ref type="bibr">Prop. 5</ref>].</p><p>We claim S = {x | h(x) &#8805; 0} is forward invariant, which we show by establishing that system trajectories cannot cross &#8706;S, the boundary of S. By contradiction, suppose there exists an initial condition x 0 &#8712; &#8706;S such that x(&#964; ) &#8712; S for all sufficiently small &#964; &gt; 0 for x(t) initialized at x 0 , x(0) = x 0 . First consider the possibility that for small enough &#964; , the trajectory remains within either X 1 or X 2 , that is, for some fixed i &#8712; {1, 2}, x(t) &#8712; X i and h(x(t)) = h i (x(t)) for all t &#8712; [0, &#964;) for small enough &#964; , and therefore we are reduced to the usual smooth setting. It is straightforward to verify that &#8711;h i (x) T (f (x) + g(x)&#963; i (x)) &#8805; -&#947;h i (x) for i &#8712; {1, 2}, so that h(x(t)) remains nonnegative by standard CBF arguments as summarized in Section II-B, a contradiction. This leaves the second possibility that h(x 0 ) = h i (x 0 ) &#8805; 0 while h(x(&#964; )) = h j (x(&#964; )) &lt; 0 for all sufficiently small &#964; &gt; 0 for (i, j) = (1, 2) or (i, j) = (2, 1), that is, the trajectory crosses from one part to the other, experiencing a discontinuous decrease in h. This requires x 0 1 = 0. Suppose first that x 0 2 &#8805; 0. Then h 2 (x 0 ) &#8805; h 1 (x 0 ) so h(x 0 ) = h 2 (x 0 ) &#8805; 0. But &#7819;1 = x 2 &#8805; 0, so the system cannot cross to X 1 . A symmetric contradiction is obtained for x 0 2 &#8804; 0. We therefore conclude S is forward invariant. Simulation results are shown in Figure <ref type="figure">1</ref>, where we used a Proportional-Derivative nominal controller. Definition 1. A function h : R n &#8594; R is a piecewisedefined barrier function candidate on the open finite partition {X i } i&#8712;I if there exists a collection of continuously differentiable {h i (x)} i&#8712;I where each</p><p>{h i (x)}, and in particular h(x) = h i (x) for all x &#8712; X i for all i &#8712; I; 2) For each i = j with cl(X i )&#8745;cl(X j ) = &#8709;, there exists a continuously differentiable k i,j (x) such that</p><p>Without loss of generality, we may assume k j,i (x) = -k i,j (x) for all i, j.</p><p>The second condition of Definition 1 implies that the boundaries between parts of the partition are characterized with continuously differentiable functions. Due to the definition of h(x) in Definition 1, the safe set S is closed and its boundary will be along the zero level sets of the constituent {h i (x)} i&#8712;I or along the boundaries between parts, leading immediately to Lemma 1 below. Lemma 1. For a piecewise-defined barrier function candidate with S = {x | h(x) &#8805; 0}, consider any x &#8712; &#8706;S. Then, one of the following two conditions is true for x:</p><p>1) There exists i such that x &#8712; X i and h i (x) = 0.</p><p>2) There exists i such that x &#8712; &#8706;X i and h i (x) &#8805; 0. Equivalently,</p><p>Proof. To prove Lemma 1 we need to look at two different cases. The first one corresponds to h(x) being continuous at a given x, i.e., x &#8712; X i . Using the mean value theorem we know that h(x) would have to have zero value before becoming negative and therefore according to the definition of S, h(x) = 0. The second case corresponds to an x in the boundary between parts of the partition, i.e., x &#8712; cl(X i ) &#8745; cl(X j ).</p><p>According to Definition 1, h(x) = max i,j {h i (x), h j (x)} which implies h(x) &#8805; 0.</p><p>To facilitate the main result of this section, we introduce some further notation. First, given a piecewise-defined barrier function candidate h(x) and corresponding open finite partition {X i } i&#8712;I , define the sets</p><p>Define now the operator &#953; : O &#8594; I as</p><p>and finally, let I : B &#8594; 2 I be defined as</p><p>Equivalently, I(x) = {i : x &#8712; &#8706;X i }. For x &#8712; B, define the following three sets:</p><p>With this notation, Lemma 1 can be equivalently stated as: for any x &#8712; &#8706;S, if x &#8712; O then h &#953;(x) (x) = 0, otherwise, x &#8712; B and I + h (x) &#8746; I = h (x) is nonempty. We now impose the following mild technical assumption on the gradients of k i,j (x) and h i (x), which holds in many practical scenarios as shown in the examples in Sections III and IV. Assumption 1. For any x &#8712; &#8706;S &#8745; B,</p><p>Moreover, the collection of vectors {&#8711;k i,j (x), &#8711;h i (x), &#8711;h j (x)}, noted as {v i }, satisfies that for all v i , v j &#8712; {v i } with i = j there is no &#945; &gt; 0 such that v i + &#945;v j = 0, i.e. v i and v j are not anti-parallel.</p><p>We now state the main results of this paper. Theorem 1 enforces the vectorfield to point inside of the safe set S at its boundary, while Theorem 2 uses Proposition 1 and Theorem 1 to establish sufficient conditions for forward invariance of S.</p><p>Theorem 1. Given piecewise-defined barrier function candidate h(x) and corresponding open finite partition</p><p>Proof. Define the auxiliary sets</p><p>There exists an open neighborhood U of x such that</p><p>Since tangency is a local property, T &#931; (x) = T U&#8745;&#931; (x) and T S (x) = T U&#8745;S (x). As it holds that (U &#8745; &#931;) &#8834; (U &#8745; S), by [16, Pg. 99, Cond. a)] their tangent cones satisfy T U&#8745;&#931; (x) &#8834; T U&#8745;S (x). We thus obtain T &#931; (x) &#8834; T S (x). As the collection of vectors {&#8711;k i,j (x), &#8711;h i (x), &#8711;h j (x)} satisfies Assumption 1, the sets C i and K i,j are transversal [16, Pg 99, Cond. c)] and therefore</p><p>Theorem 2. Given a piecewise continuous system &#7819; = f (x) with unique Filippov solutions and piecewise-defined barrier function candidate h(x), both with the same corresponding open finite partition {X i } i&#8712;I , satisfying Assumption 1. If there exists Lipschitz class-k functions &#945; i (&#8226;) such that</p><p>Proof. We want to prove that the intersection of the Filippov operator of f (x) with the tangent cone of the safe set S is not empty, i.e. K[f (x)] &#8745; T S (x) = &#8709;. There is two different cases of this proof: The first case corresponds to x &#8712; &#8706;S &#8745; O, what implies that h i = 0. Due to the barrier condition &#8711;h i (x) T f (x) &#8805; 0 holds, and Theorem 1 is satisfied for z = f (x). The second case corresponds to x &#8712; &#8706;S &#8745; B. Equations ( <ref type="formula">31</ref>) and (32) imply that f (x) &#8838; T S (x), which according to Theorem 1 is true. Therefore, by definition of the Filippov operator <ref type="bibr">[17]</ref> </p><p>Example 2 (Example 1 continued). Given the system in <ref type="bibr">(7)</ref> and the open finite partition {X 1 , X 2 }, define the boundary between X 1 and X 2 as k 2,1 (x) = -k 1,2 (x) = x 1 . Using h(x) as defined in (8)-( <ref type="formula">10</ref>), Assumption 1 holds since &#8711;k 1,2 (x), &#8711;h 1 (x), and &#8711;h 2 (x) are always nonzero and not mutually in opposite directions. Choosing u(x) as in (11)-( <ref type="formula">13</ref>) satisfies (31) by construction. u(x) is piecewise differentiable and given the dynamics of the system, [18, Prop. 5] guarantees that Filippov solutions exist and are unique. To verify (32</p><p>0, which holds when x 2 &#8805; 0 as assumed. A symmetric argument holds for x 2 &lt; 0. As all conditions are met, Theorem 2 guarantees forward invariance of S = {x | h(x) &#8805; 0}.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. DISCONTINUOUS HIGH-ORDER CONTROL BARRIER FUNCTIONS</head><p>A salient feature of Example 2 is that (32) holds regardless of any chosen control, while (31) is enforced by choosing a controller to satisfy a classical CBF-type requirement. This is a consequence of h(x) being built as a HO-CBF from a nonsmooth barrier function, as formalized in this section. Consider the system</p><p>for f 1 , f 2 , g Lipschitz, x 1 &#8712; R n1 and x 2 &#8712; R n2 . Now consider a restricted class of piecewise-defined barrier functions on an open finite partition satisfying the following assumption.</p><p>Assumption 2. For x = (x 1 , x 2 ) &#8712; R n with x 1 &#8712; R n1 and x 2 &#8712; R n2 , the open finite partition {X i } i&#8712;I of R n satisfies the conditions of Assumption 1 and, furthermore, each k i,j (x) is a function of x 1 only, for which we instead write k i,j (x 1 ).</p><p>Assumption 2 implies that each open finite partition X i &#8712; R n is of the form X 1 i &#215; R n2 for appropriate X 1 i &#8838; R n1 . Partitions of this form arise naturally when constructing high-order barrier functions from piecewise functions of x 1 . Indeed, consider the system in (33)-(34) and let h(x 1 ) be a piecewise-defined Lipschitz function of x 1 on the open finite partition {X 1 i } i&#8712;I of R n1 so that, for all i, h(x) = hi (x) for continuously differentiable hi (x) for all x &#8712; X 1 i . In general, this function cannot be used as a CBF for (33)-(34) because the relative degree between u and h(x 1 ) is greater than 1, i.e., u affects x 1 only through its effect on x 2 in (34). An alternative barrier candidate h(x) can be defined piecewise</p><p>where X i = X 1 i &#215;R n2 and defining h(x) = max i&#8712;I(x) h i (x) for all x &#8712; &#8746; i&#8712;I &#8706;X i . A collection {k i,j (x 1 )} satisfying Assumption 1 for {X 1 i } i&#8712;I then satisfies Assumption 2 for {X i } i&#8712;I . The candidate barrier function ( <ref type="formula">8</ref>)-( <ref type="formula">10</ref>) arises from such a construction as shown in Example 3. Under Assumption 2, we now specialize the conditions of Theorem 2 in the following corollary.</p><p>Corollary 1. Given system (33)-( <ref type="formula">34</ref>) and a piecewisedefined barrier function candidate h(x) defined on the open finite partition {X i } i&#8712;I satisfying Assumptions 1 and 2. Suppose that</p><p>s.t. k i,j (x 1 ) = 0, h i (x) &gt; 0, and h j (x) &lt; 0.</p><p>If u(x) is a piecewise-defined feedback control strategy that results in (33)-(34) being piecewise continuous on {X i } i&#8712;I with unique Filippov solutions and satisfies</p><p>The key feature of Corollary 1 is that (36) is independent of the control strategy u(x) and therefore can be checked, e.g., offline. Then, standard CBF-based control synthesis methods can be used to enforce (37) at runtime. Example 3 (Example 1 revisited). Consider (7) and take</p><p>for some L &gt; 0, and h(x 1 , x 2 ). The resulting piecewisedefined barrier function candidate on {X 1  1 , X 1 2 } is given by h</p><p>&#946;s for some &#946; &gt; 0, and following the construction of (35) gives h(x) as in (8)- <ref type="bibr">(10)</ref>.</p><p>Example 4. The second-order unicycle is a five-dimensional, nonholonomic, nonlinear system with dynamics ( &#7819;1 , &#7819;2 ) = (s cos &#952;, s sin &#952;)</p><p>where u = (u a , u &#945; ) is the two dimensional control input vector, and x = (x 1 , x 2 , s, &#952;, &#969;) is the state vector with state variables: (x 1 , x 2 ) the unicycle center of mass position, s its translational velocity, &#952; its heading angle, and &#969; its angular velocity. A barrier function that only depends on position (x 1 , x 2 ) cannot generally be used to construct a HO-CBF because the system does not have a well-defined Nonlinear second-order unicycle trajectories. The safe region corresponding to h &#8805; 0 is the outside of the inverted triangle. The initial position of the system is represented with a black dot, and the final position with a black asterisk. The nominal controller without the barrier function filter violates safety (dashed blue line) whereas the trajectory obtained with the barrier function (solid red line) successfully avoids the unsafe region. uniform relative degree. A standard solution for this system is to instead consider applying a barrier function to the point (y 1 , y 2 ) = (x 1 + p cos &#952;, x 2 + p sin &#952;), displaced from the center of mass by distance p in the direction of the heading &#952; <ref type="bibr">[19]</ref>. Here, we take h(x 1 , x 2 , &#952;) = L -(x 2 + p sin &#952;) + |x 1 + p cos &#952;|. h is defined on the open finite partition X 1 1 = {(x 1 , x 2 , &#952;) : x 1 + p cos &#952; &lt; 0}, X 1 2 = {(x 1 , x 2 , &#952;) : x 1 + p cos &#952; &gt; 0}, with boundary function k 2,1 (x) = -k 1,2 (x) = x 1 + p cos &#952;. Following the construction in equation (35) using &#945; 1 (s) = &#945; 2 (s) = &#946;s for &#946; &gt; 0, we obtain This barrier function satisfies (36) and we are able to find a piecewise-defined feedback control strategy satisfying (37).</p><p>In particular, we take p = 0.5, and L = 0.7 and consider a nominal controller that tracks a circular trajectory. At each time instant, apply a CBF-based quadratic program to solve for the control input that is closest in Euclidean distance to the nominal input while satisfying the constraint in (37), and apply this input as the feedback control strategy. An example of the resulting trajectory is shown in Figure <ref type="figure">2</ref> plotted in y 1y 2 coordinates, where we observe that the trajectory is such that h remains positive, as desired.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. CONCLUSION</head><p>This paper presented a new method to certify forward invariance of a set defined as a level set of a piecewisedefined function. There are two key conditions to guarantee forward invariance: the first condition is a barrier function requirement on the interior of each piece of the state space partition, while the second condition requires the vectorfield to point inside of the safe set at the boundary between each pair of pieces of the partition. The second condition is independent of the control strategy and can be checked offline, whereas the first one can be used to design controllers in a CBF setting. These properties make our method particularly applicable for the discontinuous barrier functions that arise when building a high-order CBF from a piecewise-defined barrier candidate.</p></div></body>
		</text>
</TEI>
