submitted by
to Faculty IV – Electrical Engineering and Computer Science Technische Universität Berlin in fulfillment of the requirements for the academic degree of Doctor of Engineering Sciences – Dr.-Ing. –
submitted dissertation
Zusammenfassung
Für eine sichere Roboternavigation in unbekannten und dynamischen Umgebungen reicht eine rein geometrische Kollisionsprüfung nicht aus. Ein Roboter kann noch Abstand zu einem Hindernis haben und dennoch eine Kollision nicht mehr vermeiden können, weil er zu schnell fährt, ungünstig ausgerichtet oder einem bewegten Objekt zu nahe ist. Ob ein Zustand eine sichere Fortsetzung erlaubt, hängt daher von der Roboterdynamik, den Stellgrenzen, dem Wahrnehmungshorizont und der Bewegung der Hindernisse ab und nicht allein vom Abstand zu den Hindernissen. Die Erreichbarkeitsanalyse nach Hamilton-Jacobi (HJ) beantwortet diese Frage mit einer Wertfunktion, deren Vorzeichen Zustände mit einer sicheren Fortsetzung von jenen trennt, in denen eine Kollision unter den angenommenen Modellen unvermeidbar ist. Die Berechnung dieser Wertfunktion ist jedoch zu aufwendig, um sie online für jede neu beobachtete lokale Umgebung zu wiederholen.
Diese Dissertation entwickelt neuronale implizite Repräsentationen, die offline auf Erreichbarkeitslösungen trainiert werden und die gewonnene Sicherheitsinformation optimierungsbasierten Reglern in Echtzeit zugänglich machen. Zur Laufzeit bildet das trainierte Modell die aktuelle Beobachtung oder die Menge der erfassten Hindernisse auf eine differenzierbare Sicherheitsfunktion ab, die mit der Abtastrate des Reglers ausgewertet und differenziert werden kann. Für die hier betrachteten Vermeidungsprobleme übersteigt die Wertfunktion den momentanen Wert der Nebenbedingung nie, sodass sie als Differenz aus einer direkt berechneten Nebenbedingung, etwa einer Signed-Distance-Funktion, und einer nichtnegativen Korrektur dargestellt werden kann, die die Roboterdynamik berücksichtigt. Die hier entwickelten residualen Repräsentationen lernen nur diese Korrektur, wodurch die vorhergesagte sichere Menge unabhängig vom Approximationsfehler nie in die repräsentierten Hindernisse hineinreicht.
Auf dieser Grundlage werden fünf Methoden entwickelt. Die ersten vier bilden zwei Paare und beziehen ihre Trainingsdaten aus numerisch gelösten HJ-Problemen. Das erste Paar nutzt gelernte Erreichbarkeitsinformationen als terminale Nebenbedingung in der modellprädiktiven Regelung (MPC), für lokal beobachtete statische Umgebungen und für vorhergesagte Hindernisbewegungen. Das zweite Paar nutzt gelernte Erreichbarkeitsfunktionen als Barrierekandidaten in Sicherheitsfiltern auf Basis von Control Barrier Functions (CBFs), für lokal beobachtete statische Umgebungen und, über paarweise in Relativkoordinaten kombinierte Barrieren, für eine variable Anzahl bewegter Hindernisse. In den untersuchten Szenarien zeigen Simulationen und Hardwareexperimente auf Boden- und Flugrobotern eine bessere Kollisionsvermeidung als geometrische und handentworfene Vergleichsverfahren, insbesondere bei kurzen Prädiktionshorizonten und bewegten Hindernissen.
Die fünfte Methode betrifft die Offline-Phase selbst, deren gitterbasierter Löser die ersten vier Methoden auf niedrigdimensionale Robotermodelle beschränkt. Für steuerungsaffine Dynamiken und eine polytopische Stellgrößenmenge wird der HJ-Hamiltonian in einer Ecke maximiert. Darauf aufbauend approximiert eine endliche Baumsuche über Stellgrößen an den Ecken der zulässigen Menge die Sicherheitswerte und lässt sich auf moderner Hardware effizient parallelisieren. Die dabei gefundenen Sicherheitswerte dienen als Train-
Zusammenfassung
ingsdaten. Zusammen mit einem Verlustterm aus der HJ-Variationsungleichung ersetzen sie den gitterbasierten Löser und liefern Barrierekandidaten für Systeme mit bis zu 13 Zuständen. Insgesamt machen die fünf Methoden dynamikbewusste, erreichbarkeitsbasierte Sicherheitsinformationen für die Echtzeitnavigation von Robotern in unbekannten und dynamischen Umgebungen praktisch nutzbar.
Acknowledgments
I would like to thank my supervisor, Prof. Wolfgang Hönig, for his guidance and support. He was always kind, patient, and approachable, and I particularly appreciated his availability and responsiveness, even outside regular working hours. I am grateful for his trust, his openness to my ideas, and the many discussions that helped shape this dissertation.
I am also very grateful to Prof. Sebastian Bernhard, who mentored me during my time in industry and has been involved in this research from the very beginning. He offered guidance and encouragement at every stage, from the initial ideas to the final revisions. I greatly appreciate his steady support and the time and energy he invested in our collaboration.
I am thankful to my family and friends for their patience, encouragement, and support throughout these years. They were there for me during the more demanding periods, and spending time with them helped me recharge and regain perspective.
Finally, I would like to thank my colleagues at the AUMOVIO AI Lab in Berlin. They made my time at the lab fun and interesting, and I learned from them about a wide range of topics, often far beyond my own research. I appreciated their different perspectives, as well as the thoughtful discussions and humor that made everyday work enjoyable.
Bojan Derajić
Berlin, October 2026
Chapter 1.
Introduction
Motivation
Autonomous mobile robots increasingly operate in spaces shared with people and other agents. Self-driving cars use public roads, delivery robots navigate sidewalks and hospital corridors, and cleaning and intralogistics robots work alongside people in public buildings and warehouses. These applications promise economic and societal value, but they share the difficulty that the environment is not fully known at deployment and changes over time. Because mistakes in such environments can harm people or damage property, the motion planning and control systems of these robots need explicit safety mechanisms before they can be deployed.
Safe operation in such environments is difficult because robots often perceive their surroundings only through onboard sensors, such as cameras or laser scanners, with a limited field of view. Free space and obstacles are discovered at runtime, other agents appear and change course, and each decision must be made within fractions of a second. The challenge is not only to complete the task, but to do so with motion that is physically executable, responsive to new observations, and safe despite incomplete knowledge of the environment [1, 2]. Figure 1.1 shows a representative example of a mobile robot navigating an unknown warehouse environment using only local onboard perception.
Figure 1.1. (a) Sample scene from the Gazebo simulator. (b) Visualized LiDAR point cloud, detected objects, and estimated agent motion. Mobile robot navigation in an unknown warehouse environment shared with other agents and perceived through local onboard sensing. The space outside the perception field is unknown, and the robot must react to new observations while maintaining safety margins under its dynamics and actuation limits.
In robot navigation, safety is most commonly treated as geometric collision avoidance , meaning that the robot body and the obstacles must not overlap at any time. The perceived environment is then modeled using geometric representations such as occupancy grids, which mark occupied map cells, or distance functions, which store the distance to the nearest obstacle, possibly together with predicted future positions of moving objects. These representations are intuitive, efficient, and accurate for the current geometry, but they do not describe how the situation can evolve. Whether a collision can still be avoided depends on three properties of the robot. The first is its state , such as position, heading, and velocity. The second is its dynamics , which govern how that state can change. The third is its actuation limits , such as bounded forces, accelerations, and steering rates.
A familiar example is the braking distance of a car. A vehicle approaching a wall at high speed may still be several meters away from it and thus be collision-free in a geometric sense. Nevertheless, a collision may already be unavoidable because no admissible braking or steering maneuver can prevent it. States of this kind are known as inevitable collision states [3, 4]. They arise for robots in narrow passages, at higher speeds, and near moving obstacles.
Figure 1.2 illustrates these unsafe states for a mobile robot. In the shaded region, the robot is not yet in collision but can no longer brake or steer away in time. For a static obstacle, this region extends toward the approaching robot by roughly its braking distance and grows with speed. For a moving obstacle, it also reflects the obstacle’s relative motion, so states at a considerable current distance from the obstacle may already be unsafe. The three illustrated extreme evasive maneuvers—full braking and maximal steering to either side—all end in collision after the boundary has been crossed. A controller that accounts for these states can intervene while recovery remains possible. A meaningful safety mechanism must therefore reason about motion under the robot dynamics and actuation limits, beyond the current distance to the obstacles [5].
Figure 1.2. Unsafe states for a mobile robot avoiding a static obstacle and a dynamic obstacle crossing its path. The shaded regions are still collision-free, but neither full braking nor maximal steering to either side prevents collision. For the static obstacle, the region grows roughly with the braking distance. For the moving obstacle, it is additionally shaped by the relative motion. A controller that monitors only current distance (dashed trajectories) may enter this region, but a dynamics-aware controller (solid trajectory) evades while recovery remains possible.
Modern navigation systems often compute motion by solving optimization problems in real time. A motion planner optimizes a short trajectory toward the goal subject to safety and actuation constraints. A safety filter modifies the control command from a separate controller as little as necessary to satisfy a safety condition. Both approaches need to account for future collision risks by identifying the states from which the robot can avoid collision indefinitely, which are the unshaded states in Figure 1.2 . If the environment were fully known and static, this long-term safe set could be computed once before deployment. In the settings considered throughout this dissertation, however, the safe set depends on obstacles that are discovered at runtime and may move, so it changes with every new observation and cannot simply be precomputed.
Hamilton–Jacobi (HJ) reachability analysis provides a principled way to obtain this set [6]. For a given state, it determines whether some admissible maneuver keeps the robot out of collision over a specified future horizon, which extends to all future time in the infinite-horizon setting relevant to long-term safety. For specified dynamics, actuation limits, obstacle geometry, and disturbance assumptions, the answer is encoded by a safety value function whose sign separates the states from which collision can still be avoided from those from which it cannot. The framework can also account for worst-case disturbances and adversarial obstacle motion, resulting in a robust safety value function. However, this rigor is computationally expensive, as obtaining one solution can take seconds to minutes even for robots with only a few state variables.
The central challenge is to make reachability-based safety information available as quickly as geometric representations can be updated. This dissertation investigates learned safety representations trained offline on HJ solutions for representative environments. At runtime, the current local observation or tracked obstacle states determine a differentiable safety function without repeated reachability computation. The learned function defines safety constraints for motion planning or for a safety filter that modifies a controller’s commands.
Background and Related Work
This section reviews navigation architectures, local motion-generation methods, and the two safety interfaces studied here, MPC terminal constraints and safety filters. It then examines HJ reachability and learned representations, drawing on surveys of mobile robot motion planning [7, 8] and safety-critical control [9, 10, 1]. § 4.2.6 identifies the remaining research gap. The mathematical framework follows in Chapter 2, while each technical chapter reviews work specific to its method.
General Navigation Architecture
Mobile robot navigation is commonly organized as a hierarchy that connects perception, planning, and feedback control, as illustrated in Figure 1.3 . Perception condenses the raw sensor data into the quantities used by the other components. These are an estimate of the robot state, a local map of the surroundings, and, in dynamic settings, the positions and velocities of nearby moving objects. The most widespread map representation is the occupancy grid, which divides space into cells and marks each cell as free or occupied [11, 12]. From an occupancy grid, a signed-distance function (SDF) can be computed efficiently [13, 14]. At each position, the SDF stores the distance to the nearest obstacle and thereby provides a continuous distance measure that motion planners can use.
Figure 1.3. Typical mobile robot navigation architecture. Perception converts sensor data into maps, state estimates, and obstacle information. A global planner provides a route toward the task goal, a local planner converts this route and the latest observations into executable local motion, and a feedback controller tracks the resulting reference. An optional safety filter (dashed) supervises the nominal command and modifies it when it violates the specified safety condition.
A global planner searches a coarse map for a route toward the task goal. In this dissertation, the term refers to geometric planners, which search for a collision-free path of a simplified robot model without considering its dynamics. Classical graph-search algorithms such as Dijkstra’s algorithm and A* operate on a discretized map [15, 16], while sampling-based planners such as probabilistic roadmaps and rapidly-exploring random trees (RRT), together with their asymptotically optimal variants, scale to high-dimensional configuration spaces [17, 18, 19]. Both families also have kinodynamic variants that plan directly with the robot dynamics [18, 20], but these variants typically scale less well, because they search the larger state space of the robot instead of its configuration space. Because a geometric route does not account for the dynamics, it indicates where the robot should go, not how it should move. Throughout this dissertation, global planning is treated as an upstream component that supplies the local planner with information such as waypoints.
The local planner turns a segment of the route into executable motion. From the latest observations and a model of the robot, it produces one of three outputs. A path is a sequence of positions or configurations, a trajectory additionally assigns timing to these positions, and a control command is applied to the robot directly. A feedback controller tracks the planned motion and compensates for deviations between the plan and the measured state. Since the local planner is the component that reacts to newly observed obstacles, it is also where collision avoidance is primarily enforced.
The boundaries between these blocks are conceptual rather than rigid. Model predictive control (MPC), for example, optimizes a short trajectory but applies its first control input directly, thereby merging local planning and feedback control. A learned policy may replace individual blocks or map sensor data directly to commands. A safety filter introduces an additional interface. It treats the output of any upstream component as a nominal command , whether that component is a planner, a tracking controller, a learned policy, or a human operator. The filter forwards this command when it satisfies the safety condition and modifies it otherwise. This dissertation focuses on the two blocks of Figure 1.3 where safety constraints are enforced. Reachability-based safety information enters either as the terminal constraint of an MPC local planner or as the barrier function of a downstream safety filter.
Local Motion Planning and Control
Local motion-planning methods differ in how they select commands. Reactive methods respond to current geometry, velocity-space methods evaluate candidate commands under a constant-velocity assumption, and optimization-based methods plan trajectories [7, 8].
Reactive methods. Reactive methods compute commands from the geometric relation between the robot, goal, and obstacles. In the artificial potential field [21], the goal exerts an attractive force and obstacles exert repulsive forces. The robot follows their net force, the negative gradient of the combined potential. The vector field histogram instead selects a direction from a local polar histogram of obstacle density [22]. Both methods are inexpensive, operate at sensor rate, and require no prior map. However, potential-field forces can cancel before the goal is reached, trapping the robot in a local minimum, and narrow passages can cause oscillations. More fundamentally, a direction based on distance alone does not indicate whether the robot can still brake or turn away in time.
Velocity-space methods. Velocity-space methods plan one step further ahead by comparing candidate velocity commands. The dynamic window approach (DWA) restricts the candidates to velocities that are reachable within the next control interval under the acceleration limits [23]. It simulates a short arc for each candidate, discards those that lead to a collision or do not allow the robot to stop in time, and scores the remainder by goal progress, obstacle distance, and speed. Velocity obstacles (VOs) address moving obstacles by identifying, for each robot–obstacle pair, the robot velocities that lead to a collision if the obstacle maintains its current velocity, so that the controller can select a velocity outside this set [24]. Reciprocal formulations, most prominently optimal reciprocal collision avoidance (ORCA), divide the required evasion between the agents and produce efficient multi-robot motion [25, 26]. Their collision-avoidance guarantee requires every agent to apply the same rule, an assumption that pedestrians and human-driven vehicles do not satisfy.
Trajectory optimization and model predictive control. Optimization-based planners compute several future states or inputs jointly and can trade off goal progress, smoothness, obstacle distance, and control effort explicitly. An early example is the elastic band, which deforms a path like a rubber band under repulsive obstacle forces [27]. The timed elastic band (TEB) additionally optimizes the velocity profile along the deformed path [28]. General trajectory optimizers encode collision avoidance as costs or constraints on the planned states and solve the resulting problem numerically [29, 30]. The environment typically enters through convex collision-free regions or through the SDF, whose value is the distance to the nearest obstacle and whose gradient points away from it [31, 32]. MPC embeds this trajectory optimization in a feedback loop [33, 34]. At every control cycle, it optimizes the predicted motion over a finite horizon, applies only the first input, and re-solves from the next measured state, so new observations can enter at every cycle. Sampling-based variants such as model predictive path integral control (MPPI) evaluate many randomly perturbed input sequences instead of computing gradients [35]. Because the dynamics, actuation limits, task objectives, and collision constraints all appear explicitly in a single problem, MPC has become a principal method for local planning and is one of the two main frameworks considered in this dissertation. Its finite prediction horizon nevertheless creates a safety problem of its own, which § 4.2.3 examines.
Learning-based methods. Learning enters local planning in two different ways. End-to-end approaches use reinforcement learning (RL) or imitation learning (IL) from expert demonstrations to train a complete policy that maps sensor observations directly to commands [36, 37, 38, 8]. Such policies remove hand-designed planning rules, but unless a separate safety mechanism is added, their safety depends on how well the policy generalizes from the training scenarios to the deployment environment. Hybrid approaches instead retain a conventional planner and learn one of its components, such as a correction to the dynamics model, an obstacle-motion predictor, or a cost function [39, 40, 41]. The position of the learned component determines the consequences of an error. An inaccurate cost may only degrade efficiency, while an inaccurate prediction or constraint can make an unsafe motion appear feasible. The methods developed in this dissertation are hybrid in this sense. They learn neither the task motion nor the dynamics but the safety constraint itself.
Navigation among moving agents. Methods for navigation among moving agents differ in what they assume about the other agents. If the agents form a team of robots, they can coordinate their motion, either explicitly by communicating their planned trajectories or implicitly by following shared rules. Each robot can then reason about the behavior of the others, as in decentralized multi-robot planners such as MADER, EGO-Swarm, RLSS, and HDSM [42, 43, 44, 45]. This dissertation considers the other case, in which the agents act separately and do not coordinate with the robot. The planner then needs a model of how the environment evolves while the robot executes its motion. Prediction-based approaches extrapolate each obstacle’s motion using a constant-velocity (CV) assumption, a physics-motivated interaction model such as the social force model (SFM) [46], or a learned predictor that outputs several possible future trajectories and their probabilities [47, 48]. Interaction-aware planners additionally model how the other agents react to the robot’s own plan [49, 50]. Accurate predictions permit efficient, minimally conservative motion, but behavior outside the model can invalidate the collision constraints. A different strategy assumes only bounds on obstacle motion and plans against the worst case within these bounds [2]. Worst-case reasoning does not require accurate behavioral predictions as long as the assumed bounds hold, but it is more conservative. In dense crowds, it is a known cause of the freezing robot problem, in which the planner finds no admissible forward motion [51]. The dynamic-environment chapters study these two non-interactive viewpoints, explicit motion prediction and bounded-motion models, without assuming that other agents participate in collision avoidance.
Terminal Constraints and Safety Filters
Model-based planners commonly enforce collision avoidance through constraints on predicted states. Because these constraints apply only within the prediction horizon, a planned trajectory may satisfy all of them and still end at high speed close to an obstacle just beyond the horizon. From such a final state, the robot can no longer brake or steer away in time, so a collision is already inevitable (Figure 1.2 ). Lengthening the horizon postpones this problem at a growing computational cost. Long-term safety requires a mechanism that addresses what happens after the final predicted state.
Terminal safe sets. MPC theory addresses the end of the prediction horizon through a terminal constraint , which requires the final predicted state to lie in a set in which the robot can remain safe indefinitely. The required property is controlled invariance , meaning that from every state in the set, some admissible control keeps the robot inside it. With a controlled-invariant terminal set, feasibility of the MPC problem at one control cycle implies feasibility at the next, a property known as recursive feasibility [33, 52]. In a static environment, the simplest valid terminal set for a robot that can remain stopped consists of collision-free states with zero velocity. However, this choice forces every plan to nearly come to rest at the end of its horizon. Viability-based terminal sets reduce this conservatism by admitting every state from which a safe continuation exists, whether moving or stationary [53, 54]. The difficulty in local navigation is that this set depends on the obstacles, so a terminal set computed offline for one environment need not be valid in another. The resulting challenge is to construct a valid environment-dependent terminal set at runtime.
Safety filters. The second mechanism decouples safety from the task. A safety filter monitors the nominal command and checks whether it is compatible with keeping the robot inside a specified safe set. If it is, the command is applied unchanged. Otherwise, the filter minimally modifies it or switches to a recovery maneuver [9, 10]. The advantage of this architecture is its modularity, since one filter can supervise a classical planner, a learned policy, or a human operator without modifying the supervised component. Its guarantee extends only as far as the model, the uncertainty assumptions, and the safe set on which the filter relies.
Control barrier functions. The most widely used filter formulation relies on control barrier functions (CBFs) [55, 56]. A CBF is a scalar function of the state that is nonnegative on the safe set it represents and zero on the boundary of that set. The CBF condition limits how fast this value may decrease along the motion, so that the closer the robot comes to the boundary, the less it may move toward it. For control-affine dynamics, this condition is a linear inequality in the input. Filtering then reduces to a quadratic program (QP), known as the CBF-QP, which finds the admissible input closest to the nominal command [57, 58]. Classical potential fields can be recovered as a special case of such filters [59 ] . Numerous extensions widen the scope, including higher-order formulations for systems in which the input affects the barrier only through several integrations, robust, time-varying, and discrete-time variants, and formulations that embed CBF conditions as constraints in MPC [60 , 61 , 62 , 63 , 64 ] . All variants share one premise, that a valid barrier function representing a controlled-invariant set must be available. Constructing one is straightforward for simple geometric constraints and low-order dynamics but difficult in general.
Predictive and reachability-based filters. Two further filter families replace the pointwise barrier condition. Predictive safety filters accept a command only if a feasible backup trajectory into a safe terminal set remains available after the command is applied. Otherwise, they minimally adjust the command or execute the previously verified backup [65 , 66 , 67 ] . The online computation resembles MPC, but its purpose is certification rather than task optimization, and it inherits the need for a valid terminal safe set. Reachability-based filters use the HJ safety value function directly. The filter remains passive while the value is sufficiently positive and applies the optimal evasive input when the state approaches the safety boundary [68 ] [5]. Such filters intervene exactly when required by the dynamics and actuation limits, but they require that the value function for the current environment is available.
These mechanisms all require a dynamics-aware safety representation for the current environment, which may be a controlled-invariant terminal set, a backup set, or a valid barrier or value function. Obtaining that representation is the bottleneck studied here. A geometric map or SDF can be updated rapidly, but its collision-free region need not be controlled invariant under limited braking and steering. HJ reachability computes the required sets, as the following subsection explains.
Hamilton–Jacobi Reachability Analysis
The requirement identified above can be stated precisely using two notions that recur throughout the dissertation. A state is collision-free if the robot body does not currently intersect an obstacle. In a time-invariant setting, it is safe if, in addition, some admissible control keeps the robot collision-free for all future time. All such states form the largest controlled-invariant subset of the collision-free states, known as the viability kernel [69 , 70 ] or, equivalently, the maximal safe set , the term used throughout this dissertation. The collision-free states outside this set are exactly the inevitable collision states described in § 4.1 [3, 4]. The maximal safe set is the ideal set for both safety mechanisms of the previous subsection, since it is the largest valid MPC terminal set and the largest safe set that a filter can enforce under the modeled assumptions. When the environment evolves with time, the corresponding set is instead a time- and horizon-dependent avoidance set that depends on the assumed evolution model.
HJ reachability analysis is the most general computational framework for obtaining such sets for nonlinear systems [71, 72, 6]. Its inputs are the system dynamics and actuation limits, a failure set containing the states that must never be reached, such as all collision states, and optionally bounds on disturbances or obstacle actions, which are treated as adversarial within these bounds. Dynamic programming propagates the failure set backward through time and yields the backward reachable tube (BRT) of states from which failure cannot be avoided within the considered horizon. The result is encoded by a scalar value function whose sign separates the tube from its complement, and for a time-invariant failure set the complement of the BRT converges toward the maximal safe set as the horizon grows. The value function carries more information than the set alone, because its magnitude serves as a safety margin and its gradient indicates the locally best evasive direction. These properties make the HJ solution directly usable as an MPC terminal constraint, the switching criterion of a reachability-based filter, or a CBF candidate1 [68 ] [53, 73].
The computational barrier. This generality has a computational cost. Standard solvers discretize the state space on a grid, so memory and computation grow exponentially with the number of state variables. This curse of dimensionality typically limits practical grid-based computations to systems with roughly five or six state variables, and even small problems require computation times of seconds to minutes [6]. Local navigation adds a further limitation, because the failure set encodes the obstacles and each value function is thus tied to one specific environment. A robot that discovers its surroundings through onboard sensors would, strictly speaking, require a new reachability solution after every observation update, and when obstacles move, the failure set also changes over time. Grid-based HJ reachability is consequently impractical for real-time use and is generally reserved for offline analysis.
Reachability-augmented planning. Several methods integrate precomputed reachability information into online planning. FaSTrack plans quickly with a simplified model and inflates all obstacles by a worst-case tracking-error bound computed offline through HJ reachability [74, 75]. Other approaches propagate forward reachable sets that enclose all trajectories under uncertainty [76] or assemble plans from motion primitives whose swept volumes were verified offline [77]. These methods demonstrate a principle on which this dissertation also builds. The expensive dynamics-aware computation runs offline, and the online planner reuses its result. The information that they reuse typically describes the robot model, such as a tracking-error bound or a verified library of motion primitives, rather than a complete safe-set field for the local scene that the robot currently observes.
Scalable reachability formulations. There is a substantial literature on reducing the computational cost of HJ reachability by exploiting system structure. Decomposition splits dynamics with separable structure into lower-dimensional subsystems [78], and warm-starting reuses a previous solution when the problem changes only moderately [79, 80]. Parameter-conditioned formulations precompute the dependence of the value function on a small number of changing quantities, such as an obstacle position or a model parameter [81, 82, 83]. A particularly effective approach uses a coordinate transformation. When the state of a robot–obstacle pair is expressed in relative coordinates, collision becomes a fixed region around the origin. A single pairwise solution can then cover every obstacle with the modeled dynamics and shape, although the pairwise safety conditions must be combined online [84]. Finally, self-supervised neural solvers and RL formulations approximate the value function without a dense grid and thereby reach higher state dimensions [85, 86]. Each technique removes a particular bottleneck, but decomposition requires separable structure, parameter conditioning grows with the number of changing quantities, and pairwise coordinates do not directly represent the joint geometry of a local scene.
Learned Safety Representations
Learning offers a way to avoid online reachability analysis. The expensive computation is performed offline, and a network trained on its results provides an approximate solution at runtime. Early supervised approaches reproduce HJ value functions or safe-set labels for a fixed system or a low-dimensional family of settings [87, 88]. A related body of work learns barrier functions from expert demonstrations, sampled dynamics, or labeled safe and unsafe states [89, 90, 91, 92]. These networks represent safety constraints for planning or filtering control inputs, whereas the learned policies of § 4.2.2 generate the commands themselves.
Navigation in previously unseen environments additionally requires the representation to depend on what the robot currently observes. Neural implicit representations provide a suitable model class for such conditioned scalar fields [93, 94]. Neural distance fields can be constructed from range measurements [95], and LiDAR-based neural barriers can operate without a consistent global map [96]. Most closely related to the reachability-supervised approach of this dissertation, an observation-conditioned reachability value network predicts HJ safety values from LiDAR and combines them with online disturbance estimates for quadrupedal safety filtering [97]. These works establish that observation-conditioned safety prediction is feasible. They do not determine what a learned representation must provide before an optimization-based controller can rely on it.
Two practical requirements are especially important for learned safety representations. First, a controller may query the safety function and its gradient hundreds of times per second, either across the iterations of an MPC optimization or through successive safety-filter updates, while the observation changes much less frequently. This usage favors architectures that separate high-dimensional observation processing from repeated low-dimensional state queries. Hypernetworks, which generate the weights of a smaller network from an input, provide one such mechanism [98]. Second, a learned safety function is not automatically a certificate. A small value error near the safety boundary can change the predicted sign and label an unsafe state as safe, and an inaccurate gradient can produce an incorrect control constraint even where the sign is correct. A training or validation loss evaluated at sampled states provides no guarantee between those samples or outside the training distribution [99, 92]. Beyond average approximation accuracy, this raises the open question of whether selected safety properties can be imposed by the structure of the representation itself rather than inferred from sampled data.
Research Gap and Dissertation Positioning
Figure 1.4 summarizes the reviewed methods along two dimensions, their ability to incorporate new observations and the extent to which their safety reasoning accounts for the robot dynamics and actuation limits. Geometric and reactive planners, MPC with geometric collision constraints, and end-to-end learned policies adapt to new observations at sensor rate, but their safety reasoning is based on the current obstacle distance, a finite prediction horizon, or empirical performance. Grid-based HJ reachability lies in the opposite corner of the figure. Within its stated model, it explicitly accounts for the dynamics and actuation limits, but each solution is tied to the environment that was fixed when it was computed. Scalable and parameter-conditioned reachability formulations relax this restriction along a small number of pre-selected parameters. Hand-designed CBF safety filters can be updated online because their barrier functions are simple enough to construct directly, but such barriers typically capture only part of the safe set or lose validity under the actuation limits. Learning-based safety filters, which include learned barrier functions and learned reachability values, come closest to combining adaptability with dynamics-aware safety reasoning and form the immediate context of this dissertation.
Figure 1.4. Qualitative positioning of the reviewed method families and this dissertation. The horizontal axis indicates adaptation to new local observations, and the vertical axis indicates the extent to which safety reasoning accounts for robot dynamics and actuation limits. Placements represent typical formulations, and the learning-based safety filters include both learned barrier functions and learned reachability values. This dissertation studies reachability-informed safety constraints across static and dynamic environments and across MPC and safety-filter interfaces.
The reviewed work leaves five related problems. Four of them concern the representation, which must adapt reachability values to unseen geometry, support repeated value and gradient queries, handle moving obstacles and variable obstacle counts, and impose structural safeguards against approximation error. The fifth concerns the supervision. Learning from grid-based reachability solutions transfers the dimensionality limit of the solver to the offline stage, so aerial robots whose model includes the body orientation and angular rates, manipulators, and legged systems can exceed the practical range of the training-data generator itself. The following section formulates these problems as research questions.
Research Problem and Questions
This dissertation studies how to make dynamics-aware safety information available to real-time optimization-based controllers in environments that the robot has not seen before and that may change during operation. The dissertation develops learned representations that map the current local observation, or the states of the currently tracked obstacles, to an approximate HJ safety value function. The resulting function must be differentiable and inexpensive to evaluate, because the controller queries its values and gradients repeatedly at a high rate, and it must be accurate near the safety boundary, where its sign separates safe from unsafe states. These requirements are studied for two controller interfaces. As a terminal constraint in MPC, the learned function addresses safety beyond the finite prediction horizon. As a barrier candidate in a CBF safety filter, it defines the safety condition used to modify the nominal control command.
A second part of the problem concerns the supervision on which such a representation is trained. Grid-based reachability computation is practical mainly for low-dimensional models, so the dissertation also asks how the training targets themselves can be produced for systems beyond that range.
The scope is local navigation under specified robot dynamics, actuation limits, and, where applicable, disturbance and obstacle-motion models. Perception, state estimation, behavioral prediction, and global planning are upstream components. Moving agents are modeled as non-interactive obstacles that need not participate in collision avoidance. Since learned functions do not automatically inherit HJ guarantees, the analysis separates what the exact model guarantees, how accurately the network approximates it, which properties the architecture enforces, and how the resulting controller performs. Four research questions guide the technical development:
How can reachability-based safety functions be made available in real time from local observations or tracked obstacle states in previously unseen environments, as terminal constraints of MPC planners and as barriers of CBF safety filters?
How can such representations account for moving obstacles, whose motion makes the safe set time-varying, and for a varying number of such obstacles?
Which safety properties can the structure of a learned representation guarantee regardless of the approximation error, and which properties remain empirical when the representation is used by an optimization-based controller?
How can reachability supervision be generated for systems whose state dimension exceeds the practical reach of grid-based HJ solvers, while keeping the accuracy of the resulting safe-set approximation?
Contributions
This dissertation makes five methodological contributions, one from each of the author’s peer-reviewed publications. The first four combine MPC terminal constraints or CBF safety filters with static or dynamic environments. They learn from grid-based HJ solutions and adapt the safety function online to current observations or obstacle states. The fifth retains the residual representation and safety-filter interface but replaces grid-based supervision with generated search targets. The heading of each contribution names the venue and year of its publication, and Chapter A lists the five publications together with the contributions of each author.
NTC-MPC: neural terminal constraints for static environments (RA-L 2025). Presented in Chapter 3, neural terminal constraint MPC (NTC-MPC) learns observation-conditioned terminal safe sets for unknown static environments from HJ reachability supervision [100]. A hypernetwork maps the local SDF observation to the weights of a compact main network that approximates the corresponding HJ value function and serves as the MPC terminal constraint. This factorization processes the observation once per planning cycle while the solver repeatedly queries only the main network. The chapter also contributes a radially weighted regression loss that concentrates accuracy near the zero level set, where misclassification changes the safe-set estimate. Experiments show improved collision avoidance at comparable online computation time, with the largest benefit at short prediction horizons.
RNTC-MPC: residual neural terminal constraints for dynamic environments (CoRL 2025). Presented in Chapter 4, residual neural terminal constraint MPC (RNTC-MPC) extends neural terminal constraints to moving obstacles by conditioning on predicted geometry beyond the MPC horizon [101]. Its second contribution is structural, since the
Contributions
learned terminal value is expressed as the predicted terminal SDF minus a nonnegative neural residual. The SDF supplies the predicted obstacle geometry directly, while the network learns the additional unsafe region induced by the robot dynamics and obstacle motion. Consequently, no state marked as occupied by the predicted terminal geometry can be classified as safe, regardless of residual-regression error. This failure-set exclusion principle is independent of the dynamic setting and is reused in the subsequent contributions. The method remains compatible with real-time MPC and improves the learned safe-set approximation and collision avoidance over the evaluated direct-regression alternative.
ORN-CBF: observation-conditioned safety filtering for static environments (ICRA 2026). Presented in Chapter 5, the observation-conditioned residual neural CBF (ORN-CBF) transfers the observation-conditioned and residual representation principles to a safety-filter interface in unknown static environments [102]. The observed SDF minus a nonnegative, hypernetwork-generated residual yields a barrier candidate that approximates the reachability-based safe set while excluding the observed failure set by construction. Unlike an MPC terminal constraint, this field and its gradient are queried at the current state at control rate and are replaced when a new observation arrives. The chapter formulates this observation-update issue explicitly, introduces positional cropping to reduce offline training cost, and integrates the resulting barrier function into a real-time CBF-QP safety filter.
CN-CBF: composite safety filtering for moving obstacles (IROS 2026). Presented in Chapter 6, the composite neural CBF (CN-CBF) extends reachability-supervised safety filtering to a varying number of moving obstacles [103]. It replaces a joint scene-conditioned value function with one residual barrier for the relative dynamics of the robot and a single obstacle. In relative coordinates, collision is a fixed region even while the obstacle moves, so one offline reachability computation and one shared learned model cover every obstacle of the modeled class. At runtime, a smooth aggregation combines the pairwise barriers of the currently observed obstacles into one composite barrier candidate. CN-CBF handles a variable obstacle count without retraining and provides a compositional alternative to the prediction-conditioned joint representation of RNTC-MPC.
VertexCBF: grid-free reachability supervision (CoRL 2026). Presented in Chapter 7, VertexCBF removes the dependence on grid-based reachability solvers that the four preceding methods share, for the control-affine dynamics and convex polytope input sets used in the CBF-QP formulation here [104]. For such systems, the HJ Hamiltonian is maximized at a vertex of the input polytope, so the maximization over the input set can be restricted to its finitely many vertices. A label generator built on this property runs a finite-horizon tree search over vertex inputs in parallel on a graphics processing unit (GPU) and produces supervision labels independently at sparsely sampled states. A physics-informed loss derived from the stationary variational inequality and the residual parameterization of the preceding chapters complete the training objective. The result is a set of neural barrier candidates for systems with up to 13 states, well beyond the range of the grid-based solvers used elsewhere in the dissertation. The chapter also contributes a closed-loop validation protocol that assesses a learned barrier by rollouts, because no tractable numerical reference is available for such systems.
Unified framework and validation. Beyond the five methods, the dissertation contributes a common framework and cross-method analysis. It identifies the shared offline–online pipeline, compares conditioned and compositional representations across the two controller interfaces, and separates the choice of representation from the choice of supervision. The experiments span simulation and hardware studies on ground and aerial robots in static and dynamic environments, with comparisons against multiple baseline planners and safety filters, and a benchmark over 15 dynamical systems for the supervision study.
The five contributions map onto the research questions as follows. The first four methods address real-time safety representations (question 1), and among them RNTC-MPC and CN-CBF also treat moving obstacles (question 2). The residual representation and the guarantee-scope analysis, which run through all technical chapters, address the structural and empirical safety properties of question 3, while VertexCBF addresses the scalable supervision of question 4. Chapter 8 consolidates these answers.
Dissertation Structure
Chapter 2 develops the mathematical foundations used throughout the dissertation, including reachability analysis, MPC, CBFs, and neural implicit representations. It then introduces the shared framework for observation-conditioned safety functions, offline reachability supervision, efficient online inference, residual failure-set exclusion, and the scope of claims made for learned safety functions.
Each technical chapter motivates the problem, reviews related work, states the problem formally, and develops the method, followed by the experiments, a discussion of the results and their scope, and a short summary. The chapters are grouped into three parts, as Figure 1.5 illustrates. Part I studies neural terminal constraints for MPC, with Chapter 3 for unknown static environments and Chapter 4 for moving obstacles. Part II studies CBF safety filters, with Chapter 5 for unknown static environments and Chapter 6 for a varying number of moving obstacles. Part III varies the origin of the reachability supervision. Chapter 7 keeps the safety-filter interface and the residual representation of the preceding chapters and replaces the grid-based solver by labels generated through vertex-restricted search together with a physics-informed loss. The same supervision could also serve the MPC interface of Part I, but only for robot models with control-affine dynamics and polytopic input constraints, which the MPC methods do not assume in general. This combination is not evaluated here. Finally, Chapter 8 answers the research questions, compares the five methods, separates the safety properties that hold by theory or by construction from those demonstrated experimentally, and outlines future work.
Figure 1.5. Organization of the dissertation. After the introduction and the preliminaries, Parts I and II group the technical chapters by controller interface, and within each part the development progresses from static to dynamic environments. Part III varies a third design choice, the origin of the reachability supervision. The concluding chapter compares the methods of the three parts.
Dissertation Structure
Preliminaries and Common Framework
This chapter introduces the notation and the mathematical tools shared by the technical chapters, which are model predictive control (MPC), control barrier functions (CBFs), Hamilton–Jacobi (HJ) reachability, and learned implicit safety representations. The development starts with system dynamics and distinguishes instantaneous constraint satisfaction from long-term safety. It then presents MPC and CBF safety filters, followed by HJ reachability and its connection to barrier functions. The final sections describe observation-dependent safety functions and their learned representations, including the assumptions needed when observations change. Method-specific models, architectures, and implementation details follow in the corresponding chapters.
System Dynamics
The robot’s state x ∈ X ⊆ R n x x \in\mathcal{X} \subseteq\mathbb{R}^{n_x} x ∈ X ⊆ R n x is a vector that collects quantities such as position, heading, and velocity. The control input u ∈ U ⊆ R n u u \in\mathcal{U} \subseteq\mathbb{R}^{n_u} u ∈ U ⊆ R n u collects the commanded quantities through which the robot’s state is controlled, such as acceleration and steering rate. When present, an exogenous input d ∈ D ⊆ R n d d \in\mathcal{D} \subseteq\mathbb{R}^{n_d} d ∈ D ⊆ R n d models a disturbance or the decision of another agent that is not controlled. The input sets U \mathcal{U} U and D \mathcal{D} D are assumed compact. Compactness of U \mathcal{U} U encodes the actuation limits central to this dissertation and guarantees that the extrema appearing in later sections are attained. Continuous time is denoted by t ∈ R t \in\mathbb{R} t ∈ R and discrete time by k ∈ Z k \in\mathbb{Z} k ∈ Z .
Continuous-Time Systems
The continuous-time model used in the reachability and barrier-function formulations is
x ˙ ( t ) = f ( x ( t ) , u ( t ) , d ( t ) ) , x ( t ) ∈ X , u ( t ) ∈ U , d ( t ) ∈ D . (1) \dot{x}(t) = f\left(x(t), u(t), d(t)\right), \qquad x(t) \in\mathcal{X}, \quad u(t) \in\mathcal{U}, \quad d(t) \in\mathcal{D}. \tag*{(1)} x ˙ ( t ) = f ( x ( t ) , u ( t ) , d ( t ) ) , x ( t ) ∈ X , u ( t ) ∈ U , d ( t ) ∈ D . (1)
When no disturbance or adversarial input is modeled, the dynamics are written as
x ˙ ( t ) = f ( x ( t ) , u ( t ) ) . (2) \dot{x}(t) = f\left(x(t), u(t)\right). \tag*{(2)} x ˙ ( t ) = f ( x ( t ) , u ( t ) ) . (2)
Throughout, the vector field f f f is assumed continuous in all arguments and locally Lipschitz continuous in x x x , and trajectories are assumed not to escape to infinity in finite time. For every initial state and every pair of admissible input signals, a unique continuous trajectory then exists on the horizon of interest [105, 72]. Explicit time dependence is suppressed whenever it is clear from context and not essential to the discussion.
Admissible input signals are measurable functions of time taking values in the respective input sets. For an interval [ t , T ] [t, T] [ t , T ] , the sets of admissible control and disturbance signals are
U [ t , T ] : = { u : [ t , T ] → U , measurable } , D [ t , T ] : = { d : [ t , T ] → D , measurable } . (3) \mathcal{U}_{[t,T]} := \left\{u : [t,T] \to\mathcal{U},\ \text{measurable}\right\}, \qquad\mathcal{D}_{[t,T]} := \left\{d : [t,T] \to\mathcal{D},\ \text{measurable}\right\}. \tag*{(3)} U [ t , T ] := { u : [ t , T ] → U , measurable } , D [ t , T ] := { d : [ t , T ] → D , measurable } . (3)
respectively, with the analogous definitions U [ t , ∞ ) \mathbb{U}_{[t,\infty)} U [ t , ∞ ) and D [ t , ∞ ) \mathbb{D}_{[t,\infty)} D [ t , ∞ ) on infinite horizons. Given an initial state x x x at time t t t , the state reached at time τ ≥ t \tau\ge t τ ≥ t under admissible input signals u ( ⋅ ) u(\cdot) u ( ⋅ ) and d ( ⋅ ) d(\cdot) d ( ⋅ ) is denoted by ξ x , t u , d ( τ ) \xi_{x,t}^{u,d}(\tau) ξ x , t u , d ( τ ) . For undisturbed systems, the notation is shortened to ξ x , t u ( τ ) \xi_{x,t}^{u}(\tau) ξ x , t u ( τ ) . Although the dynamics in Equation (1) are time invariant, the initial time is retained in the trajectory notation, because § 5.6.2 considers constraints that depend explicitly on time.
Disturbance information pattern. When a disturbance is present, the safety question becomes a two-player game in which the controller tries to keep the system safe while the disturbance tries to violate safety. The answer depends on what each player is assumed to know when choosing an input, called the information pattern . The pattern adopted in this dissertation allows the disturbance to react to the control but not to anticipate it, which is formalized through strategies. A map γ : U [ t , T ] → D [ t , T ] \gamma: \mathbb{U}_{[t,T]} \to\mathbb{D}_{[t,T]} γ : U [ t , T ] → D [ t , T ] is a nonanticipative strategy if, whenever two control signals coincide almost everywhere on [ t , s ] [t,s] [ t , s ] for some s ≤ T s \le T s ≤ T , the corresponding disturbance signals γ [ u ] \gamma[u] γ [ u ] also coincide almost everywhere on [ t , s ] [t,s] [ t , s ] . The set of nonanticipative strategies on [ t , T ] [t,T] [ t , T ] is denoted by Γ [ t , T ] \Gamma_{[t,T]} Γ [ t , T ] , with Γ [ t , ∞ ) \Gamma_{[t,\infty)} Γ [ t , ∞ ) defined analogously. Granting the disturbance this instantaneous informational advantage is the conservative choice for safety analysis, because any safety statement that holds against such strategies also holds against any less informed disturbance [106, 72].
Discrete-Time Systems
Because the MPC methods are formulated in discrete time, a discrete-time model is also introduced. Let Δ t > 0 \Delta t > 0 Δ t > 0 denote the sampling period, which serves as the prediction interval of the MPC planners in Chapters 3 and 4, let t k = t 0 + k Δ t t_k = t_0 + k\Delta t t k = t 0 + k Δ t , and define x k = x ( t k ) x_k = x(t_k) x k = x ( t k ) . The discrete-time dynamics are written as
x k + 1 = F Δ ( x k , u k , d k ) , x k ∈ X , u k ∈ U , d k ∈ D . (4) x_{k+1} = F_{\Delta}(x_k,u_k,d_k), \qquad x_k \in\mathcal{X}, \quad u_k \in\mathcal{U}, \quad d_k \in\mathcal{D}. \tag*{(4)} x k + 1 = F Δ ( x k , u k , d k ) , x k ∈ X , u k ∈ U , d k ∈ D . (4)
When no disturbance or adversarial input is modeled, this becomes
x k + 1 = F Δ ( x k , u k ) . (5) x_{k+1} = F_{\Delta}(x_k,u_k). \tag*{(5)} x k + 1 = F Δ ( x k , u k ) . (5)
The function F Δ F_{\Delta} F Δ may be obtained from a continuous-time model through exact discretization, numerical integration, system identification, or a task-specific approximation. Continuous-time and discrete-time models are used side by side in this dissertation. Safety analysis via HJ reachability and safety filtering via CBFs operate on the continuous-time models Equations (1) and (2) , while the MPC planners of Chapters 3 and 4 optimize over the discrete-time model Equation (5) . Safety information computed in continuous time enters the discrete-time problem through constraint functions evaluated at the sampling instants.
Safety Constraints and Invariant Sets
This section distinguishes instantaneous constraint satisfaction from dynamics-aware safety. It defines constraint and failure sets, specifies signed-distance collision measures, and introduces controlled invariance and the maximal safe set as the relevant notions of long-term safety.
Constraint and Failure Sets
Let c : X → R c : \mathcal{X} \to\mathbb{R} c : X → R denote a constraint function . Throughout this dissertation, c ( x ) ≥ 0 c(x) \ge0 c ( x ) ≥ 0 indicates constraint satisfaction, and c ( x ) < 0 c(x) < 0 c ( x ) < 0 indicates failure. The corresponding constraint set and failure set are
C : = { x ∈ X ∣ c ( x ) ≥ 0 } , F : = { x ∈ X ∣ c ( x ) < 0 } = X ∖ C , (6) \mathcal{C} := \{x \in\mathcal{X} \mid c(x) \ge0\}, \qquad\mathcal{F} := \{x \in\mathcal{X} \mid c(x) < 0\} = \mathcal{X} \setminus\mathcal{C}, \tag*{(6)} C := { x ∈ X ∣ c ( x ) ≥ 0 } , F := { x ∈ X ∣ c ( x ) < 0 } = X ∖ C , (6)
respectively. The zero level c ( x ) = 0 c(x) = 0 c ( x ) = 0 therefore belongs to the constraint set. In a collision-avoidance context, the constraint function is a distance measure that already includes a physical inflation margin, so the boundary c ( x ) = 0 c(x) = 0 c ( x ) = 0 is a state of zero remaining margin rather than a state of physical contact.
Membership in C \mathcal{C} C describes instantaneous constraint satisfaction and does not imply dynamic safety. A trajectory that starts in a state x ∈ C x \in\mathcal{C} x ∈ C may still enter F \mathcal{F} F unavoidably because of the system dynamics, actuation limits, disturbances, or environment evolution. The braking example in § 5.2.3 illustrates this distinction.
Signed-Distance Collision Constraints
Throughout the dissertation, the constraint function primarily encodes collision avoidance, which is commonly described by a signed-distance function (SDF). Let A ⊂ R n p \mathcal{A} \subset\mathbb{R}^{n_p} A ⊂ R n p be a closed obstacle region in the robot’s workspace, and define the Euclidean distance from a point y ∈ R n p y \in\mathbb{R}^{n_p} y ∈ R n p to a set Y ⊆ R n p \mathcal{Y} \subseteq\mathbb{R}^{n_p} Y ⊆ R n p by
dist ( y , Y ) : = inf z ∈ Y ∥ y − z ∥ 2 . (7) \operatorname{dist}(y,\mathcal{Y}) := \inf_{z \in\mathcal{Y}} \lVert y - z \rVert_2. \tag*{(7)} dist ( y , Y ) := z ∈ Y inf ∥ y − z ∥ 2 . (7)
Under the sign convention used here, the signed distance to A \mathcal{A} A is
sd A ( y ) : = dist ( y , A ) − dist ( y , R n p ∖ A ) . (8) \operatorname{sd}_{\mathcal{A}}(y) := \operatorname{dist}(y,\mathcal{A}) - \operatorname{dist}(y,\mathbb{R}^{n_p} \setminus\mathcal{A}). \tag*{(8)} sd A ( y ) := dist ( y , A ) − dist ( y , R n p ∖ A ) . (8)
It is positive outside the obstacle, zero on its boundary, and negative in its interior. The signed-distance function is Lipschitz continuous and differentiable almost everywhere [107]. Away from geometric singularities, it satisfies
∥ ∇ y sd A ( y ) ∥ 2 = 1. (9) \lVert\nabla_y \operatorname{sd}_{\mathcal{A}}(y) \rVert_2 = 1. \tag*{(9)} ∥ ∇ y sd A ( y ) ∥ 2 = 1. (9)
An SDF therefore provides a distance measure and gradients for optimization-based planning and control. It can be computed efficiently from common perception outputs such as occupancy grids [13, 31, 14].
For a robot modeled as a point in the workspace with position p ( x ) p(x) p ( x ) , a geometric collision-avoidance constraint with a required minimum distance r ≥ 0 r \ge0 r ≥ 0 can be defined as
c ( x ) : = sd A ( p ( x ) ) − r . (10) c(x) := \operatorname{sd}_{\mathcal{A}}(p(x)) - r. \tag*{(10)} c ( x ) := sd A ( p ( x )) − r . (10)
For a robot with state-dependent nonzero footprint R ( x ) ⊂ R n p \mathcal{R}(x) \subset\mathbb{R}^{n_p} R ( x ) ⊂ R n p , one may instead use
c ( x ) : = inf y ∈ R ( x ) sd A ( y ) . (11) c(x) := \inf_{y \in\mathcal{R}(x)} \operatorname{sd}_{\mathcal{A}}(y). \tag*{(11)} c ( x ) := y ∈ R ( x ) inf sd A ( y ) . (11)
Both constraints are purely geometric, since they measure the obstacle distance at one instant and do not account for how fast the robot moves or how quickly it can brake or turn. The remainder of the chapter addresses this limitation.
Controlled-Invariant Safe Sets
The dynamics-aware notion of safety is built from invariance. Consider first an autonomous system x ˙ = f ( x ) \dot{x}=f(x) x ˙ = f ( x ) with a unique solution for any initial state. A set S ⊆ X \mathcal{S}\subseteq\mathcal{X} S ⊆ X is forward invariant for this system if every trajectory that starts in S \mathcal{S} S remains in S \mathcal{S} S for all future times. Forward invariance formalizes system viability, that is, the ability of the system to keep operating inside an admissible region.
For systems with a control input, the corresponding notion requires that some admissible control achieve invariance. A set S ⊆ C \mathcal{S}\subseteq\mathcal{C} S ⊆ C is called a safe set if it is controlled invariant . For the undisturbed continuous-time system, this means
∀ x ∈ S , ∃ u ( ⋅ ) ∈ U [ t , ∞ ) s.t. ξ x , t u ( τ ) ∈ S ∀ τ ≥ t . (12) \forall x\in\mathcal{S},\quad\exists u(\cdot)\in\mathcal{U}_{[t,\infty)}\quad\text{s.t.}\quad\xi^{u}_{x,t}(\tau)\in\mathcal{S}\quad\forall\tau\geq t. \tag*{(12)} ∀ x ∈ S , ∃ u ( ⋅ ) ∈ U [ t , ∞ ) s.t. ξ x , t u ( τ ) ∈ S ∀ τ ≥ t . (12)
For the discrete-time system in Equation (5) , controlled invariance means
∀ x k ∈ S , ∃ u k ∈ U s.t. F Δ ( x k , u k ) ∈ S . (13) \forall x_k\in\mathcal{S},\quad\exists u_k\in\mathcal{U}\quad\text{s.t.}\quad F_{\Delta}(x_k,u_k)\in\mathcal{S}. \tag*{(13)} ∀ x k ∈ S , ∃ u k ∈ U s.t. F Δ ( x k , u k ) ∈ S . (13)
With disturbances, safety must hold against every admissible disturbance strategy. For nonanticipative strategies Γ [ t , ∞ ) \Gamma_{[t,\infty)} Γ [ t , ∞ ) of § 5.1.1 , a set S \mathcal{S} S is robustly controlled invariant if
∀ x ∈ S , ∀ γ ∈ Γ [ t , ∞ ) , ∃ u ( ⋅ ) ∈ U [ t , ∞ ) s.t. ξ x , t u , γ [ u ] ( τ ) ∈ S ∀ τ ≥ t . (14) \forall x\in\mathcal{S},\quad\forall\gamma\in\Gamma_{[t,\infty)},\quad\exists u(\cdot)\in\mathcal{U}_{[t,\infty)}\quad\text{s.t.}\quad\xi^{u,\gamma[u]}_{x,t}(\tau)\in\mathcal{S}\quad\forall\tau\geq t. \tag*{(14)} ∀ x ∈ S , ∀ γ ∈ Γ [ t , ∞ ) , ∃ u ( ⋅ ) ∈ U [ t , ∞ ) s.t. ξ x , t u , γ [ u ] ( τ ) ∈ S ∀ τ ≥ t . (14)
The maximal safe set , denoted by S ⋆ \mathcal{S}^{\star} S ⋆ , is the largest controlled-invariant, or robustly controlled-invariant, subset of C \mathcal{C} C . For the undisturbed continuous-time system, it can be written as
S ⋆ : = { x ∈ C ∣ ∃ u ( ⋅ ) ∈ U [ t , ∞ ) s.t. ξ x , t u ( τ ) ∈ C ∀ τ ≥ t } . (15) \mathcal{S}^{\star}:=\left\{x\in\mathcal{C}\mid\exists u(\cdot)\in\mathcal{U}_{[t,\infty)}\ \text{s.t.}\ \xi^{u}_{x,t}(\tau)\in\mathcal{C}\ \forall\tau\geq t\right\}. \tag*{(15)} S ⋆ := { x ∈ C ∣ ∃ u ( ⋅ ) ∈ U [ t , ∞ ) s.t. ξ x , t u ( τ ) ∈ C ∀ τ ≥ t } . (15)
Under the adopted dynamics, constraints, and admissibility assumptions, S ⋆ \mathcal{S}^{\star} S ⋆ corresponds to the viability kernel of C \mathcal{C} C studied in viability theory [69 , 70 ] [108]. With disturbances, the analogous robust maximal safe set uses the quantifiers in Equation (14) . Every controlled-invariant or robustly controlled-invariant safe set S \mathcal{S} S satisfies
S ⊆ S ⋆ ⊆ C . (16) \mathcal{S}\subseteq\mathcal{S}^{\star}\subseteq\mathcal{C}. \tag*{(16)} S ⊆ S ⋆ ⊆ C . (16)
The second inclusion is strict whenever some states satisfy the constraint now but are dynamically unable to avoid future failure, which is the typical situation in robot navigation.
Braking-distance example. The following example makes the gap between C \mathcal{C} C and S ⋆ \mathcal{S}^{\star} S ⋆ concrete. Consider a robot moving along a line toward a wall. The robot is modeled as a double integrator with position p p p , velocity v v v , state x = ( p , v ) x=(p,v) x = ( p , v ) , dynamics p ˙ = v \dot{p}=v p ˙ = v , v ˙ = u \dot{v}=u v ˙ = u , and actuation limit ∣ u ∣ ≤ u ˉ \lvert u\rvert\leq\bar{u} ∣ u ∣ ≤ u ˉ . The wall occupies p < 0 p<0 p < 0 , so a natural constraint function is the distance to the wall, c ( x ) = p c(x)=p c ( x ) = p , with F = { x ∣ p < 0 } \mathcal{F}=\{x\mid p<0\} F = { x ∣ p < 0 } . Whether a state is safe in the dynamic sense depends on the velocity as well as on the position. A robot moving away from the wall (v ≥ 0 v\geq0 v ≥ 0 ) is safe wherever p > 0 p>0 p > 0 . A robot moving toward the wall (v < 0 v<0 v < 0 ) must be at least its braking distance v 2 / ( 2 u ˉ ) v^2/(2\bar{u}) v 2 / ( 2 u ˉ ) away from the wall, because no admissible input can stop it sooner. The maximal safe set is therefore
S ⋆ = { ( p , v ) ∣ v ≥ 0 , p ≥ 0 } ∪ { ( p , v ) ∣ v < 0 , p − v 2 2 u ˉ ≥ 0 } , (17) \mathcal{S}^{\star}=\left\{(p,v)\mid v\geq0,\ p\geq0\right\}\cup\left\{(p,v)\mid v<0,\ p-\frac{v^2}{2\bar{u}}\geq0\right\}, \tag*{(17)} S ⋆ = { ( p , v ) ∣ v ≥ 0 , p ≥ 0 } ∪ { ( p , v ) ∣ v < 0 , p − 2 u ˉ v 2 ≥ 0 } , (17)
which is a strict subset of C = { p ≥ 0 } \mathcal{C}=\{p\geq0\} C = { p ≥ 0 } , as illustrated in Figure 2.1 . The states in C ∖ S ⋆ \mathcal{C}\setminus\mathcal{S}^{\star} C ∖ S ⋆ are exactly the inevitable collision states discussed in Chapter 1, since they are geometrically collision-free but dynamically already unsafe. For this two-dimensional example, the boundary of S ⋆ \mathcal{S}^{\star} S ⋆ can be derived by hand. For realistic robot models with more state variables, nonlinear dynamics, and irregular obstacle geometry, a computational framework is needed, which Section 2.5 presents after the two controller frameworks that use the resulting sets.
Figure 2.1. Braking example in the state space of the double integrator p ˙ = v \dot{p}=v p ˙ = v , v ˙ = u \dot{v}=u v ˙ = u with ∣ u ∣ ≤ u ˉ |u| \le\bar{u} ∣ u ∣ ≤ u ˉ and a wall at p < 0 p<0 p < 0 . The failure set F \mathcal{F} F (dark) collects the collision states, and the constraint set C \mathcal{C} C is its complement. The horizontal axis is the position p p p and the vertical axis is the velocity v v v . Within C \mathcal{C} C , the states to the left of the braking parabola p = v 2 / ( 2 u ˉ ) p=v^2/(2\bar{u}) p = v 2 / ( 2 u ˉ ) (shaded red) are collision-free at the current instant but cannot avoid future collision, because their distance to the wall is smaller than the distance needed to brake. The maximal safe set S ⋆ \mathcal{S}^{\star} S ⋆ (light) excludes them. The dashed curves show two trajectories under maximal braking that start with the same approach speed, and both are horizontal translates of the braking parabola. The left one starts inside C ∖ S ⋆ \mathcal{C}\setminus\mathcal{S}^{\star} C ∖ S ⋆ and reaches the wall with nonzero speed (cross), while the right one starts in S ⋆ \mathcal{S}^{\star} S ⋆ and stops at a positive distance from the wall (open circle).
Model Predictive Control
Model predictive control is the first of the two controller frameworks used in this dissertation. At every sampling instant, the controller uses the dynamics model to predict the robot’s motion a short time into the future and optimizes this predicted motion with respect to a cost function and constraints. It applies only the first control input of the optimized plan and repeats the procedure at the next instant with updated measurements [33, 109, 34]. Replanning at every step makes MPC a feedback controller despite its planning character, and the explicit constraints make it well suited to safety-critical navigation. This section states the generic problem and then isolates the terminal constraint set as the component responsible for safety beyond the prediction horizon.
Consider the discrete-time model in Equation (5) . At time step k k k , the MPC prediction variables are
x 0 ∣ k , x 1 ∣ k , … , x N ∣ k , u 0 ∣ k , u 1 ∣ k , … , u N − 1 ∣ k , (18) x_{0|k}, x_{1|k}, \ldots, x_{N|k}, \qquad u_{0|k}, u_{1|k}, \ldots, u_{N-1|k}, \tag*{(18)} x 0∣ k , x 1∣ k , … , x N ∣ k , u 0∣ k , u 1∣ k , … , u N − 1∣ k , (18)
where N N N is the length of the prediction horizon, x i ∣ k x_{i|k} x i ∣ k denotes the state predicted for time step k + i k+i k + i using the information available at time k k k , and x 0 ∣ k = x k x_{0|k}=x_k x 0∣ k = x k . The predicted dynamics satisfy
x i + 1 ∣ k = F Δ ( x i ∣ k , u i ∣ k ) , i = 0 , … , N − 1. (19) x_{i+1|k}=F_{\Delta}(x_{i|k},u_{i|k}), \qquad i=0,\ldots,N-1. \tag*{(19)} x i + 1∣ k = F Δ ( x i ∣ k , u i ∣ k ) , i = 0 , … , N − 1. (19)
A generic MPC problem is
min u 0 ∣ k , … , u N − 1 ∣ k ℓ f ∣ k ( x N ∣ k ) + ∑ i = 0 N − 1 ℓ i ∣ k ( x i ∣ k , u i ∣ k ) s.t. x 0 ∣ k = x k , x i + 1 ∣ k = F Δ ( x i ∣ k , u i ∣ k ) , i = 0 , … , N − 1 , u i ∣ k ∈ U , i = 0 , … , N − 1 , x i ∣ k ∈ C i ∣ k , i = 0 , … , N − 1 , x N ∣ k ∈ C f ∣ k . (20) \begin{aligned}
\min_{u_{0|k},\ldots,u_{N-1|k}} \quad& \ell_{f|k}(x_{N|k}) + \sum_{i=0}^{N-1} \ell_{i|k}(x_{i|k},u_{i|k}) \\
\text{s.t.}\quad& x_{0|k}=x_k, \\
& x_{i+1|k}=F_{\Delta}(x_{i|k},u_{i|k}), \quad i=0,\ldots,N-1, \\
& u_{i|k}\in\mathcal{U}, \quad i=0,\ldots,N-1, \\
& x_{i|k}\in\mathcal{C}_{i|k}, \quad i=0,\ldots,N-1, \\
& x_{N|k}\in\mathcal{C}_{f|k}. \tag*{(20)}
\end{aligned} u 0∣ k , … , u N − 1∣ k min s.t. ℓ f ∣ k ( x N ∣ k ) + i = 0 ∑ N − 1 ℓ i ∣ k ( x i ∣ k , u i ∣ k ) x 0∣ k = x k , x i + 1∣ k = F Δ ( x i ∣ k , u i ∣ k ) , i = 0 , … , N − 1 , u i ∣ k ∈ U , i = 0 , … , N − 1 , x i ∣ k ∈ C i ∣ k , i = 0 , … , N − 1 , x N ∣ k ∈ C f ∣ k . (20)
Here, ℓ i ∣ k \ell_{i|k} ℓ i ∣ k and ℓ f ∣ k \ell_{f|k} ℓ f ∣ k are the stage and terminal costs, respectively. The set C i ∣ k \mathcal{C}_{i|k} C i ∣ k is the stage constraint set predicted for stage i i i using the information available at time k k k . In navigation, it typically encodes collision avoidance through the signed-distance constraints of § 5.2.2 . In a time-invariant, fully observed setting, it reduces to the constant set C \mathcal{C} C . In general, it may depend on i i i because the environment is predicted to evolve, and on k k k because the prediction is replaced when new information becomes available. The quadratic tracking objective used throughout this dissertation is
ℓ i ∣ k ( x , u ) = ( x − x i ∣ k r e f ) T Q ( x − x i ∣ k r e f ) + ( u − u i ∣ k r e f ) T R ( u − u i ∣ k r e f ) , (21) \ell_{i|k}(x,u)=(x-x^{\mathrm{ref}}_{i|k})^{\mathsf{T}}Q(x-x^{\mathrm{ref}}_{i|k})+(u-u^{\mathrm{ref}}_{i|k})^{\mathsf{T}}R(u-u^{\mathrm{ref}}_{i|k}), \tag*{(21)} ℓ i ∣ k ( x , u ) = ( x − x i ∣ k ref ) T Q ( x − x i ∣ k ref ) + ( u − u i ∣ k ref ) T R ( u − u i ∣ k ref ) , (21)
ℓ f ∣ k ( x ) = ( x − x N ∣ k r e f ) T Q f ( x − x N ∣ k r e f ) , (22) \ell_{f|k}(x)=(x-x^{\mathrm{ref}}_{N|k})^{\mathsf{T}}Q_f(x-x^{\mathrm{ref}}_{N|k}), \tag*{(22)} ℓ f ∣ k ( x ) = ( x − x N ∣ k ref ) T Q f ( x − x N ∣ k ref ) , (22)
where x i ∣ k r e f x^{\mathrm{ref}}_{i|k} x i ∣ k ref and u i ∣ k r e f u^{\mathrm{ref}}_{i|k} u i ∣ k ref are the stage reference values, x N ∣ k r e f x^{\mathrm{ref}}_{N|k} x N ∣ k ref is the reference state at the end of the prediction horizon, and Q , Q f ⪰ 0 Q,Q_f\succeq0 Q , Q f ⪰ 0 and R ≻ 0 R\succ0 R ≻ 0 are weighting matrices.
Terminal constraint set. The set C f ∣ k \mathcal{C}_{f|k} C f ∣ k in Equation (20) is the terminal constraint set . It restricts the final predicted state and is the only constraint of the optimization problem Equation (20) through which system behavior beyond the prediction horizon can be enforced. The terminal cost ℓ f ∣ k \ell_{f|k} ℓ f ∣ k also reflects post-horizon behavior, but it only penalizes the final state and cannot exclude an inadmissible one. Increasing N N N does not resolve this limitation, since the computational cost grows with the horizon length and a finite horizon alone does not certify safety for all future times. The terminal set is chosen such that reaching it guarantees the desired post-horizon property, such as recursive feasibility, stability, or safety, and common choices include invariant sets and reachability-based approximations. Like the stage constraints, the terminal set may depend on the information available at time k k k . In a time-invariant setting, the shorter notation C f \mathcal{C}_f C f is used. The central property associated with the terminal set is recursive feasibility , which means that if the MPC problem is feasible at some time step, it remains feasible at all subsequent steps, so that the controller always has an admissible plan. For time-invariant constraints, a standard sufficient condition is the existence of a terminal controller κ f \kappa_f κ f satisfying
κ f ( x ) ∈ U , F Δ ( x , κ f ( x ) ) ∈ C f , ∀ x ∈ C f , (23) \kappa_f(x)\in\mathcal{U}, \qquad F_{\Delta}(x,\kappa_f(x))\in\mathcal{C}_f, \qquad\forall x\in\mathcal{C}_f, \tag*{(23)} κ f ( x ) ∈ U , F Δ ( x , κ f ( x )) ∈ C f , ∀ x ∈ C f , (23)
together with C f ⊆ C \mathcal{C}_f\subseteq\mathcal{C} C f ⊆ C . In the terminology of § 5.2.3 , condition Equation (23) requires C f \mathcal{C}_f C f to be a controlled-invariant safe set. Recursive feasibility then follows from a shifting argument, in which the optimal input sequence at time k k k , shifted by one step and extended with κ f \kappa_f κ f , is a feasible candidate at time k + 1 k+1 k + 1 [33, 52, 109]. Because any controlled-invariant safe set satisfies this condition, larger terminal sets are preferred, as they restrict the planner less. The ideal terminal set is the maximal safe set S ⋆ S^\star S ⋆ , which has also been used directly in viability-based predictive control [53].
When the constraints are time-varying or observation-dependent, this argument no longer applies, because the terminal set C f ∣ k C_{f|k} C f ∣ k itself changes from one time step to the next. The shifted candidate sequence must then be admissible for the problem solved at time k + 1 k+1 k + 1 , whose terminal set C f ∣ k + 1 C_{f|k+1} C f ∣ k + 1 is generally different from C f ∣ k C_{f|k} C f ∣ k . Invariance of each individual terminal set is not sufficient. Recursive feasibility additionally requires a compatibility condition linking successive terminal sets, and it presumes that the prediction model and the information update are consistent with the true system and its sensing process. What these requirements imply when the terminal set is produced by a learned model is discussed in § 5.9.5 . The remaining challenge, addressed in Chapters 3 and 4, is to construct a suitable terminal set from obstacle geometry observed only at runtime.
Control Barrier Functions
The second control framework uses a safety filter to supervise a nominal controller that handles the task objective. Regardless of the controller’s design, the filter modifies the proposed control command as little as necessary to satisfy the safety condition. Control barrier functions are a widely used tool for constructing such filters. Their modern control form was introduced in [55, 57], and comprehensive surveys are provided in [62 ] [56]. This section introduces the scalar function h h h and the candidate safe set it represents, states the differential condition that makes h h h a control barrier function, and presents the resulting invariance guarantee in relation to the safety conventions of § 5.2 .
The standard first-order CBF formulation is stated for the control-affine system
x ˙ = f 0 ( x ) + g ( x ) u , x ∈ X , u ∈ U , (24) \dot{x} = f_0(x) + g(x)u,\qquad x \in\mathcal{X},\qquad u \in\mathcal{U}, \tag*{(24)} x ˙ = f 0 ( x ) + g ( x ) u , x ∈ X , u ∈ U , (24)
where f 0 : X → R n x f_0 : \mathcal{X} \to\mathbb{R}^{n_x} f 0 : X → R n x and g : X → R n x × n u g : \mathcal{X} \to\mathbb{R}^{n_x \times n_u} g : X → R n x × n u are locally Lipschitz. The control-affine structure covers a broad class of robot models encountered in practice, including those considered in this dissertation, and makes the constraints below linear in the control input.
The starting point is a scalar function h : X → R h : \mathcal{X} \to\mathbb{R} h : X → R , continuously differentiable on an open set containing X \mathcal{X} X , that implicitly represents the region to be kept safe. As with the constraint function c c c of § 5.2 , its sign classifies states and its zero level set forms the boundary. The set certified by the standard CBF theory is the nonnegative superlevel set
S h : = { x ∈ X ∣ h ( x ) ≥ 0 } , (25) S_h := \{x \in\mathcal{X} \mid h(x) \ge0\}, \tag*{(25)} S h := { x ∈ X ∣ h ( x ) ≥ 0 } , (25)
and the control objective is to keep the state in S h S_h S h for all time. Because trajectories of (24) are continuous, the state can leave S h S_h S h only by crossing its boundary, where h = 0 h = 0 h = 0 . By Nagumo’s classical theorem on set invariance, the set is rendered invariant if, wherever h ( x ) = 0 h(x) = 0 h ( x ) = 0 , some admissible input prevents h h h from decreasing further [70 ] [110]. However, enforcing such a requirement only on the boundary is impractical, because it constrains the input on a set of measure zero and allows the system to approach the boundary at full speed. The CBF condition extends the requirement to the entire domain, allowing h h h to decrease away from the boundary but only at a regulated rate. The regulation is expressed by an extended class-K \mathcal{K} K function, defined next.
Extended class-K \mathcal{K} K functions. A function α : I → R \alpha: I \to\mathbb{R} α : I → R , defined on an interval I ⊆ R I \subseteq\mathbb{R} I ⊆ R containing the origin, is an extended class-K \mathcal{K} K function if it is continuous and strictly increasing and satisfies α ( 0 ) = 0 \alpha(0) = 0 α ( 0 ) = 0 . A simple example is the linear function α ( s ) = γ s \alpha(s) = \gamma s α ( s ) = γ s with a constant gain γ > 0 \gamma> 0 γ > 0 , which is the choice used by the safety filters in this dissertation. In the CBF condition below, α \alpha α regulates how fast the barrier value may decrease. Far from the boundary, where h h h is large, a fast decrease is permitted, while at the boundary, where h = 0 h = 0 h = 0 , the barrier value must not decrease at all.
Control barrier function. The function h h h is a control barrier function for S h S_h S h if there exists an extended class-K \mathcal{K} K function α \alpha α , defined on an interval containing the range of h h h , such that
sup u ∈ U [ L f 0 h ( x ) + L g h ( x ) u ] ≥ − α ( h ( x ) ) , ∀ x ∈ X , (26) \sup_{u \in\mathcal{U}} [L_{f_0}h(x) + L_gh(x)u] \ge-\alpha\left(h(x)\right), \qquad\forall x \in\mathcal{X}, \tag*{(26)} u ∈ U sup [ L f 0 h ( x ) + L g h ( x ) u ] ≥ − α ( h ( x ) ) , ∀ x ∈ X , (26)
where L f 0 h ( x ) L_{f_0}h(x) L f 0 h ( x ) and L g h ( x ) L_gh(x) L g h ( x ) are the Lie derivatives of h h h along f 0 f_0 f 0 and g g g , defined as
L f 0 h ( x ) : = ∇ x h ( x ) T f 0 ( x ) , L g h ( x ) : = ∇ x h ( x ) T g ( x ) . (27) L_{f_0}h(x) := \nabla_xh(x)^{\mathsf{T}}f_0(x), \qquad L_gh(x) := \nabla_xh(x)^{\mathsf{T}}g(x). \tag*{(27)} L f 0 h ( x ) := ∇ x h ( x ) T f 0 ( x ) , L g h ( x ) := ∇ x h ( x ) T g ( x ) . (27)
The supremum in Equation (26) is taken over the admissible input set U \mathcal{U} U , so a valid CBF certifies that safety is achievable within the actuation limits . Equivalently, the CBF-admissible input set at state x x x is
K c b f ( x ) : = { u ∈ U ∣ L f 0 h ( x ) + L g h ( x ) u + α ( h ( x ) ) ≥ 0 } . (28) K_{\mathrm{cbf}}(x) := \left\{u \in\mathcal{U} \mid L_{f_0}h(x) + L_gh(x)u + \alpha\left(h(x)\right) \ge0\right\}. \tag*{(28)} K cbf ( x ) := { u ∈ U ∣ L f 0 h ( x ) + L g h ( x ) u + α ( h ( x ) ) ≥ 0 } . (28)
Forward invariance. Assume that S h S_h S h is nonempty and that zero is a regular value of h h h , meaning that ∇ x h ( x ) ≠ 0 \nabla_xh(x) \ne0 ∇ x h ( x ) = 0 wherever h ( x ) = 0 h(x) = 0 h ( x ) = 0 . Under the standard existence and uniqueness assumptions, any locally Lipschitz feedback law u = κ ( x ) u = \kappa(x) u = κ ( x ) satisfying
κ ( x ) ∈ K c b f ( x ) , ∀ x ∈ S h , (29) \kappa(x) \in K_{\mathrm{cbf}}(x), \qquad\forall x \in S_h, \tag*{(29)} κ ( x ) ∈ K cbf ( x ) , ∀ x ∈ S h , (29)
renders the closed set S h S_h S h forward invariant [57, 56].
Certified set and its size. For the invariant set S h S_h S h to represent physical safety, it must exclude every failure state,
S h ⊆ C . (30) S_h \subseteq C. \tag*{(30)} S h ⊆ C . (30)
Under Equation (30) , the set S h S_h S h is a safe set in the sense of § 5.2.3 , because from every initial state in S h S_h S h the feedback law κ \kappa κ generates an admissible input whose trajectory remains in S h S_h S h . The inclusion Equation (16) then gives
S h ⊆ S ⋆ ⊆ C . (31) S_h \subseteq S^\star\subseteq C. \tag*{(31)} S h ⊆ S ⋆ ⊆ C . (31)
A valid barrier can therefore certify at most the maximal safe set. A larger certified set S h S_h S h admits more initial states and can reduce conservatism, but intervention frequency also depends on the barrier parameterization and the filter design.
Relative degree. At states where L g h ( x ) = 0 L_gh(x) = 0 L g h ( x ) = 0 , the input does not appear in the constraint defining K c b f ( x ) K_{\mathrm{cbf}}(x) K cbf ( x ) , and the CBF inequality must hold through the drift term L f 0 h ( x ) L_{f_0}h(x) L f 0 h ( x ) alone. For barrier candidates whose input dependence appears only in higher time derivatives, the first-order condition is insufficient. Examples include purely position-based distance functions for systems with acceleration inputs. Exponential and higher-order CBF constructions restore an enforceable, input-dependent condition [60 , 61 ] . The reachability-based barriers used in this dissertation approximate value functions that depend on the full state, so L g h ( x ) L_{g}h(x) L g h ( x ) is generically nonzero and the first-order condition Equation (26) applies directly.
Time-Varying and Robust Barrier Functions
When obstacles move, the safe region itself changes over time, and the barrier must account for this motion. For a continuously differentiable time-varying barrier h : X × R → R h : \mathcal{X} \times\mathbb{R} \to\mathbb{R} h : X × R → R , define the certified set S h ( t ) : = { x ∈ X ∣ h ( x , t ) ≥ 0 } S_{h}(t) := \{x \in\mathcal{X} \mid h(x,t) \ge0\} S h ( t ) := { x ∈ X ∣ h ( x , t ) ≥ 0 } . The CBF condition becomes
sup u ∈ U [ ∂ h ∂ t ( x , t ) + L f 0 h ( x , t ) + L g h ( x , t ) u ] ≥ − α ( h ( x , t ) ) . (32) \sup_{u \in\mathcal{U}} \left[ \frac{\partial h}{\partial t}(x,t) + L_{f_0}h(x,t) + L_{g}h(x,t)u \right] \ge-\alpha\bigl(h(x,t)\bigr). \tag*{(32)} u ∈ U sup [ ∂ t ∂ h ( x , t ) + L f 0 h ( x , t ) + L g h ( x , t ) u ] ≥ − α ( h ( x , t ) ) . (32)
The partial derivative accounts for modeled continuous motion of the represented safe set, for instance when an obstacle moves [111]. Under the same regularity assumptions as in the time-invariant case, a feedback law satisfying Equation (32) renders the time-varying certified set S h ( t ) S_{h}(t) S h ( t ) forward invariant.
For dynamics with an adversarial disturbance, a sufficient robust condition requires the inequality to hold for the worst admissible disturbance [112] and reads
sup u ∈ U inf d ∈ D [ ∂ h ∂ t ( x , t ) + ∇ x h ( x , t ) T f ( x , u , d ) ] ≥ − α ( h ( x , t ) ) . (33) \sup_{u \in\mathcal{U}}\inf_{d \in\mathcal{D}} \left[ \frac{\partial h}{\partial t}(x,t) + \nabla_{x}h(x,t)^{\mathsf{T}}f(x,u,d) \right] \ge-\alpha\bigl(h(x,t)\bigr). \tag*{(33)} u ∈ U sup d ∈ D inf [ ∂ t ∂ h ( x , t ) + ∇ x h ( x , t ) T f ( x , u , d ) ] ≥ − α ( h ( x , t ) ) . (33)
The technical chapters specify how time dependence and obstacle motion enter their particular barrier constructions.
CBF-QP Safety Filtering
The practical appeal of CBFs is that the safety condition for control-affine systems can be enforced by a simple optimization problem solved at a high rate. Given a nominal control command u n o m u_{\mathrm{nom}} u nom , the filtered control input is computed by the quadratic program (QP)
u ∗ = arg min u ∈ U 1 2 ∥ u − u n o m ∥ 2 2 (34) u^{*} = \underset{u \in\mathcal{U}}{\arg\min}\ \frac{1}{2}\lVert u-u_{\mathrm{nom}}\rVert_{2}^{2} \tag*{(34)} u ∗ = u ∈ U arg min 2 1 ∥ u − u nom ∥ 2 2 (34)
s.t. L f 0 h ( x ) + L g h ( x ) u + α ( h ( x ) ) ≥ 0. (35) \text{s.t.}\quad L_{f_0}h(x) + L_{g}h(x)u + \alpha\bigl(h(x)\bigr) \ge0. \tag*{(35)} s.t. L f 0 h ( x ) + L g h ( x ) u + α ( h ( x ) ) ≥ 0. (35)
When U \mathcal{U} U is convex and described by linear inequalities, the CBF-QP is convex because the barrier constraint is affine in u u u . Under suitable regularity conditions, its solution is locally Lipschitz in the state, so the closed loop is well posed [56]. The filter is minimally invasive in the sense that the nominal command is passed through unchanged whenever it already satisfies the barrier constraint. The resulting safety guarantee rests on three premises. The function h h h satisfies the CBF condition Equation (26) under the bounded input set, the QP remains feasible along the closed-loop trajectory, and the certified set contains no failure states, as required by Equation (30) . The extent to which learned barriers satisfy these premises is discussed in § 5.9.5 .
At states where no admissible input satisfies the barrier constraint, the problem Equation (2.34) has no solution and the filter returns no input. In practice, the barrier constraint is relaxed by a nonnegative slack variable ς \varsigma ς that is penalized in the objective,
min u ∈ U , ς ≥ 0 1 2 ∥ u − u n o m ∥ 2 2 + ϱ ς 2 , s.t. L f 0 h ( x ) + L g h ( x ) u + α ( h ( x ) ) ≥ − ς , (36) \min_{u\in\mathcal{U},\,\varsigma\ge0} \frac{1}{2}\lVert u-u_{\mathrm{nom}}\rVert_2^2+\varrho\varsigma^2,\qquad\text{s.t.}\qquad L_{f_0}h(x)+L_gh(x)u+\alpha\bigl(h(x)\bigr)\ge-\varsigma, \tag*{(36)} u ∈ U , ς ≥ 0 min 2 1 ∥ u − u nom ∥ 2 2 + ϱ ς 2 , s.t. L f 0 h ( x ) + L g h ( x ) u + α ( h ( x ) ) ≥ − ς , (36)
with a penalty weight ϱ > 0 \varrho>0 ϱ > 0 . The relaxed problem always has a solution, and this solution coincides with that of eq:2.34 whenever the barrier constraint is inactive at the solution of the hard problem, for example when the nominal command already satisfies it. When the constraint is active, the quadratic penalty generally leaves a small positive slack for every finite weight, and this slack decreases as the weight grows. A positive slack records a violation of the barrier constraint under the chosen penalty weight, but it does not by itself show that no admissible input satisfies the hard constraint. The invariance guarantee applies only while the slack is zero. The safety filters of Chapters 5 to 7 use this relaxation, with the barrier constraint relaxed and the input limits kept as hard constraints.
The filter requires a valid dynamics-aware barrier for the current environment. Constructing one is difficult for general nonlinear systems, especially when geometry is revealed only at runtime [9, 10]. Chapters 5 and 6 learn observation-dependent barrier candidates from reachability analysis and examine which guarantees they retain.
Hamilton–Jacobi Reachability Analysis
The two preceding sections showed that controller safety depends on a suitable set. MPC requires a controlled-invariant terminal set, and safety filtering requires a valid barrier with a large certified set. Hamilton–Jacobi reachability analysis characterizes and computes such sets. Grounded in optimal control theory and dynamic programming, it determines a value function for specified dynamics, actuation limits, constraints, and disturbance assumptions. The sign of this function classifies every state, with nonnegative values where failure can be avoided and negative values where it cannot [113, 71, 72, 114, 6]. Although the framework accommodates a variety of problem specifications [115], this dissertation focuses on safety analysis where the target set is the failure set to be avoided. The finite-horizon formulation is developed first, followed by its infinite-horizon limit, which recovers the maximal safe set, the extension to time-varying constraints, and the numerical cost that motivates the learned representations of § 5.9 .
Finite-Horizon Avoidance
Consider the dynamics in Equation (1) , the time-invariant constraint function c c c , and the associated constraint and failure sets C \mathcal{C} C and F \mathcal{F} F defined in Equation (6) . Finite-horizon avoidance characterizes the initial states from which the control can keep the system out of F \mathcal{F} F over the entire horizon [ t , T ] [t,T] [ t , T ] , regardless of the disturbance. To answer this question, define the reachability payoff as the smallest constraint value attained along the trajectory,
J ( x , t , u ( ⋅ ) , d ( ⋅ ) ) : = min τ ∈ [ t , T ] c ( ξ x , t u , d ( τ ) ) , (37) J\bigl(x,t,u(\cdot),d(\cdot)\bigr):=\min_{\tau\in[t,T]}c\bigl(\xi_{x,t}^{u,d}(\tau)\bigr), \tag*{(37)} J ( x , t , u ( ⋅ ) , d ( ⋅ ) ) := τ ∈ [ t , T ] min c ( ξ x , t u , d ( τ ) ) , (37)
which is nonnegative exactly when the trajectory never enters the failure set. Using the nonanticipative disturbance strategies Γ [ t , T ] \Gamma_{[t,T]} Γ [ t , T ] of § 5.1.1 , the optimal value of the avoidance game is
V ( x , t ) : = inf γ ∈ Γ [ t , T ] sup u ( ⋅ ) ∈ U [ t , T ] J ( x , t , u ( ⋅ ) , γ [ u ] ( ⋅ ) ) . (38) V(x,t):=\inf_{\gamma\in\Gamma_{[t,T]}}\sup_{u(\cdot)\in\mathcal{U}_{[t,T]}}J\bigl(x,t,u(\cdot),\gamma[u](\cdot)\bigr). \tag*{(38)} V ( x , t ) := γ ∈ Γ [ t , T ] inf u ( ⋅ ) ∈ U [ t , T ] sup J ( x , t , u ( ⋅ ) , γ [ u ] ( ⋅ ) ) . (38)
Hamilton–Jacobi Reachability Analysis
In this differential game, the controller seeks to maximize the minimum constraint margin over the time horizon, while the disturbance seeks to minimize it using a nonanticipative strategy. For an undisturbed system, the infimum over disturbance strategies is omitted. The set of initial states from which failure cannot be avoided, even under optimal control, forms the backward reachable tube (BRT), defined as
B ( t ) : = { x ∈ X ∣ ∃ γ ∈ Γ [ t , T ] , ∀ u ( ⋅ ) ∈ U [ t , T ] , ∃ τ ∈ [ t , T ] s.t. ξ x , t u , γ [ u ] ( τ ) ∈ F } . (39) \mathcal{B}(t) := \left\{x \in\mathcal{X} \mid\exists\gamma\in\Gamma_{[t,T]},\ \forall u(\cdot) \in\mathcal{U}_{[t,T]},\ \exists\tau\in[t,T]\ \text{s.t.}\ \xi_{x,t}^{u,\gamma[u]}(\tau) \in\mathcal{F}\right\}. \tag*{(39)} B ( t ) := { x ∈ X ∣ ∃ γ ∈ Γ [ t , T ] , ∀ u ( ⋅ ) ∈ U [ t , T ] , ∃ τ ∈ [ t , T ] s.t. ξ x , t u , γ [ u ] ( τ ) ∈ F } . (39)
In navigation terms, the BRT is the region around an obstacle from which a collision can no longer be prevented within the horizon, for instance because the braking distance exceeds the remaining distance to the obstacle.
The value function in Equation (38) can be computed by dynamic programming. Let p ∈ R n x p \in\mathbb{R}^{n_x} p ∈ R n x denote the costate argument. Under the adopted control–disturbance order, the Hamiltonian of the system is defined as
H ( x , p ) : = max u ∈ U min d ∈ D p T f ( x , u , d ) . (40) H(x,p) := \max_{u \in\mathcal{U}} \min_{d \in\mathcal{D}} p^{\mathsf{T}} f(x,u,d). \tag*{(40)} H ( x , p ) := u ∈ U max d ∈ D min p T f ( x , u , d ) . (40)
For the undisturbed dynamics in Equation (2) , it reduces to
H ( x , p ) : = max u ∈ U p T f ( x , u ) . (41) H(x,p) := \max_{u \in\mathcal{U}} p^{\mathsf{T}} f(x,u). \tag*{(41)} H ( x , p ) := u ∈ U max p T f ( x , u ) . (41)
Because the payoff takes a minimum over time, the value function is generally not differentiable everywhere and is understood in the sense of viscosity solutions [116, 106, 113]. Under this interpretation, the value function satisfies the Hamilton–Jacobi–Isaacs variational inequality
min { ∂ V ∂ t ( x , t ) + H ( x , ∇ x V ( x , t ) ) , c ( x ) − V ( x , t ) } = 0 , V ( x , T ) = c ( x ) , (42) \min\left\{ \frac{\partial V}{\partial t}(x,t) + H\left(x,\nabla_x V(x,t)\right),\ c(x) - V(x,t) \right\} = 0,\qquad V(x,T) = c(x), \tag*{(42)} min { ∂ t ∂ V ( x , t ) + H ( x , ∇ x V ( x , t ) ) , c ( x ) − V ( x , t ) } = 0 , V ( x , T ) = c ( x ) , (42)
whose obstacle term c ( x ) − V ( x , t ) c(x) - V(x,t) c ( x ) − V ( x , t ) encodes the running minimum in the payoff [117, 72, 114]. The BRT and the corresponding finite-horizon avoidance set are the negative and the nonnegative level sets of V V V , so that
B ( t ) = { x ∈ X ∣ V ( x , t ) < 0 } , S V ( t ) : = { x ∈ X ∣ V ( x , t ) ≥ 0 } = X ∖ B ( t ) . (43) \mathcal{B}(t) = \left\{x \in\mathcal{X} \mid V(x,t) < 0\right\},\qquad\mathcal{S}_V(t) := \left\{x \in\mathcal{X} \mid V(x,t) \ge0\right\} = \mathcal{X} \setminus\mathcal{B}(t). \tag*{(43)} B ( t ) = { x ∈ X ∣ V ( x , t ) < 0 } , S V ( t ) := { x ∈ X ∣ V ( x , t ) ≥ 0 } = X ∖ B ( t ) . (43)
The set S V ( t ) \mathcal{S}_V(t) S V ( t ) contains the states from which the modeled failure set can be avoided over [ t , T ] [t,T] [ t , T ] , despite the worst-case disturbance. Since the payoff includes the initial time, S V ( t ) ⊆ C \mathcal{S}_V(t) \subseteq\mathcal{C} S V ( t ) ⊆ C , and this inclusion is typically strict for the reason illustrated by the braking example. Unlike the infinite-horizon maximal safe set, S V ( t ) \mathcal{S}_V(t) S V ( t ) is not generally controlled invariant beyond the terminal time T T T .
The obstacle term in Equation (42) implies the pointwise ordering
V ( x , t ) ≤ c ( x ) , ∀ x ∈ X , ∀ t ≤ T . (44) V(x,t) \le c(x),\qquad\forall x \in\mathcal{X},\quad\forall t \le T. \tag*{(44)} V ( x , t ) ≤ c ( x ) , ∀ x ∈ X , ∀ t ≤ T . (44)
The value function is therefore never larger than the instantaneous constraint value, because it additionally accounts for what the dynamics may make unavoidable. This ordering defines the nonnegative residual function
r ( x , t ) : = c ( x ) − V ( x , t ) , r ( x , t ) ≥ 0. (45) r(x,t) := c(x) - V(x,t),\qquad r(x,t) \ge0. \tag*{(45)} r ( x , t ) := c ( x ) − V ( x , t ) , r ( x , t ) ≥ 0. (45)
The residual measures how much the dynamics reduce the safety margin relative to the instantaneous constraint. When c c c is a distance field, it can be interpreted as a dynamics-induced loss of geometric distance to the obstacles. This exact ordering underlies the residual representations of § 5.9.2 .
Figure 2. Braking example, continued. Constraint function c c c and stationary value function V ∞ V_\infty V ∞ along a slice of the state space with constant approach speed v 0 < 0 v_0 < 0 v 0 < 0 . The value function runs below the constraint function by exactly the braking distance v 0 2 / ( 2 u ˉ ) v_0^2/(2\bar{u}) v 0 2 / ( 2 u ˉ ) , which is the residual r = c − V ∞ r = c - V_\infty r = c − V ∞ of Equation (45) . Its zero crossing is shifted by the braking distance in front of the wall, and the shaded region between the two zero crossings contains the states that satisfy the constraint but are dynamically unable to avoid collision.
The Infinite-Horizon Maximal Safe Set
Finite-horizon avoidance answers a time-limited question, while the controllers of Sections 2.3 and 2.4 require sets in which the robot can remain indefinitely. Although c c c , C \mathcal{C} C , and F \mathcal{F} F are time invariant, the finite-horizon value function depends on the time remaining until the terminal time T T T . When the backward propagation converges as the horizon tends to infinity, the limit defines the stationary infinite-horizon value function
V ∞ ( x ) ≔ lim t → − ∞ V ( x , t ) . (46) V_\infty(x) \coloneqq\lim_{t\to-\infty} V(x,t). \tag*{(46)} V ∞ ( x ) : = t → − ∞ lim V ( x , t ) . (46)
The limiting value function satisfies the stationary variational inequality
min { H ( x , ∇ x V ∞ ( x ) ) , c ( x ) − V ∞ ( x ) } = 0. (47) \min\left\{H\left(x,\nabla_x V_\infty(x)\right),c(x)-V_\infty(x)\right\}=0. \tag*{(47)} min { H ( x , ∇ x V ∞ ( x ) ) , c ( x ) − V ∞ ( x ) } = 0. (47)
Its nonnegative superlevel set is
S V ∞ ≔ { x ∈ X ∣ V ∞ ( x ) ≥ 0 } . (48) S_{V_\infty} \coloneqq\{x\in\mathcal{X}\mid V_\infty(x)\ge0\}. \tag*{(48)} S V ∞ : = { x ∈ X ∣ V ∞ ( x ) ≥ 0 } . (48)
Under matching dynamics, constraint sets, admissible inputs, disturbance assumptions, and control–disturbance quantifier order, S V ∞ S_{V_\infty} S V ∞ coincides with the maximal safe set introduced in Equation (15) , that is,
S V ∞ = S ⋆ . (49) S_{V_\infty}=S^\star. \tag*{(49)} S V ∞ = S ⋆ . (49)
The maximal safe set is the ideal target for an MPC terminal constraint or CBF candidate under the modeled dynamics, actuation limits, and disturbances. When it is used in a discrete-time MPC problem, the discretized model must be consistent with the continuous-time model of the HJ solution, as stated in § 5.1.2 .
Braking-distance example continued. For the double integrator of Figure 2.1 , the stationary value function can be written in closed form. With c ( x ) = p c(x)=p c ( x ) = p , the optimal control strategy for negative velocity is maximal braking, so the smallest future distance to the wall from state ( p , v ) (p,v) ( p , v ) is
V ∞ ( p , v ) = { p , v ≥ 0 , p − v 2 2 u ˉ , v < 0. (50) V_\infty(p,v)=
\begin{cases}
p, & v\ge0,\\
p-\dfrac{v^2}{2\bar{u}}, & v<0.
\end{cases} \tag*{(50)} V ∞ ( p , v ) = ⎩ ⎨ ⎧ p , p − 2 u ˉ v 2 , v ≥ 0 , v < 0. (50)
and its nonnegative superlevel set is exactly the maximal safe set in Equation (17) . The residual r ( x ) = c ( x ) − V ∞ ( x ) r(x) = c(x) - V_{\infty}(x) r ( x ) = c ( x ) − V ∞ ( x ) equals the braking distance v 2 / ( 2 u ˉ ) v^2/(2\bar{u}) v 2 / ( 2 u ˉ ) for v < 0 v < 0 v < 0 and vanishes for v ≥ 0 v \ge0 v ≥ 0 . It is a purely dynamics-induced quantity, independent of the wall position. fig:2.2 visualizes c c c , V ∞ V_{\infty} V ∞ , and r r r along a slice with constant approach speed. The learned representations of § 5.9.2 use the same decomposition of dynamic safety into geometric obstacle distance minus a dynamics-induced correction.
Time-Varying Constraints
The constraint function may depend explicitly on time, c : X × [ t , T ] → R c : \mathcal{X} \times[t,T] \to\mathbb{R} c : X × [ t , T ] → R , to represent moving obstacles or other constraints with specified evolution over the horizon [114]. This differs from replacing an observation-conditioned constraint when new information arrives, as discussed in § 5.8 . The finite-horizon construction extends by replacing c ( x ) c(x) c ( x ) with c ( x , τ ) c(x,\tau) c ( x , τ ) , so that
J ( x , t , u ( ⋅ ) , d ( ⋅ ) ) : = min τ ∈ [ t , T ] c ( ξ x , t u , d ( τ ) , τ ) , (51) J\left(x,t,u(\cdot),d(\cdot)\right) := \min_{\tau\in[t,T]} c\left(\xi_{x,t}^{u,d}(\tau),\tau\right), \tag*{(51)} J ( x , t , u ( ⋅ ) , d ( ⋅ ) ) := τ ∈ [ t , T ] min c ( ξ x , t u , d ( τ ) , τ ) , (51)
while the value retains the control–disturbance optimization in Equation (38) . The variational inequality likewise replaces its obstacle term by c ( x , t ) − V ( x , t ) c(x,t) - V(x,t) c ( x , t ) − V ( x , t ) and uses the terminal condition V ( x , T ) = c ( x , T ) V(x,T) = c(x,T) V ( x , T ) = c ( x , T ) . Hence V ( x , t ) ≤ c ( x , t ) V(x,t) \le c(x,t) V ( x , t ) ≤ c ( x , t ) and r ( x , t ) : = c ( x , t ) − V ( x , t ) ≥ 0 r(x,t) := c(x,t) - V(x,t) \ge0 r ( x , t ) := c ( x , t ) − V ( x , t ) ≥ 0 remain valid. If only the constraint is time varying, the Hamiltonian is unchanged. Time-varying dynamics or input sets instead result in a time-dependent Hamiltonian H ( x , p , t ) H(x,p,t) H ( x , p , t ) .
A stationary infinite-horizon limit need not exist when the constraint geometry continues to evolve. Time remains an explicit argument of the value function. The method-specific construction for predicted obstacle evolution is developed in Chapter 4. Chapter 6 avoids explicit time dependence in the offline reachability problem by formulating it in relative coordinates of the robot and an obstacle, in which the pairwise collision set is stationary.
Numerical Solution and Scalability
In practice, the variational inequalities Equations (42) and (47) are solved numerically. The standard approach discretizes the state space on a grid and propagates the value function backward in time with level-set methods until the horizon is covered or, for the infinite-horizon problem, until the value function converges to a stationary solution [107, 72, 6]. The stored values are initialized at every grid node with the terminal condition V ( x , T ) = c ( x ) V(x,T) = c(x) V ( x , T ) = c ( x ) , and one backward step of size Δ t \Delta t Δ t proceeds in two stages. The first stage propagates the Hamilton–Jacobi part of Equation (42) , which, using ∂ V / ∂ t = − H \partial V/\partial t = -H ∂ V / ∂ t = − H , gives the tentative update
V ~ ( x ) = V ( x , t ) + Δ t H ( x , ∇ x V ( x , t ) ) , (52) \widetilde{V}(x) = V(x,t) + \Delta t H\left(x,\nabla_x V(x,t)\right), \tag*{(52)} V ( x ) = V ( x , t ) + Δ t H ( x , ∇ x V ( x , t ) ) , (52)
where the spatial gradient is approximated by upwind finite differences on the stored values and the inner optimization over u u u and d d d inside H H H is carried out node by node. The second stage imposes the obstacle term by the pointwise minimum V ( x , t − Δ t ) = min { V ~ ( x ) , c ( x ) } V(x,t-\Delta t) = \min\{\widetilde{V}(x),c(x)\} V ( x , t − Δ t ) = min { V ( x ) , c ( x )} , which caps each updated value at the constraint value and enforces the ordering Equation (44) . Repeating the two stages marches the solution backward from T T T to the initial time of interest, and for the stationary problem Equation (47) the iteration is continued until successive value arrays differ by less than a tolerance. The result is a table of value samples over the grid and time, from which values and gradients at arbitrary states are obtained by interpolation. The learned safety functions of Chapters 3 to 6 are supervised by such numerically computed solutions, while Chapter 7 generates its supervision without a grid, for the reason given next.
The principal limitation of grid-based solvers is the curse of dimensionality , since memory and computation grow exponentially with the state dimension. This typically confines grid-based solutions to roughly five or six state variables, with computation times of seconds to minutes [6]. A substantial literature extends the tractable range through system decomposition, efficient warm starting, learned classification of safe states, and neural approximation of the HJ solution [78, 79, 88, 85]. Chapter 7 develops a further alternative for control-affine dynamics with polytopic input sets, in which supervision is generated by a search over the vertices of the input polytope instead of by a numerical solver. A second limitation is specific to the setting of this dissertation. Even when a single HJ problem is tractable, its solution is valid only for the constraint function used in that computation, so every new observation would require a new backward propagation. For these two reasons, HJ reachability is treated throughout this dissertation as an offline analysis tool, and the online availability of its results is achieved by learning, as developed in § 5.9 .
HJ Reachability and Control Barrier Functions
HJ reachability and CBFs both represent safety through the sign of a scalar function, but they address complementary parts of the safety-control problem. HJ reachability constructs a value function by dynamic programming, whose nonnegative superlevel set characterizes the states from which failure can be avoided for a specified dynamics model, constraint function, horizon, and control–disturbance quantifier structure. A CBF instead supplies a local differential condition whose pointwise enforcement renders a chosen set forward invariant. HJ reachability constructs a large dynamics-aware avoidance set, which in the stationary infinite-horizon setting is the maximal safe set, and the CBF framework provides an efficient interface for filtering a nominal control input online [73, 10, 9].
For the infinite-horizon, time-invariant problem, the relation is particularly direct. Under matching model and disturbance assumptions, the nonnegative superlevel set { x ∣ V ∞ ( x ) ≥ 0 } \{x \mid V_{\infty}(x) \ge0\} { x ∣ V ∞ ( x ) ≥ 0 } is the maximal safe set S ⋆ S^{\star} S ⋆ , and it is exactly the type of set that the CBF theorem certifies. Wherever V ∞ V_{\infty} V ∞ is differentiable, the ordering Equation (44) makes the second term of the stationary variational inequality Equation (47) nonnegative, so that the first term satisfies H ( x , ∇ x V ∞ ( x ) ) ≥ 0 H\left(x,\nabla_x V_{\infty}(x)\right) \ge0 H ( x , ∇ x V ∞ ( x ) ) ≥ 0 . An admissible control can therefore render the directional derivative of V ∞ V_{\infty} V ∞ nonnegative at such states. Since α ( V ∞ ( x ) ) ≥ 0 \alpha\left(V_{\infty}(x)\right) \ge0 α ( V ∞ ( x ) ) ≥ 0 wherever V ∞ ( x ) ≥ 0 V_{\infty}(x) \ge0 V ∞ ( x ) ≥ 0 , the CBF inequality Equation (26) holds at every differentiable point of S ⋆ S^{\star} S ⋆ and for every extended class-K \mathcal{K} K function α \alpha α . The value function V ∞ V_{\infty} V ∞ is thus a natural CBF candidate whose boundary is that of the maximal safe set rather than that of a conservative hand-designed subset.
Two restrictions apply to this conclusion. The argument verifies the CBF inequality only on the certified set S ⋆ S^{\star} S ⋆ , while the definition in § 5.4 requires it on all of X \mathcal{X} X . The invariance argument is unaffected, because it applies the condition only at states in S ⋆ S^{\star} S ⋆ , as in Equation (29) , but the result is weaker than the definition. The argument further relies on the gradient ∇ x V ∞ \nabla_x V_{\infty} ∇ x V ∞ , which need not exist at every state, as HJ value functions are in general only viscosity solutions and may be nonsmooth on parts of their domain [116, 73]. Consequently, V ∞ V_{\infty} V ∞ is a CBF candidate rather than a barrier function in the classical sense.
Control-barrier value functions (CBVFs) formalize this connection by modifying the reachability objective so that the resulting value function also encodes an admissible CBF decay rate [73]. For this dissertation, the practical conclusion is that the infinite-horizon HJ value function is a principled source of barrier functions, which, subject to the regularity caveats above, certifies a set as large as the dynamics permit. The scope of the guarantees retained by a learned approximation of such a value function is summarized in § 5.9.5 .
Observation-Dependent Safety Functions
The formalism developed so far treats the constraint function, and hence the failure set, as given. In the navigation problems of this dissertation, the robot instead discovers the environment through onboard sensing. The available information covers only a local region, it is affected by occlusion, and it is refreshed at a finite rate, so every safety-relevant quantity derived from it depends on the current observation. This section introduces observations and the safety functions built from them, specializes these functions to the discrete sequence of updates produced by a perception pipeline, and analyzes their time derivative, which is the form required by the barrier conditions of § 5.4 .
Observations and Safety Functions
Let e ( t ) ∈ E e(t) \in\mathcal{E} e ( t ) ∈ E denote the environment state , which collects the quantities that determine the failure set, such as the geometry of the occupied region and the positions and velocities of moving obstacles. The robot has no direct access to e e e and receives instead the observation
o ( t ) = ζ ( e ( t ) , x ( t ) ) ∈ O , (53) o(t) = \zeta\left(e(t), x(t)\right) \in\mathcal{O}, \tag*{(53)} o ( t ) = ζ ( e ( t ) , x ( t ) ) ∈ O , (53)
where ζ : E × X → O \zeta: \mathcal{E} \times\mathcal{X} \to\mathcal{O} ζ : E × X → O is the observation map and O \mathcal{O} O is the observation space . The dependence on the robot state reflects the finite range and the limited field of view of onboard sensing, together with the occlusions caused by the observed geometry itself. Throughout the dissertation, o o o denotes the output of the perception pipeline, an occupancy grid over a local sensing window or a list of estimated obstacle states in the technical chapters. The quantity that a learned model receives is computed from o o o and is introduced separately as the conditioning input in § 5.9 .
Observations can change because the environment evolves or because the robot moves, and two special cases recur in the technical chapters. The first case is a static environment observed egocentrically. Occupancy maps, local signed-distance fields, and point clouds are expressed relative to the current robot pose and cover a window that moves with the robot. If the environment state is constant, e ( t ) = e e(t) = e e ( t ) = e , the observation varies only through the robot state and is written o = o ( x ) o = o(x) o = o ( x ) . The methods of Chapters 3 and 5 operate in this case.
The second case is a dynamic environment observed in a fixed frame. When the observation is a list of positions and velocity vectors of moving obstacles expressed in world coordinates, its value does not depend on where the robot is, as long as the obstacles concerned remain within detection range. The observation then varies only with time and is written o = o ( t ) o = o(t) o = o ( t ) . A change in the set of detected obstacles is not described by this dependence and is treated as a discrete update below. The methods of Chapters 4 and 6 operate in this case.
Safety fields. A safety function built from local information is a scalar field on the joint space of states and observations,
ϕ : X × O → R , ( x , o ) ↦ ϕ ( x , o ) . (54) \phi: \mathcal{X} \times\mathcal{O} \to\mathbb{R}, \qquad(x,o) \mapsto\phi(x,o). \tag*{(54)} ϕ : X × O → R , ( x , o ) ↦ ϕ ( x , o ) . (54)
The sign convention of § 5.2.1 is retained, so nonnegative values indicate membership in the set represented by the field. For a fixed observation, this set is
S ( o ) : = { x ∈ X ∣ ϕ ( x , o ) ≥ 0 } . (55) S(o) := \{x \in\mathcal{X} \mid\phi(x,o) \ge0\}. \tag*{(55)} S ( o ) := { x ∈ X ∣ ϕ ( x , o ) ≥ 0 } . (55)
Whether membership in S ( o ) S(o) S ( o ) establishes instantaneous constraint satisfaction or dynamic safety depends on the field and its validity.
The form Equation (54) covers geometric constraints, reachability values, and barrier candidates. For example, c ( x , o ) = sd A ( o ) ( p ( x ) ) c(x,o) = \operatorname{sd}_{A(o)}(p(x)) c ( x , o ) = sd A ( o ) ( p ( x )) measures the distance to the observed geometry A ( o ) \mathcal{A}(o) A ( o ) . For a fixed static scene, V ∞ ( x , o ) V_{\infty}(x,o) V ∞ ( x , o ) is the stationary HJ value for that constraint, whereas predicted moving geometry requires a time-dependent value. A barrier h ( x , o ) h(x,o) h ( x , o ) supplies the field used by the safety filter. Along a trajectory, these fields are evaluated as ϕ ( x ( t ) , o ( t ) ) \phi(x(t),o(t)) ϕ ( x ( t ) , o ( t )) , with the observation dependence determined by the two cases above. A fixed field, as in Chapter 7, omits o o o .
Observation updates. A perception pipeline delivers observations at discrete instants rather than continuously. Let j ∈ N 0 j \in\mathbb{N}_0 j ∈ N 0 index the updates, let t j t_j t j denote the instant of update j j j , and let Δ t o = t j + 1 − t j \Delta t_o = t_{j+1} - t_j Δ t o = t j + 1 − t j denote the update period. The observation available at update j j j is
o j = ζ ( e ( t j ) , x ( t j ) ) , (56) o_j = \zeta\bigl(e(t_j),x(t_j)\bigr), \tag*{(56)} o j = ζ ( e ( t j ) , x ( t j ) ) , (56)
and it remains the robot’s only description of the environment on the interval [ t j , t j + 1 ) [t_j,t_{j+1}) [ t j , t j + 1 ) . The associated field is ϕ ( ⋅ , o j ) \phi(\cdot,o_j) ϕ ( ⋅ , o j ) with the safe set S ( o j ) S(o_j) S ( o j ) . The update period is typically longer than the control period, and Chapters 5 and 6 index observations separately from control steps. When a new observation is available at every control step, as in Chapters 3 and 4, the same index is used for both.
Fixed-observation notation. Whenever the observation is held fixed, ϕ ( ⋅ , o ) \phi(\cdot,o) ϕ ( ⋅ , o ) is an ordinary scalar field on the state space. In that situation the field is written
ϕ ( ⋅ ∣ o ) : X → R , x ↦ ϕ ( x ∣ o ) , (57) \phi(\cdot\mid o) : \mathcal{X} \to\mathbb{R}, \qquad x \mapsto\phi(x \mid o), \tag*{(57)} ϕ ( ⋅ ∣ o ) : X → R , x ↦ ϕ ( x ∣ o ) , (57)
to indicate that the observation acts as a parameter rather than as a second time-dependent argument. A field written in this form is said to be conditioned on the argument after the bar. The notation is only a way of writing the field and does not by itself introduce a modeling assumption. It is appropriate wherever the analysis concerns a single fixed observation, as within one planning problem in Chapter 3, and it becomes a deliberate design choice in Chapter 5, where the barrier is held fixed between two updates. The conditions under which that choice is justified follow from the time derivative studied next. The same convention applies to the learned fields of § 5.9 , which are conditioned on an input derived from the observation.
Observation Dynamics and Updates
The barrier conditions of § 5.4 constrain the derivative of the safety function along the closed-loop trajectory, so the observation dependence must be differentiated as well. This subsection matters primarily for the safety filters of Chapters 5 and 6. Assume that O ⊆ R n o \mathcal{O} \subseteq\mathbb{R}^{n_o} O ⊆ R n o and that ϕ \phi ϕ is continuously differentiable in both arguments.1 Along a trajectory x ( t ) x(t) x ( t ) with an observation o ( t ) o(t) o ( t ) , the chain rule gives
d d t ϕ ( x ( t ) , o ( t ) ) = ∇ x ϕ ( x , o ) ⊤ x ˙ + ∇ o ϕ ( x , o ) ⊤ o ˙ . (58) \frac{d}{dt}\phi\bigl(x(t),o(t)\bigr)=\nabla_x\phi(x,o)^\top\dot{x}+\nabla_o\phi(x,o)^\top\dot{o}. \tag*{(58)} d t d ϕ ( x ( t ) , o ( t ) ) = ∇ x ϕ ( x , o ) ⊤ x ˙ + ∇ o ϕ ( x , o ) ⊤ o ˙ . (58)
With the control-affine dynamics Equation (24) and with ϕ \phi ϕ in the role of the barrier candidate h h h , the CBF condition Equation (26) becomes
sup u ∈ U [ L f 0 ϕ ( x , o ) + L g ϕ ( x , o ) u + ∇ o ϕ ( x , o ) ⊤ o ˙ ] ≥ − α ( ϕ ( x , o ) ) . (59) \sup_{u\in\mathcal{U}}\left[L_{f_0}\phi(x,o)+L_g\phi(x,o)u+\nabla_o\phi(x,o)^\top\dot{o}\right]\geq-\alpha\bigl(\phi(x,o)\bigr). \tag*{(59)} u ∈ U sup [ L f 0 ϕ ( x , o ) + L g ϕ ( x , o ) u + ∇ o ϕ ( x , o ) ⊤ o ˙ ] ≥ − α ( ϕ ( x , o ) ) . (59)
The first two terms are the Lie derivatives of Equation (27) . The third term requires the observation dynamics o ˙ \dot{o} o ˙ , that is, a model of how the perceived description of the environment evolves. Its structure follows the cases of § 5.8.1 .
Static environment with egocentric observations. Here o = o ( x ) o=o(x) o = o ( x ) and o ˙ = ( ∂ o / ∂ x ) x ˙ \dot{o}=(\partial o/\partial x)\dot{x} o ˙ = ( ∂ o / ∂ x ) x ˙ , so that Equation (58) reduces to
d d t ϕ ( x ( t ) , o ( x ( t ) ) ) = [ ∇ x ϕ ( x , o ) + ( ∂ o ∂ x ) ⊤ ∇ o ϕ ( x , o ) ] ⊤ x ˙ . (60) \frac{d}{dt}\phi\bigl(x(t),o(x(t))\bigr)=\left[\nabla_x\phi(x,o)+\left(\frac{\partial o}{\partial x}\right)^\top\nabla_o\phi(x,o)\right]^\top\dot{x}. \tag*{(60)} d t d ϕ ( x ( t ) , o ( x ( t )) ) = [ ∇ x ϕ ( x , o ) + ( ∂ x ∂ o ) ⊤ ∇ o ϕ ( x , o ) ] ⊤ x ˙ . (60)
The derivative depends only on the state and the control input, and no explicit time dependence appears. The observation enters through the Jacobian ∂ o / ∂ x \partial o/\partial x ∂ o / ∂ x , which describes two effects of robot motion. The first effect is displacement , since the sensing window moves with the robot and the geometry that the observation already contains is expressed relative to the new window. The second effect is renewal , since geometry that was outside the window enters at its boundary and geometry that leaves the window is removed. If the field depends only on the geometry that the observation represents, expressed in coordinates fixed to the environment, then displacement leaves the value of the field at a given state unchanged, while renewal can change it, and Chapter 5 treats this case in detail. Holding the field fixed between two observation updates is a different operation. It differentiates the field ϕ ( ⋅ ∣ o j ) \phi(\cdot\mid o_j) ϕ ( ⋅ ∣ o j ) for a fixed observation instead of the composed function ϕ ( x , o ( x ) ) \phi(x,o(x)) ϕ ( x , o ( x )) , so no term of Equation (60) is neglected.
Moving obstacles observed in a fixed frame. Here o = o ( t ) o=o(t) o = o ( t ) , so the last term of Equation (59) does not depend on the control input and plays the role of the explicit partial time derivative in the time-varying condition Equation (32) . If the obstacles follow an assumed motion model with a bounded input d ∈ D d\in\mathcal{D} d ∈ D , then o ˙ \dot{o} o ˙ is supplied by that model, and taking the infimum over d d d yields the robust condition Equation (33) . Chapter 6 retains this term explicitly.
General case. When an egocentric observation covers a scene that contains moving obstacles, both mechanisms act simultaneously and both terms are required. The model must then describe the sensing geometry and the obstacle motion together.
Modeled and unmodeled observation dynamics. Observation dynamics can describe changes to known geometry, including displacement within the sensing window [118] and tracked motion under an assumed model. They cannot determine unseen geometry beyond the sensing range or behind an occlusion. Newly visible geometry may enter abruptly, making o ˙ \dot{o} o ˙ and the total derivative Equation (58) undefined at that instant. The differential condition is enforced between such updates, and safety across them requires additional sensing and update assumptions.
Sensing adequacy. Let F ( e ) ⊆ X \mathcal{F}(e) \subseteq\mathcal{X} F ( e ) ⊆ X denote the failure set induced by the true environment state and let F ( o ) ⊆ X \mathcal{F}(o) \subseteq\mathcal{X} F ( o ) ⊆ X denote the failure set represented by the observation, so that F ( e ) ∖ F ( o ) \mathcal{F}(e) \setminus\mathcal{F}(o) F ( e ) ∖ F ( o ) collects the failure states that the robot has not yet perceived. Let B ∞ ( F ) \mathcal{B}_{\infty}(\mathcal{F}) B ∞ ( F ) denote the infinite-horizon backward reachable tube of a failure set F \mathcal{F} F , defined as in Equation (39) with T → ∞ T \to\infty T → ∞ , which collects the states from which entry into F \mathcal{F} F can no longer be avoided under the dynamics and actuation limits. The setting of this dissertation assumes that
x ( t ) ∉ B ∞ ( F ( e ( t ) ) ∖ F ( o ( t ) ) ) , ∀ t , (61) x(t) \notin\mathcal{B}_{\infty}\left(\mathcal{F}(e(t)) \setminus\mathcal{F}(o(t))\right), \qquad\forall t, \tag*{(61)} x ( t ) ∈ / B ∞ ( F ( e ( t )) ∖ F ( o ( t )) ) , ∀ t , (61)
which means that the failure states not yet revealed by the sensing remain far enough away, in the dynamic rather than the purely geometric sense, for the robot to still avoid them once they are revealed. Condition Equation (61) is a requirement on the sensing configuration and the operating speed rather than on the safety function, since a controller cannot act on information that it does not have. The sensing range, the field of view, the occlusion structure, the update period, and the robot speed all enter, because the extent of B ∞ \mathcal{B}_{\infty} B ∞ grows with the robot speed and with the distance needed to stop or to turn away.
Cross-update safety. At a discrete update, replacing o j o_j o j by o j + 1 o_{j+1} o j + 1 may shrink the represented safe set. Continued safety requires at minimum
x ( t j + 1 ) ∈ S ( o j + 1 ) . (62) x(t_{j+1}) \in\mathcal{S}(o_{j+1}). \tag*{(62)} x ( t j + 1 ) ∈ S ( o j + 1 ) . (62)
A condition enforced under the previous field cannot guarantee membership in the updated set. Sensing adequacy Equation (61) does not imply Equation (62) either, because avoiding newly revealed geometry separately need not be compatible with avoiding the previously observed geometry. Membership in the updated set must be checked at the update or protected by an additional margin. The technical chapters state the conditions relevant to each sensing and obstacle model.
Consequences for the methods. In a static environment, a field held fixed between two updates remains consistent with the environment that it represents. Its derivative is ∇ x ϕ ( x ∣ o j ) T x ˙ \nabla_x \phi(x \mid o_j)^\mathsf{T}\dot{x} ∇ x ϕ ( x ∣ o j ) T x ˙ alone, and the offline computation becomes a family of stationary reachability problems indexed by the observation, which is the construction of Chapters 3 and 5. When obstacles move, the represented safe set drifts while a fixed field remains unchanged, so obstacle motion is represented explicitly, through a time-varying constraint function in Chapter 4 or through relative coordinates in Chapter 6.
Learned Implicit Safety Functions
Learning connects offline HJ analysis to the observation-dependent functions needed online. This section defines the conditioning input, neural implicit fields, the residual parameterization, and hypernetworks, then summarizes their shared pipeline and guarantee scope.
Conditioning input. A learned safety function is not evaluated on the raw observation Equation (53) , but on a quantity derived from it. This quantity is called the conditioning input and is written
w = η ( o ) ∈ W , (63) w = \eta(o) \in\mathcal{W}, \tag*{(63)} w = η ( o ) ∈ W , (63)
where η \eta η is a fixed map applied by the perception and prediction stack before the model is queried, and W \mathcal{W} W is the conditioning space. Conditioning a value function on such a variable follows the parameter-conditioned reachability formulation of [81]. The methods of this dissertation define η \eta η differently. In Chapters 3 and 5, the observation is an occupancy grid and w w w is the signed-distance field computed from it over the sensing window. In Chapter 4, the observed obstacle states are propagated by a motion model, and w w w collects the signed-distance fields of the predicted geometry at selected future instants. In Chapter 6, w w w consists of the observed obstacle states themselves, so that the conditioning input coincides with the observation. Chapter 7 learns a single fixed field, for which w w w is omitted, because its subject is the supervision rather than the environment representation. The first three methods hold w w w fixed until the next update, so their learned fields use the fixed-argument notation Equation (57) and are written as ϕ ^ Θ ( x ∣ w ) \hat{\phi}_{\Theta}(x \mid w) ϕ ^ Θ ( x ∣ w ) , with the safe set Equation (55) evaluated for the corresponding conditioning input. Chapter 6 instead differentiates the obstacle states with respect to time, so its barrier is written as a joint function of state and observation Equation (54) .
Neural Implicit Safety Representations
A neural scalar field
ϕ ^ Θ : X → R , (64) \hat{\phi}_{\Theta} : \mathcal{X} \to\mathbb{R}, \tag*{(64)} ϕ ^ Θ : X → R , (64)
parameterized by a real-valued vector Θ \Theta Θ , represents a set implicitly through its sign or level sets, in the same way that geometry is represented by learned signed-distance or occupancy fields in computer vision and graphics [93, 119, 120]. Under the convention used for HJ safety functions, the predicted safe set is defined by
S ^ Θ : = { x ∈ X ∣ ϕ ^ Θ ( x ) ≥ 0 } . (65) \hat{\mathcal{S}}_{\Theta} := \{x \in\mathcal{X} \mid\hat{\phi}_{\Theta}(x) \ge0\}. \tag*{(65)} S ^ Θ := { x ∈ X ∣ ϕ ^ Θ ( x ) ≥ 0 } . (65)
For an environment-dependent family, the field is conditioned as ϕ ^ Θ ( x ∣ w ) \hat{\phi}_{\Theta}(x \mid w) ϕ ^ Θ ( x ∣ w ) , yielding a different implicit set for each conditioning input w ∈ W w \in\mathcal{W} w ∈ W .
Several approximation objectives must be distinguished. A small value error need not imply a small safe-set error, because even a small bias can move the zero level set. Conversely, accurate classification or boundary recovery does not determine values far from the boundary. Neither value nor set accuracy guarantees accurate state gradients ∇ x ϕ ^ Θ ( x ) \nabla_x\hat{\phi}_{\Theta}(x) ∇ x ϕ ^ Θ ( x ) , which are required by gradient-based MPC and by the Lie derivatives in CBF constraints. The training objectives of the technical chapters address these distinctions explicitly.
The networks of this dissertation are differentiable almost everywhere, and the state gradient ∇ x ϕ ^ Θ \nabla_x\hat{\phi}_{\Theta} ∇ x ϕ ^ Θ is available efficiently through automatic differentiation, so the same learned field can serve as a scalar inequality constraint in an MPC problem and as a barrier function in a CBF-QP. The quality of these derivatives depends on the architecture. Networks with smooth activation functions, such as the sinusoidal representations used in implicit geometry and in learned reachability [94, 85], are preferable whenever the accuracy of the gradient matters, while rectified linear unit (ReLU) networks produce gradients that are discontinuous across activation boundaries. Automatic differentiation returns exact derivatives of the implemented network, but it does not by itself establish the regularity assumed by the CBF theorem. In an MPC setting, smoothness mainly influences the conditioning of the numerical optimization, while a classical CBF guarantee treats sufficient differentiability of h h h as a standing assumption.
Residual Parameterization with Failure-Set Exclusion
An unconstrained neural value-function approximation can make errors anywhere, including inside the observed failure set, where errors are unacceptable. The HJ ordering in Equations (44) and (45) suggests a parameterization that rules out such errors by construction. For a conditioning input w w w , let c ( x ∣ w ) c(x \mid w) c ( x ∣ w ) denote the corresponding constraint function and parameterize
V ^ Θ ( x ∣ w ) : = c ( x ∣ w ) − r ^ Θ ( x ∣ w ) , r ^ Θ ( x ∣ w ) ≥ 0 , (66) \widehat{V}_{\Theta}(x \mid w) := c(x \mid w) - \widehat{r}_{\Theta}(x \mid w), \qquad\widehat{r}_{\Theta}(x \mid w) \ge0, \tag*{(66)} V Θ ( x ∣ w ) := c ( x ∣ w ) − r Θ ( x ∣ w ) , r Θ ( x ∣ w ) ≥ 0 , (66)
where the nonnegativity of the learned residual r ^ Θ \widehat{r}_{\Theta} r Θ is enforced architecturally, for example through a ReLU output activation. A ReLU is the most direct choice, but its zero derivative on the inactive region can stall gradient-based training, so the technical chapters use smooth relaxations of the ReLU instead. The nonnegative residual enforces the pointwise ordering
V ^ Θ ( x ∣ w ) ≤ c ( x ∣ w ) , { x ∣ V ^ Θ ( x ∣ w ) ≥ 0 } ⊆ { x ∣ c ( x ∣ w ) ≥ 0 } . (67) \widehat{V}_{\Theta}(x \mid w) \le c(x \mid w), \qquad\left\{x \mid\widehat{V}_{\Theta}(x \mid w) \ge0\right\} \subseteq\left\{x \mid c(x \mid w) \ge0\right\}. \tag*{(67)} V Θ ( x ∣ w ) ≤ c ( x ∣ w ) , { x ∣ V Θ ( x ∣ w ) ≥ 0 } ⊆ { x ∣ c ( x ∣ w ) ≥ 0 } . (67)
Regardless of the residual approximation error, the learned safe set cannot include states that the represented constraint function classifies as failures, whether it serves as an MPC terminal set or as a CBF candidate set. In the braking example, no nonnegative residual, regardless of its accuracy, could declare a state inside the wall as safe. The property is one-sided, because V ^ Θ ≤ c \widehat{V}_{\Theta} \le c V Θ ≤ c does not imply V ^ Θ ≤ V \widehat{V}_{\Theta} \le V V Θ ≤ V , so a state outside the failure set but inside the true backward reachable tube can still be predicted safe if the residual is underestimated there. The decomposition also simplifies the learning problem, because the network no longer needs to reproduce the constraint geometry, which is supplied exactly by c c c , but only the dynamics-induced correction, such as the braking distance in Figure 2.2. Later chapters instantiate this principle for time-varying terminal constraints, observation-conditioned barriers, pairwise relative-state barriers, and fixed barriers trained without a grid-based solver. In the last case, developed in Chapter 7, the parameterization serves a second purpose beyond exclusion. It makes the uninformative constant solutions of the stationary variational inequality harder for the network to represent, although it does not remove them from the solution set of the equation.
Hypernetwork Conditioning
A conditioning input may be supplied directly as an additional input to a neural field or used to generate some or all of its parameters. A hypernetwork follows the second option and generates those parameters [98, 121]. A hypernetwork H Ψ H_{\Psi} H Ψ with trainable parameters Ψ \Psi Ψ maps w w w to the parameters Θ ( w ) \Theta(w) Θ ( w ) of a main network M Θ ( w ) M_{\Theta(w)} M Θ ( w ) , so that
Θ ( w ) = H Ψ ( w ) , ϕ ^ Ψ ( x ∣ w ) = M Θ ( w ) ( x ) . (68) \Theta(w) = H_{\Psi}(w), \qquad\hat{\phi}_{\Psi}(x \mid w) = M_{\Theta(w)}(x). \tag*{(68)} Θ ( w ) = H Ψ ( w ) , ϕ ^ Ψ ( x ∣ w ) = M Θ ( w ) ( x ) . (68)
This architecture separates the potentially expensive processing of the conditioning input from the repeated state queries of the neural scalar field ϕ ^ Ψ ( x ∣ w ) \hat{\phi}_{\Psi}(x \mid w) ϕ ^ Ψ ( x ∣ w ) . The hypernetwork is evaluated once when the conditioning input changes, whether at every planning cycle or only at a slower observation update, and the compact main network is evaluated and differentiated many times within the online optimization. Compared with concatenating the conditioning input to the state input of a single large network, the hypernetwork approach can represent the same function family with far fewer online computations per query [122]. The later chapters specify which environment representations are used as w w w and how the scalar field is structured.
Offline Supervision and Online Inference
The pipeline in Figure 2.3 separates the supervision source from the learned representation. Each conditioning input w w w specifies a target field V w ( x ) V_w(x) V w ( x ) . For a fixed field, w w w is omitted. Chapters 3 to 6 use grid-based HJ targets, while Chapter 7 uses vertex-restricted search and a physics-informed loss. The learned model approximates
Figure 2.3. Offline–online pipeline shared by the methods of this dissertation. Offline, a solver computes HJ value functions V w V_w V w for a set of training conditioning inputs, and these solutions supervise the learned safety model. Chapters 3 to 6 obtain them from a grid-based solver, while Chapter 7 replaces this block by vertex-restricted search combined with a physics-informed loss. Online, the current conditioning input w w w selects the scalar field V ^ ( ⋅ ∣ w ) \hat{V}(\cdot\mid w) V ^ ( ⋅ ∣ w ) whose value and gradient the optimization-based controller evaluates. The compact main network takes the robot state x x x as input and is conditioned on w w w , either through parameters generated by the optional hypernetwork (dashed) once per update, as in Chapters 3 to 5, or directly when the hypernetwork is omitted. The main network is evaluated and differentiated at every query.
V ^ Ψ ( x ∣ w ) ≈ V w ( x ) (69) \hat{V}_{\Psi}(x \mid w) \approx V_w(x) \tag*{(69)} V ^ Ψ ( x ∣ w ) ≈ V w ( x ) (69)
over a distribution of training conditioning inputs, following the general strategy of approximating HJ solutions with neural networks [88, 85]. At runtime, the conditioning input w j w_j w j formed from the latest observation selects a scalar field that can be queried repeatedly at candidate states, while a fixed field requires no online update. The expensive reachability analysis is thus performed offline, once per training environment, and the learned model generalizes the result to unseen conditioning inputs.
Guarantee Scope for Learned Safety Functions
A neural network fitted to reachability data does not automatically inherit the properties of the exact solution, so the guarantees of a learned safety function must be stated explicitly [92, 99]. An architectural constraint such as Equation (66) guarantees exclusion of the represented failure set. Value-regression and classification metrics instead assess approximation of an HJ value function or safe set. Neither establishes satisfaction of the HJ variational inequality, validity of the CBF condition Equation (26) , or recursive feasibility of an MPC scheme, which require separate assumptions and verification. Empirical collision avoidance is a closed-loop performance observation that supports, but does not replace, a formal certificate. Moreover, the accuracy of a learned field is limited by the accuracy of its training targets. The learned fields of Chapters 3 to 6 use numerically computed HJ solutions as targets, whose accuracy is limited by discretization, finite computational domains, and solver error. Chapter 7 replaces those targets by a variational-inequality residual and by labels from a truncated search, which removes the solver error but introduces errors from time discretization, horizon truncation, and incomplete search. In either case, a neural approximation cannot inherit a stronger guarantee than the target and the model used to train it. Each technical chapter reports, for its method, which properties hold by construction, which are measured, which are inherited from the numerical target under its model assumptions, and which are demonstrated experimentally, and Chapter 8 collects these statements.
Summary
This chapter distinguished instantaneous constraint satisfaction from membership in a controlled-invariant safe set. MPC terminal constraints and CBFs provide two interfaces for preserving safety, with the maximal safe set as the ideal stationary target. HJ reachability characterizes this set, and the ordering V ≤ c V \le c V ≤ c separates the geometric obstacle distance from the dynamics-induced reduction in safety margin. Its computational cost motivates offline analysis and learned online representations.
Observation-dependent fields require both a state derivative and, where modeled, an observation derivative. New information also requires assumptions on the sensing and a check of membership in the updated set. Neural implicit fields and hypernetworks support efficient queries, while residual parameterization excludes the represented failure set by construction. Value, set, and gradient accuracy, CBF validity, and MPC recursive feasibility remain distinct properties.
Part I.
Neural Terminal Constraints in Static Environments
This chapter presents neural terminal constraint MPC (NTC-MPC), which estimates the maximal safe set of an unknown static environment from local observations and uses it as an MPC terminal constraint. It addresses research question 1 through the MPC interface and is based on the author’s article [100], published in IEEE Robotics and Automation Letters (RA-L) in 2025.
Motivation
An MPC local planner converts the latest observation into a short motion that makes progress toward a goal supplied by a global route, subject to explicit constraints on the dynamics, the actuation limits, and the distance to the obstacles. The optimization reasons only over a finite prediction horizon, so a terminal constraint set is needed that requires the final predicted state to admit a safe continuation (§ 5.3 ). The question addressed in this chapter is how that set should be chosen when the obstacles are unknown before deployment.
Figure 3.1 shows how a short-horizon plan can satisfy every distance constraint yet enter an obstacle’s backward reachable tube (BRT). The unavoidable collision lies beyond the prediction horizon, so infeasibility appears only after recovery is impossible. A longer horizon reduces this risk at additional computational cost. A controlled-invariant terminal set instead requires a safe continuation beyond the horizon, with the maximal safe set S ∗ S^* S ∗ as the least restrictive target.
Figure 3.1. Effect of the terminal constraint on an MPC local planner that approaches a static obstacle, shown at two consecutive planning steps. Each red-shaded region is a slice of the backward reachable tube (BRT) of the observed obstacle, that is, of the set X ∖ S ∗ ( o k ) \mathcal{X} \setminus S^*(o_k) X ∖ S ∗ ( o k ) of states from which collision can no longer be avoided under the actuation limits. The slice depends on the heading, so a solid outline belongs to the current state and a dashed outline to the terminal state. In the lower row the dotted body marks the position at step k k k . Left: the terminal constraint is distance based, so every state predicted at step k k k keeps a nonnegative distance to the obstacle and the planner continues straight ahead. At step k + 1 k+1 k + 1 the robot has entered the BRT, and every admissible input sequence collides at some later instant. Right: the reachability-based terminal constraint x N ∣ k ∈ S ∗ ( o k ) x_{N|k} \in S^*(o_k) x N ∣ k ∈ S ∗ ( o k ) makes the planner steer away already at step k k k , so the robot remains outside the BRT one step later.
The difficulty specific to this setting is that such a set cannot be precomputed. Every observation induces a different maximal safe set, new observations arrive at the perception rate, and solving the corresponding Hamilton–Jacobi (HJ) problem numerically takes seconds even for low-dimensional robot models (§ 5.6.3 ). Classical terminal-set design assumes a fixed and known constraint geometry, while the planner considered here requires an environment-dependent terminal set within milliseconds.
NTC-MPC resolves this difficulty by learning the mapping from observations to terminal sets, following the offline–online pipeline of § 5.9 . The offline stage solves HJ reachability problems for many representative local observations and retains the resulting value functions as supervision targets. At runtime, a hypernetwork is evaluated once per new observation and generates the parameters of a compact main network, which the solver then evaluates and differentiates at every optimization iteration. As a result, the high-dimensional observation is processed once per planning cycle rather than once per solver iteration. In addition, the proposed radially weighted regression loss concentrates approximation accuracy near the safe-set boundary, where sign errors determine whether a state is treated as safe or unsafe. The experiments in § 6.1.5 show that the resulting
planner avoids collisions more reliably than the evaluated baselines, with the largest margins at short prediction horizons.
Related Work
MPC local planners commonly derive their collision costs and constraints directly from the latest local observation. SDFs can be computed efficiently from the detected occupied space and supply distance values and gradients for trajectory optimization [31, 14]. Depending on the formulation, this information enters the optimizer as soft cost terms, convex inner approximations, or exact distance-based hard constraints [123, 124, 32]. Other formulations impose sampled-data or discrete-time CBF conditions along a reference corridor or along the prediction horizon, or evaluate occupancy costs across candidate rollouts [63 ] [125, 126]. Learning-based variants retain this stage-wise structure but learn the constraint itself, for example by fitting a barrier function to LiDAR and odometry data at every control step [127] or by embedding learned collision scores and dynamics models directly into the optimizer [128, 129]. These methods support effective obstacle avoidance within the planned trajectory, but a positive obstacle distance over the horizon alone cannot exclude terminal states from which a collision is already inevitable under the dynamics and the actuation limits [3, 1].
In classical MPC, this post-horizon requirement is the role of a controlled-invariant terminal set [33, 52]. When the set satisfies the state constraints and admits a terminal control law that keeps the state inside it, the shifted solution from the preceding control step establishes recursive feasibility. Candidate constructions include maximal or multi-step control-invariant regions, viability kernels, and discrete-time CBF certificates [130, 131, 53, 132]. Viability information has also been used to select viable controls, to analyze horizon requirements without a terminal set, and to project measured states back into the viable region [133, 134, 135]. All these constructions start from a prescribed constraint geometry and cannot generate a new kernel from a runtime observation. For unknown environments, multitrajectory MPC instead pairs the task trajectory with a safe trajectory that ends in a stopping state within observed free space [136]. It achieves persistent obstacle avoidance under its assumptions, but the resulting terminal condition remains more restrictive than the maximal safe set.
Here, numerical approximations of the maximal safe set are obtained through HJ reachability, which is too expensive to repeat within a planning cycle. The scalable reachability formulations reviewed in § 4.2.4 reduce this cost by exploiting system structure or by reusing earlier solutions [79, 78, 88, 85], and parameter-conditioned reachability covers structured low-dimensional variation of the environment [81, 82, 83]. Online differential dynamic programming offers a further alternative, solving a finite-horizon reach–avoid problem by iterative local quadratic approximation around a nominal trajectory [137]. Closest to the sensor-driven setting, grid-based HJ updates treat unseen space as occupied and revise the affected parts of the safe set as free space is observed [80]. The reported updates average one second and yield a standalone safety controller rather than an MPC terminal constraint. None of these methods maps a high-dimensional local observation to the corresponding maximal terminal safe set at planning rates, which is what NTC-MPC provides through observation-conditioned HJ value prediction and a single terminal constraint.
Problem Statement
This section formalizes local navigation in an unknown static environment within the MPC formulation of § 5.3 . The goal is to design a terminal constraint set that represents the maximal safe set of the currently observed environment.
Setting. The robot follows x ˙ = f ( x , u ) \dot{x}=f(x,u) x ˙ = f ( x , u ) , with x ∈ X ⊆ R n x x \in\mathcal{X} \subseteq\mathbb{R}^{n_x} x ∈ X ⊆ R n x and u ∈ U ⊆ R n u u \in\mathcal{U} \subseteq\mathbb{R}^{n_u} u ∈ U ⊆ R n u , where compact U \mathcal{U} U encodes the actuation limits. HJ analysis uses this continuous-time model, while MPC uses x k + 1 = F Δ ( x k , u k ) x_{k+1}=F_{\Delta}(x_k,u_k) x k + 1 = F Δ ( x k , u k ) , obtained by numerical integration with prediction interval Δ t > 0 \Delta t>0 Δ t > 0 , as in § 5.1 .
The environment contains an unknown, static occupied region. At every control step k k k , the robot receives a local observation o k ∈ O o_k \in\mathcal{O} o k ∈ O in the sense of Equation (53) . Because a new observation is available at every planning step in this chapter, observations are indexed directly by k k k rather than by a separate update index. Concretely, the observation is an occupancy grid over a square sensing window centered at the robot’s position, the representation that the mapping stack produces from the onboard sensor data [11, 12], in which every cell is marked as either free or occupied. Let A ( o k ) ⊂ R 2 \mathcal{A}(o_k) \subset\mathbb{R}^2 A ( o k ) ⊂ R 2 denote the obstacle geometry represented by this map, including any footprint inflation or physical safety margin applied by the mapping stack, and let p ( x ) p(x) p ( x ) denote the workspace position of the robot. The SDF used throughout this chapter is obtained from the occupancy grid by a distance transform, which runs in time linear in the number of cells and yields the signed distance sd A ( o k ) \operatorname{sd}_{\mathcal{A}(o_k)} sd A ( o k ) sampled on the same grid [13, 14]. Any other perception output from which such a distance field can be computed, for instance a truncated signed-distance volume or a point cloud, could take the place of the occupancy grid without changing the formulation. Following Equation (10) , the observation-dependent constraint function is
c ( x ∣ o k ) : = sd A ( o k ) ( p ( x ) ) . (70) c(x \mid o_k) := \operatorname{sd}_{\mathcal{A}(o_k)}(p(x)). \tag*{(70)} c ( x ∣ o k ) := sd A ( o k ) ( p ( x )) . (70)
Nonnegative values therefore place the robot outside the represented obstacle geometry, and the corresponding constraint set is C ( o k ) : = { x ∈ X ∣ c ( x ∣ o k ) ≥ 0 } \mathcal{C}(o_k) := \{x \in\mathcal{X} \mid c(x \mid o_k) \ge0\} C ( o k ) := { x ∈ X ∣ c ( x ∣ o k ) ≥ 0 } . The robot’s task is to track a reference provided by a global planner, typically the segment between two consecutive waypoints, using only the local observations.
Following Equation (63) , the learned model of § 6.1.4 does not receive the occupancy grid itself. Its conditioning input is the single-channel image
w k : = η ( o k ) ∈ W , (71) w_k := \eta(o_k) \in\mathcal{W}, \tag*{(71)} w k := η ( o k ) ∈ W , (71)
which collects the signed distances sd A ( o k ) \operatorname{sd}_{\mathcal{A}(o_k)} sd A ( o k ) sampled on the cells of the sensing window. The same image supplies the values and gradients of the stage constraints Equation (70) , so one distance transform per planning cycle serves both purposes.
The observed maximal safe set. Because the environment is revealed only through observations, safety must be defined relative to the observed geometry. For an observation o o o , let V ∞ ( ⋅ ∣ o ) V_{\infty}(\cdot\mid o) V ∞ ( ⋅ ∣ o ) denote the stationary infinite-horizon HJ value function obtained by solving the variational inequality Equation (47) for the continuous-time model Equation (2) with the constraint function c ( ⋅ ∣ o ) c(\cdot\mid o) c ( ⋅ ∣ o ) . Its nonnegative superlevel set,
S ⋆ ( o ) : = { x ∈ X ∣ V ∞ ( x ∣ o ) ≥ 0 } , (72) S^{\star}(o) := \{x \in\mathcal{X} \mid V_{\infty}(x \mid o) \ge0\}, \tag*{(72)} S ⋆ ( o ) := { x ∈ X ∣ V ∞ ( x ∣ o ) ≥ 0 } , (72)
is the maximal safe set for the observed environment, that is, the largest set of states from which the observed failure set can be avoided indefinitely under the dynamics and actuation limits (Equation (49) ). Since the environment is static, the observation, and hence the field V ∞ ( ⋅ ∣ o k ) V_{\infty}(\cdot\mid o_k) V ∞ ( ⋅ ∣ o k ) , is held fixed within each planning problem, in the fixed-observation form Equation (57) . New information enters only when the next problem is posed with o k + 1 o_{k+1} o k + 1 .
MPC problem. At every step k k k , the local planner solves the MPC problem Equation (20) over the discretized model Equation (5) , with the quadratic tracking costs Equations (21) and (22) , the stage constraint sets
C i ∣ k = { x ∈ X ∣ c ( x ∣ o k ) ≥ 0 } , i = 0 , … , N − 1 , (73) \mathcal{C}_{i\mid k} = \{x \in\mathcal{X} \mid c(x \mid o_k) \ge0\}, \qquad i = 0,\ldots,N-1, \tag*{(73)} C i ∣ k = { x ∈ X ∣ c ( x ∣ o k ) ≥ 0 } , i = 0 , … , N − 1 , (73)
and a terminal constraint set C f ∣ k \mathcal{C}_{f\mid k} C f ∣ k that remains to be designed. Because x 0 ∣ k = x k x_{0\mid k}=x_k x 0 ∣ k = x k , the constraint at i = 0 i=0 i = 0 checks the measured current state, and the remaining stage constraints keep the predicted states collision-free over the horizon. Following § 5.3 , the ideal terminal set is the maximal safe set for the current observation,
C f ∣ k = S ⋆ ( o k ) , (74) \mathcal{C}_{f\mid k} = \mathcal{S}^{\star}(o_k), \tag*{(74)} C f ∣ k = S ⋆ ( o k ) , (74)
because it is the least restrictive controlled-invariant candidate set. The set S ⋆ ( o k ) \mathcal{S}^{\star}(o_k) S ⋆ ( o k ) is invariant for the continuous-time model, while the planner imposes it on the terminal state of a discrete-time prediction. Provided that the discretized model F Δ F_{\Delta} F Δ reproduces the continuous-time trajectories at the sampling instants, this invariance supports the usual recursive-feasibility argument while imposing no smaller terminal region than necessary. § 6.1.4.4 returns to the consequences of the remaining mismatch between the two models.
Design problem. The goal is to construct, for each incoming observation o k o_k o k , a tractable representation of S ⋆ ( o k ) \mathcal{S}^{\star}(o_k) S ⋆ ( o k ) with three properties. It must be available within a small fraction of the planning period, generalize to observations not seen during offline computation, and provide values and gradients efficiently inside a numerical optimizer. Exact online computation of V ∞ ( ⋅ ∣ o k ) V_{\infty}(\cdot\mid o_k) V ∞ ( ⋅ ∣ o k ) is excluded by the computational complexity of HJ reachability (§ 5.6.3 ), so the method must approximate the mapping from the conditioning input Equation (71) to V ∞ ( ⋅ ∣ o ) V_{\infty}(\cdot\mid o) V ∞ ( ⋅ ∣ o ) at runtime.
Assumptions. The setting uses three assumptions. First, the environment is static, so the occupied region does not change over time, although different parts of it enter the sensing window as the robot moves. Navigation among moving obstacles is treated in Chapter 4. Second, the sensing window is large enough, relative to the robot speed and the degree of occlusion, that every obstacle is observed before the robot can enter its BRT. This is the chapter-specific form of the sensing-adequacy condition Equation (61) , and it depends on the sensing configuration and the environment rather than on the terminal-set estimator alone. Third, the continuous-time model Equation (2) used for the reachability analysis is accurate and its discretization F Δ F_{\Delta} F Δ used for planning is consistent with it, so disturbances, model mismatch, and discretization error are not modeled explicitly in this chapter.
Observation-Conditioned Neural Terminal Constraints
This section first explains why reachability information is placed in the terminal constraint rather than in all stage constraints. It then introduces the hypernetwork representation and its HJ-supervised training, including a loss that emphasizes the safe-set boundary, and finally assembles the optimal control problem.
Reachability-Based Terminal Set Design
The first design decision is where the learned safety information should enter the MPC problem. One option is to replace the geometric stage constraints Equation (73) by reachability-based constraints at every stage. The option pursued here is to keep the geometric stage constraints and to add a single reachability-based constraint at the terminal stage. Two arguments favor this second choice.
The first argument is structural. Within the horizon, the stage constraints keep the sampled predicted states outside the represented obstacle geometry, and only the terminal constraint can guarantee that a safe continuation exists after the horizon. With the maximal safe set S ∗ ( o k ) S^{*}(o_k) S ∗ ( o k ) as the terminal set, as in Equation (74) , the finite-horizon plan cannot end in a state from which collision with the observed obstacles is inevitable. This argument assumes the exact set and a fixed observation, and the learned and observation-updated implementation is discussed in § 6.1.4.4 .
The second argument is computational. Applying the learned function at all N + 1 N+1 N + 1 stages makes the cost of value and gradient queries grow with the horizon, while one terminal evaluation adds a constant cost per optimizer iteration. Under the ideal assumptions above, geometric stage constraints and an exact terminal set already suffice, so learned constraints at every stage would add no safety benefit.
Hypernetwork Architecture
The mapping to be learned, w ↦ V ∞ ( ⋅ ∣ o ) w \mapsto V_{\infty}(\cdot\mid o) w ↦ V ∞ ( ⋅ ∣ o ) , takes the high-dimensional conditioning input Equation (71) and returns a scalar field over the state space. A model realizing this mapping must satisfy two competing requirements. Generalization across a wide range of obstacle configurations requires an expressive model, while the representation queried by the optimizer must remain small because it is evaluated and differentiated many times per planning cycle.
NTC-MPC resolves this conflict with the hypernetwork construction of § 5.9.3 , illustrated in Figure 3.2. A hypernetwork H Ψ H_{\Psi} H Ψ with trainable parameters Ψ \Psi Ψ processes the conditioning input and outputs the parameters of a main network M Θ ( w ) M_{\Theta(w)} M Θ ( w ) ,
Θ ( w ) = H Ψ ( w ) , V ^ Ψ ( x ∣ w ) = M Θ ( w ) ( x ) , (75) \Theta(w) = H_{\Psi}(w), \qquad\widehat{V}_{\Psi}(x \mid w) = M_{\Theta(w)}(x), \tag*{(75)} Θ ( w ) = H Ψ ( w ) , V Ψ ( x ∣ w ) = M Θ ( w ) ( x ) , (75)
so that the learned scalar field V ^ Ψ ( ⋅ ∣ w ) \widehat{V}_{\Psi}(\cdot\mid w) V Ψ ( ⋅ ∣ w ) approximates the value function V ∞ ( ⋅ ∣ o ) V_{\infty}(\cdot\mid o) V ∞ ( ⋅ ∣ o ) and, through its superlevel set, the maximal safe set S ∗ ( o ) S^{*}(o) S ∗ ( o ) . Since the conditioning input is a single-channel SDF image over the sensing window, the hypernetwork consists of a deep convolutional neural network (CNN) backbone followed by a fully connected head whose output dimension equals the number of parameters of the main network. The main network is a small multilayer perceptron (MLP) that takes a state x x x and returns the scalar V ^ Ψ ( x ∣ w ) \widehat{V}_{\Psi}(x \mid w) V Ψ ( x ∣ w ) . Its early layers use sinusoidal activation functions, which suit implicit field regression and yield smooth gradients [94], while the remaining layers use scaled exponential linear unit (SELU) activations.
Figure 2 (PDF p. 63). Architecture of the NTC-MPC local planner. From the current sensor data, an SDF is computed and used both as the geometric stage constraint of the MPC problem and as the conditioning input w k w_k w k of the hypernetwork. The hypernetwork, a convolutional backbone with a fully connected head, outputs the parameters of the compact main network, which represents the estimated value function V ^ Ψ ( ⋅ ∣ w k ) \hat{V}_{\Psi}(\cdot\mid w_k) V ^ Ψ ( ⋅ ∣ w k ) . The nonlinear program (NLP) solver queries the main network for the value and gradient of the terminal constraint at every optimizer iteration, while the hypernetwork is evaluated only once per planning cycle.
This split matches how the planner uses the model. The conditioning input changes once per planning cycle, so the expressive hypernetwork is evaluated once per cycle, outside the optimization loop, and the optimizer queries only the main network, whose gradients are provided by automatic differentiation. Compared with the single-network architecture evaluated in § 6.1.5.2 , the factorization retains an expressive scene encoder while reducing the size of the network queried inside the optimization loop by orders of magnitude [98, 122].
Reachability-Supervised Training
The hypernetwork is trained offline in a supervised fashion, following the pipeline of § 5.9.4 , which Figure 3.3 shows for NTC-MPC. The training data consist of a set of local observations, the conditioning input derived from each of them, and the numerically computed HJ value function over a state-space grid.
Figure 3.3. Training procedure for the NTC model. Each SDF conditioning input w w w from the dataset is processed by the hypernetwork into the main-network parameters Θ ( w ) \Theta(w) Θ ( w ) , and all states of a state-space grid are propagated through the main network to predict the value function over the grid. HJ reachability analysis, using the same SDF as the constraint function c ( ⋅ ∣ w ) c(\cdot\mid w) c ( ⋅ ∣ w ) , provides the numerical target values V ∞ ( ⋅ ∣ w ) V_{\infty}(\cdot\mid w) V ∞ ( ⋅ ∣ w ) . The loss L \mathcal{L} L compares predicted and target value functions, and its gradient updates the hypernetwork parameters Ψ \Psi Ψ . The main-network parameters are outputs of the hypernetwork rather than free variables. The figure shows a single training pair, so the batch and grid indices of Equation (76) are omitted.
The observations are obtained by collecting occupancy grid maps at random poses in a simulation environment. Each map is converted into the corresponding conditioning input w ( m ) = η ( o ( m ) ) w^{(m)} = \eta(o^{(m)}) w ( m ) = η ( o ( m ) ) by the distance transform of Equation (71) , and rotation and mirroring augment the set at no additional sensing cost. For each observation o ( m ) o^{(m)} o ( m ) in the dataset { o ( m ) } m = 1 M \{o^{(m)}\}_{m=1}^{M} { o ( m ) } m = 1 M , the numerical HJ target is computed for the continuous-time model with a grid-based solver as described in § 5.6.3 . The constraint function is the observed c ( ⋅ ∣ o ( m ) ) c(\cdot\mid o^{(m)}) c ( ⋅ ∣ o ( m ) ) of Equation (70) , and the value function is propagated backward in time until it converges. The result approximates the stationary infinite-horizon value function V ∞ ( ⋅ ∣ o ( m ) ) V_{\infty}(\cdot\mid o^{(m)}) V ∞ ( ⋅ ∣ o ( m ) ) of Equation (46) , whose nonnegative region is the maximal safe set. The states at which the targets are available form a uniform grid { x j } j = 1 K ⊂ X \{x_j\}_{j=1}^{K} \subset\mathcal{X} { x j } j = 1 K ⊂ X determined by the state limits and the desired resolution.
Training then uses minibatch gradient-based optimization of the hypernetwork parameters Ψ \Psi Ψ . For each conditioning input in a batch, the hypernetwork generates the main-network parameters and the full state grid is propagated through the main network. The loss then compares the predicted values V ^ Ψ ( x j ∣ w ( m ) ) \hat{V}_{\Psi}(x_j \mid w^{(m)}) V ^ Ψ ( x j ∣ w ( m ) ) with the targets V ∞ ( x j ∣ w ( m ) ) V_{\infty}(x_j \mid w^{(m)}) V ∞ ( x j ∣ w ( m ) ) , which implements the approximation Equation (69) . Only Ψ \Psi Ψ is trainable, since the main network has no free parameters of its own. Every reachability problem is solved offline, and the trained hypernetwork must generalize the mapping to unseen observations. The choice of the loss function determines where in the state space the finite model capacity is emphasized.
Radially weighted regression loss. The natural first choice of training objective is the mean squared error (MSE) between predicted and numerical target values over the grid. MSE assigns the same weight to squared errors everywhere, while the downstream use of the learned field is not uniform. The terminal constraint classifies states as safe or unsafe by the sign of V ^ Ψ \hat{V}_{\Psi} V ^ Ψ , so the classification depends only on the location of the zero level set. A small value error far inside either region may not change this classification, while the same error near the boundary can turn an unsafe state into a predicted-safe one. This mismatch between a uniformly weighted regression objective and a boundary-sensitive use case motivates a weighted objective.
To concentrate accuracy where classification is decided, the training uses the radially weighted mean squared error (RWMSE). Let a training dataset contain M M M observations, evaluated at the K K K grid states, and abbreviate the target values as V j ( m ) : = V ∞ ( x j ∣ w ( m ) ) V_j^{(m)} := V_\infty(x_j \mid w^{(m)}) V j ( m ) := V ∞ ( x j ∣ w ( m ) ) and the predictions as V ^ j ( m ) : = V ^ Ψ ( x j ∣ w ( m ) ) \hat{V}_j^{(m)} := \hat{V}_{\Psi}(x_j \mid w^{(m)}) V ^ j ( m ) := V ^ Ψ ( x j ∣ w ( m ) ) . The loss is
L R W M S E ( Ψ ) = 1 M ∑ m = 1 M 1 K ∑ j = 1 K ω m , j ( V j ( m ) − V ^ j ( m ) ) 2 (76) \mathcal{L}_{\mathrm{RWMSE}}(\Psi) = \frac{1}{M}\sum_{m=1}^{M}\frac{1}{K}\sum_{j=1}^{K}\omega_{m,j}\left(V_j^{(m)}-\hat{V}_j^{(m)}\right)^2 \tag*{(76)} L RWMSE ( Ψ ) = M 1 m = 1 ∑ M K 1 j = 1 ∑ K ω m , j ( V j ( m ) − V ^ j ( m ) ) 2 (76)
ω m , j = 1 + α exp ( − β ( V j ( m ) ) 2 ) , α , β > 0. (77) \omega_{m,j}=1+\alpha\exp\left(-\beta\left(V_j^{(m)}\right)^2\right),\qquad\alpha,\beta>0. \tag*{(77)} ω m , j = 1 + α exp ( − β ( V j ( m ) ) 2 ) , α , β > 0. (77)
The weight ω m , j \omega_{m,j} ω m , j attains its maximum 1 + α 1+\alpha 1 + α exactly on the numerical zero level set, where V j ( m ) = 0 V_j^{(m)}=0 V j ( m ) = 0 , and decays toward one as ∣ V j ( m ) ∣ \lvert V_j^{(m)}\rvert ∣ V j ( m ) ∣ grows. The hyperparameter α \alpha α sets the additional weight assigned near the boundary, and β \beta β determines how quickly that emphasis decays with the magnitude of the target value. The term “radially weighted” refers to the symmetric decay with ∣ V j ( m ) ∣ \lvert V_j^{(m)}\rvert ∣ V j ( m ) ∣ and does not require the value to equal a Euclidean distance in state space. In the limit α → 0 \alpha\to0 α → 0 , RWMSE recovers standard MSE. Emphasizing the boundary is also consistent with invariance analysis, in which Nagumo-type conditions constrain the dynamics precisely on the boundary [56].
Two properties of RWMSE should be stated precisely. First, it remains a global regression objective, because all states contribute and only the relative emphasis shifts toward the boundary. Second, it is neither one-sided nor conservative, since it does not constrain the sign of the prediction error and cannot guarantee that the predicted safe set is contained in the true one. Its contribution is an improved recovery of the zero level set, which § 6.1.5.2 quantifies and § 6.1.5.4 connects to closed-loop success rates.
NTC-MPC Formulation
With these components, the complete planner is obtained as follows. Given the current state x k x_k x k , the current conditioning input w k w_k w k , and the main-network parameters Θ ( w k ) = H Ψ ( w k ) \Theta(w_k)=H_{\Psi}(w_k) Θ ( w k ) = H Ψ ( w k ) computed once for this cycle, NTC-MPC solves
min x 0 ∣ k , … , x N ∣ k ℓ f ∣ k ( x N ∣ k ) + ∑ i = 0 N − 1 ℓ i ∣ k ( x i ∣ k , u i ∣ k ) (78) \underset{x_{0|k},\ldots,x_{N|k}}{\operatorname{min}}\quad\ell_{f|k}(x_{N|k})+\sum_{i=0}^{N-1}\ell_{i|k}(x_{i|k},u_{i|k}) \tag*{(78)} x 0∣ k , … , x N ∣ k min ℓ f ∣ k ( x N ∣ k ) + i = 0 ∑ N − 1 ℓ i ∣ k ( x i ∣ k , u i ∣ k ) (78)
s.t. x 0 ∣ k = x k , (79) \text{s.t.}\quad x_{0|k}=x_k, \tag*{(79)} s.t. x 0∣ k = x k , (79)
x i + 1 ∣ k = F Δ ( x i ∣ k , u i ∣ k ) , i = 0 , … , N − 1 , (80) x_{i+1|k}=F_{\Delta}(x_{i|k},u_{i|k}),\qquad i=0,\ldots,N-1, \tag*{(80)} x i + 1∣ k = F Δ ( x i ∣ k , u i ∣ k ) , i = 0 , … , N − 1 , (80)
u i ∣ k ∈ U , i = 0 , … , N − 1 , (81) u_{i|k}\in\mathcal{U},\qquad i=0,\ldots,N-1, \tag*{(81)} u i ∣ k ∈ U , i = 0 , … , N − 1 , (81)
x i ∣ k ∈ X , i = 0 , … , N , (82) x_{i|k}\in\mathcal{X},\qquad i=0,\ldots,N, \tag*{(82)} x i ∣ k ∈ X , i = 0 , … , N , (82)
c ( x i ∣ k ∣ o k ) ≥ 0 , i = 0 , … , N − 1 , (83) c(x_{i|k}\mid o_k)\ge0,\qquad i=0,\ldots,N-1, \tag*{(83)} c ( x i ∣ k ∣ o k ) ≥ 0 , i = 0 , … , N − 1 , (83)
V ^ Ψ ( x N ∣ k ∣ w k ) ≥ 0 , (84) \hat{V}_{\Psi}(x_{N|k}\mid w_k)\ge0, \tag*{(84)} V ^ Ψ ( x N ∣ k ∣ w k ) ≥ 0 , (84)
with the quadratic tracking costs of Section 2.3. The geometric stage constraints Equation (3.9f) keep the sampled predicted states collision-free within the horizon, and the neural terminal constraint Equation (3.9g) keeps the final predicted state inside the predicted safe set. The corresponding terminal constraint set is
C f ∣ k = { x ∈ X ∣ V ^ Ψ ( x ∣ w k ) ≥ 0 } ≈ S ⋆ ( o k ) . (85) \mathcal{C}_{f|k} = \left\{ x \in\mathcal{X} \mid\widehat{V}_{\Psi}(x \mid w_k) \ge0 \right\} \approx S^{\star}(o_k). \tag*{(85)} C f ∣ k = { x ∈ X ∣ V Ψ ( x ∣ w k ) ≥ 0 } ≈ S ⋆ ( o k ) . (85)
The terminal constraint restricts the admissible terminal states but does not define a navigation objective or preferred direction, so it can be combined with different stage costs, references, and local goals.
From an implementation standpoint, the optimization problem defined by Equation (3.9) is a nonlinear program (NLP) in which the main-network parameters Θ ( w k ) \Theta(w_k) Θ ( w k ) , the sampled SDF, the estimated state, and the reference enter as time-varying parameters rather than as decision variables. The problem structure is identical at every cycle, which allows the solver code to be generated and compiled once, and only the parameter values change when a new observation arrives. Because the main network is composed of elementary differentiable operations, it integrates directly into the NLP computational graph, and automatic differentiation supplies the derivatives required by the solver without finite-difference approximations. Each cycle requires one hypernetwork inference and one NLP solution.
The classical recursive-feasibility argument would apply if the terminal set were the exact maximal safe set for a fixed observation, a terminal feedback law kept that set invariant under the same discrete-time model and constraints used by MPC, and the initial problem were feasible. The implemented scheme does not satisfy all of these premises, so recursive feasibility and collision avoidance are assessed empirically in the next section, and § 6.1.6 states the scope of the results.
Experimental Evaluation
The evaluation measures safe-set accuracy, collision avoidance, solve time, transfer to hardware without fine-tuning, and the computational benefit of the hypernetwork. Generalization is tested in environments and obstacle configurations absent from training.1
Robot Models
Two nonholonomic robot models of increasing complexity are used. They are chosen so that their maximal safe sets differ qualitatively from the geometric free space, which exposes the difference between distance-based and reachability-based constraints. Both are stated in continuous time, which is the form used by the HJ computations of § 6.1.5.2 , while the planners optimize over their forward-Euler discretization, as specified in § 6.1.5.3 .
Dubins car. The first model is a first-order unicycle with constant forward speed and bounded turning rate, commonly called the Dubins car. The state x = ( p x , p y , θ ) x = (p_x, p_y, \theta) x = ( p x , p y , θ ) collects the planar position p ( x ) = ( p x , p y ) p(x) = (p_x, p_y) p ( x ) = ( p x , p y ) and the heading angle θ \theta θ , the control input is the angular velocity u = ω u = \omega u = ω , and the continuous-time dynamics are
x ˙ = [ v cos θ v sin θ ω ] , (86) \dot{x} =
\begin{bmatrix}
v \cos\theta\\
v \sin\theta\\
\omega
\end{bmatrix}, \tag*{(86)} x ˙ = v cos θ v sin θ ω , (86)
with fixed speed v = 0.5 m s − 1 v = 0.5\ \mathrm{m\,s}^{-1} v = 0.5 m s − 1 and actuation limit ω ∈ [ − 0.25 , 0.25 ] r a d s − 1 \omega\in[-0.25, 0.25]\ \mathrm{rad\,s}^{-1} ω ∈ [ − 0.25 , 0.25 ] rad s − 1 . This model describes systems whose forward speed cannot be modulated quickly or at all, such as fixed-wing aircraft or ground vehicles for which braking is unavailable or undesirable. Because the robot cannot stop, a state heading directly toward an obstacle at close range may already admit no collision-free continuation, which makes terminal-set reasoning particularly consequential.
Dynamic unicycle. The second model is a second-order unicycle that captures the velocity dynamics of differential-drive and skid-steer platforms. The state x = ( p x , p y , θ , v , ω ) x = (p_x, p_y, \theta, v, \omega) x = ( p x , p y , θ , v , ω ) additionally contains the linear and angular velocities, the control input u = ( a v , a ω ) u = (a_v, a_\omega) u = ( a v , a ω ) consists of the linear and angular accelerations, and the dynamics are
x ˙ = [ v cos θ v sin θ ω a v a ω ] , (87) \dot{x} =
\begin{bmatrix}
v\cos\theta\\
v\sin\theta\\
\omega\\
a_v \\
a_\omega
\end{bmatrix}, \tag*{(87)} x ˙ = v cos θ v sin θ ω a v a ω , (87)
with state and actuation limits v ∈ [ − 1.0 , 1.0 ] m s − 1 v \in[-1.0, 1.0]\ \mathrm{m\,s}^{-1} v ∈ [ − 1.0 , 1.0 ] m s − 1 , ω ∈ [ − 0.5 , 0.5 ] r a d s − 1 \omega\in[-0.5, 0.5]\ \mathrm{rad\,s}^{-1} ω ∈ [ − 0.5 , 0.5 ] rad s − 1 , a v ∈ [ − 0.25 , 0.25 ] m s − 2 a_v \in[-0.25, 0.25]\ \mathrm{m\,s}^{-2} a v ∈ [ − 0.25 , 0.25 ] m s − 2 , and a ω ∈ [ − 1.0 , 1.0 ] r a d s − 2 a_\omega\in[-1.0, 1.0]\ \mathrm{rad\,s}^{-2} a ω ∈ [ − 1.0 , 1.0 ] rad s − 2 . Here the safe set depends on the velocities through braking and turning distances, in direct analogy to the braking example of § 5.2.3 , and its five-dimensional domain approaches the practical limit of grid-based HJ solvers (§ 5.6.3 ).
Learning and Computational Evaluation
Datasets and targets. The training observations were collected in a simulated warehouse environment (Figure 3.6 , left). The dataset was built from 2500 local occupancy grid maps of size 6 × 6 m 6 \times6\ \mathrm{m} 6 × 6 m (100 × 100 100 \times100 100 × 100 cells at 0.06 m 0.06\ \mathrm{m} 0.06 m resolution), recorded at random poses. Each original map and its vertically mirrored version were retained in four orientations, separated by 90 ∘ 90^\circ 9 0 ∘ , which yielded eight variants per map and 20 000 SDF conditioning inputs in total. For the Dubins car, the numerical HJ targets were computed on a 100 × 100 × 20 100 \times100 \times20 100 × 100 × 20 grid over ( p x , p y , θ ) (p_x, p_y, \theta) ( p x , p y , θ ) , and for the dynamic unicycle on a 50 × 50 × 7 × 7 × 7 50 \times50 \times7 \times7 \times7 50 × 50 × 7 × 7 × 7 grid over the five-dimensional state space. The value functions were propagated until temporal convergence with the hj_reachability toolbox2 . The 20 000 conditioning inputs were divided into 80% for training and 20% for validation after the augmentation, so rotated or mirrored variants of the same original map can appear in both sets. The validation metrics thus assess recovery of the safe-set boundary on held-out variants rather than transfer to unseen scenes, and generalization to new geometry is assessed separately through the unseen house environment of the closed-loop study in § 6.1.5.4 .
Figure 3.6. Gazebo simulation environments. Left: warehouse environment, from which all training observations are collected. Right: house environment, used exclusively for evaluation to assess generalization under a distribution shift in obstacle geometry.
Model and training configuration. Table 3.1 lists the hypernetwork and main-network configuration shared by both robot models, and Table 3.2 lists the entries that differ between them. In the main network, the first three hidden layers use sinusoidal activations and the remaining ones use SELU. The two models differ only in the dimension of the state space, which determines the number of main-network inputs, the resolution of the HJ target grid, and the number of main-network parameters, and in the training schedule.
Table 3.1. NTC-MPC configuration shared by both robot models.
Table 3.2. NTC-MPC configuration specific to each robot model.
Qualitative results. Figure 3.4 shows a validation observation for the Dubins car. The unsafe region extends beyond the obstacles, especially below them, where the approaching constant-speed robot cannot turn away in time. The learned boundary closely follows the numerical HJ boundary at the displayed heading, capturing information absent from the SDF.
Figure 3.4. Learned safe set for a sample observation from the validation dataset (Dubins car). (a) Local occupancy grid o o o . (b) The corresponding SDF c ( ⋅ ∣ o ) c(\cdot\mid o) c ( ⋅ ∣ o ) , whose zero level set (black) outlines the obstacles. (c) Slice of the learned value function V ^ Ψ ( ⋅ ∣ w ) \hat{V}_{\Psi}(\cdot\mid w) V ^ Ψ ( ⋅ ∣ w ) at heading θ = π / 2 \theta= \pi/2 θ = π /2 , that is, for a robot at the marked position (dart) moving upward. Red shading marks the states predicted to be unsafe. The predicted safe-set boundary V ^ Ψ = 0 \hat{V}_{\Psi} = 0 V ^ Ψ = 0 (green) closely follows the numerical HJ boundary V ∞ = 0 V_{\infty} = 0 V ∞ = 0 (dashed). The unsafe region extends beyond the obstacle outlines, most visibly below the obstacles, which the robot approaches head-on at this heading.
Effect of the RWMSE loss. To isolate the effect of the loss function, training was repeated with the standard MSE loss under identical settings and weight initialization. Since loss values of differently weighted objectives are not directly comparable, the comparison used two task-relevant metrics on the validation set. The first is the intersection over union (IoU) between the predicted safe set and the numerical HJ safe set, that is, the ratio between the volume of their intersection and the volume of their union over the evaluation grid. The second is the confusion matrix of the induced classification of states as safe or unsafe. Figure 3.5 presents the results for the Dubins car. RWMSE attained a higher IoU throughout training and converged to approximately 0.94, compared with 0.92 for MSE. The confusion matrices show reductions in both error types, and in particular the fraction of all states that were numerically unsafe but predicted safe decreased from 2.0% to 1.6%. This improvement required no additional data and did not change the architecture or online inference cost.
Figure 3.5. Effect of the training objective for the Dubins car model, evaluated on the validation set. (a) Safe-set IoU over training epochs for models trained with RWMSE and MSE under identical settings and initialization. (b), (c) Confusion matrices of the safe/unsafe classification for RWMSE and MSE, with entries in percent of all grid states. RWMSE yields a consistently higher IoU and fewer misclassifications on both sides of the boundary.
Online cost of the learned mapping. The trained hypernetwork requires about 2 ms per inference on the GPU for both robot models. Solving the corresponding HJ problem numerically for a single observation takes about 1 s for the Dubins car and 2 s for the dynamic unicycle on the same hardware. The learned model accelerates the mapping from observation to safe set by roughly three orders of magnitude, which turns an offline analysis tool into a component that can be used online in planning.
Architecture comparison. The two-network design is compared with a single network conditioned on the SDF input. For this purpose, a single MLP with three hidden layers of 512 neurons is considered, following the parameter-conditioned reachability approach [81], in which the SDF is treated as a vector of “virtual states” appended to the robot state at the network input. With a 100 × 100 100 \times100 100 × 100 SDF, the joint input has more than 10 4 10^{4} 1 0 4 dimensions, roughly three orders of magnitude more than the parameter dimensions reported in [81], and the model has about 5.6 × 10 6 5.6 \times10^{6} 5.6 × 1 0 6 parameters, the same order as the hypernetwork.
The comparison identifies two prohibitive costs. Online, the entire conditioned network lies inside the optimization loop, so every solver iteration evaluates the full network and propagates state derivatives through its approximately 5.6 × 10 6 5.6 \times10^{6} 5.6 × 1 0 6 parameters. Using this model as the terminal constraint for the Dubins car with N = 10 N = 10 N = 10 requires about 1.6 s per MPC solution, compared with about 5.5 ms for NTC-MPC, a reduction in solve time by more than two orders of magnitude. Offline, training requires propagating the full state-space grid through the model for every observation. The intermediate activations of the large joint network then occupy about 9 GB of memory per observation, compared with about 0.7 GB for the hypernetwork and main network combined, because only the compact main network is applied to the grid.
Planner Baselines and Implementation
The evaluation compares three local planners with the same costs, dynamics, discretization, and solver implementation. They differ only in the safety constraints under study, which isolates the effect of the constraint design. The first baseline, SDF-MPC, uses the observed geometric constraint at every stage including the terminal one,
c ( x i ∣ k ∣ o k ) ≥ 0 , i = 0 , … , N , (88) c(x_{i\mid k} \mid o_k) \ge0, \qquad i = 0,\ldots,N, \tag*{(88)} c ( x i ∣ k ∣ o k ) ≥ 0 , i = 0 , … , N , (88)
and thus represents the standard distance-constrained MPC planner. The second baseline, DCBF-MPC, additionally shapes the rate at which the obstacle distance may decrease, using the discrete-time CBF (DCBF) constraint of [63 ] ,
c ( x i ∣ k ∣ o k ) − c ( x i − 1 ∣ k ∣ o k ) ≥ − γ c ( x i − 1 ∣ k ∣ o k ) , i = 1 , … , N , (89) c(x_{i|k} \mid o_k) - c(x_{i-1|k} \mid o_k) \geq-\gamma c(x_{i-1|k} \mid o_k), \qquad i = 1,\ldots,N, \tag*{(89)} c ( x i ∣ k ∣ o k ) − c ( x i − 1∣ k ∣ o k ) ≥ − γ c ( x i − 1∣ k ∣ o k ) , i = 1 , … , N , (89)
with decay parameter γ ∈ ( 0 , 1 ] \gamma\in(0,1] γ ∈ ( 0 , 1 ] . Each predicted step may reduce the obstacle distance by at most the fraction γ \gamma γ of its current value, which slows the approach toward obstacles. The measured current state x 0 ∣ k = x k x_{0|k}=x_k x 0∣ k = x k is checked against the geometric constraint in SDF-MPC and NTC-MPC. For DCBF-MPC, its nonnegative distance value serves as the initial condition of a recursion, because Equation (89) implies c ( x i ∣ k ∣ o k ) ≥ ( 1 − γ ) c ( x i − 1 ∣ k ∣ o k ) c(x_{i|k} \mid o_k) \geq(1-\gamma)c(x_{i-1|k} \mid o_k) c ( x i ∣ k ∣ o k ) ≥ ( 1 − γ ) c ( x i − 1∣ k ∣ o k ) and thereby propagates a nonnegative predicted distance to all later stages. The proposed method, NTC-MPC, solves Equation (3.9) with the geometric constraint for stages i = 0 , … , N − 1 i=0,\ldots,N-1 i = 0 , … , N − 1 and the neural terminal constraint Equation (3.9g) at stage N N N . To quantify the contribution of the loss function in closed loop, NTC-MPC is evaluated with models trained with both RWMSE and MSE.
All planners are implemented in the CasADi framework [138] with IPOPT as the NLP solver and deployed as a ROS 2 package [139], and the solver code is generated and compiled ahead of deployment. The dynamics are discretized by the forward Euler method with prediction interval Δ t = 0.1 s \Delta t=0.1\,\mathrm{s} Δ t = 0.1 s , and the planner runs at 10 Hz. The hypernetwork runs as a PyTorch model on the GPU, while the main network is expressed with CasADi functions so that it becomes part of the NLP computational graph. Its parameters, together with the SDF samples, the estimated state, and the reference, enter the solver as time-varying parameters.
Simulation Experiments
Setup. The closed-loop evaluation used 3D Gazebo simulations with both robot models and the two environments shown in Figure 3.6 . The models were trained exclusively on warehouse data, and the house environment provided different obstacle geometry and was used only for evaluation. In each experiment, the robot navigated from an initial pose to a goal pose using only local observations, which corresponds to the case in which a global planner supplies two consecutive waypoints. For each robot model and environment, 100 simulations with randomly placed obstacles of different shapes and sizes were run for all planners and horizon lengths N ∈ { 5 , 10 , 20 , 30 } N \in\{5, 10, 20, 30\} N ∈ { 5 , 10 , 20 , 30 } . A run was successful if the robot reached the goal within a fixed time limit without colliding with an obstacle. The two reported metrics were success rate and NLP computation time.
Success rates. Figure 3.7 shows the success rates, from which three findings follow. First, the performance of the baselines deteriorated considerably as the horizon became shorter, and SDF-MPC fell below 20% success at N = 5 N = 5 N = 5 . NTC-MPC, in contrast, maintained higher success rates across the evaluated horizons and exceeded the best baseline by up to 52 percentage points at the shortest horizon. This trend is consistent with the structural argument of § 6.1.4.1 , since the terminal constraint carries an approximation of infinite-horizon reachability information that a short geometric horizon lacks. Second, the advantage persisted in the unseen house environment with a modest reduction in success rates, which provides evidence of generalization beyond the warehouse training environment. Third, the RWMSE-trained model consistently matched or outperformed its MSE-trained counterpart, which links the improved boundary recovery in § 6.1.5.2 to better closed-loop outcomes. The experiments did not isolate the causes of the remaining NTC-MPC failures, although approximation errors and local-observability limits are two plausible mechanisms discussed in § 6.1.6 .
Figure 3.7. Success rates in the Monte Carlo simulation study for the two robot models (columns) and the two environments (rows), with 100 runs per configuration. The models are trained on warehouse data only and evaluated in both environments. The performance of the distance-based baselines degrades considerably as the prediction horizon becomes shorter, while the NTC-MPC method maintains higher success rates across all horizon lengths. The RWMSE-trained model also consistently matches or outperforms its MSE-trained counterpart.
Computation times. Figure 3.8 reports the NLP computation times. Depending on the robot model and the horizon, the mean solve time of NTC-MPC ranged from 5 ms to 13 ms and remained considerably below the 100 ms planning period. Relative to SDF-MPC, the neural terminal constraint added an approximately constant offset as the horizon grew, which is consistent with the addition of a single learned constraint. DCBF-MPC, in contrast, imposes a distance-rate constraint at every predicted step, so its computation time grew faster with the horizon and exceeded that of NTC-MPC at the longest tested horizon, N = 30 N = 30 N = 30 .
Figure 3.8. NLP solve times of the three planners for (a) the Dubins car and (b) the dynamic unicycle as functions of the horizon length, pooled over both environments. Each box spans the interquartile range of the per-run mean solve times of the successful runs, the line marks the median, and the whiskers extend to 1.5 times the interquartile range. The neural terminal constraint adds an approximately horizon-independent offset over SDF-MPC, while the stage-wise DCBF-MPC constraints scale faster with the horizon. All values remain considerably below the 100 ms planning period.
Hardware Experiments
Setup. To assess transfer from simulation to a physical platform, the planners were deployed on a Continental delivery robot, a differential-drive platform operated at constant forward speed and modeled as the Dubins car of Equation (86) . The robot used a 3D LiDAR for localization and local-costmap construction, and all computation ran onboard on an Intel NUC11PHi7 mini PC with an Intel i7-1165G7 CPU, 32 GB of RAM, and an RTX 2060 GPU. This platform is also used in the hardware experiments of the later chapters. The task mirrored the simulation setting, in which the robot must reach a goal waypoint behind an unknown arrangement of static obstacles using only local observations. Ten obstacle configurations were tested (Figure 3.9 ), and each planner attempted every configuration for horizon lengths N ∈ { 5 , 10 , 20 , 30 } N \in\{5, 10, 20, 30\} N ∈ { 5 , 10 , 20 , 30 } . The hypernetwork trained on simulated warehouse data was transferred to the robot without fine-tuning.
Figure 3.9. The ten static obstacle configurations used in the hardware experiments, viewed from the external camera. The robot starts below the lower edge and must reach a waypoint near the upper edge of the scenario image.
Results. Table 3.3 summarizes the outcomes, which reproduce the pattern observed in simulation. With short horizons, the baselines failed in almost all configurations, while NTC-MPC succeeded in 80% of the configurations at N = 5 N = 5 N = 5 and in 90% from N = 10 N = 10 N = 10 onward, at computation times comparable to those of the baselines. Figure 3.10 examines one representative configuration for N = 10 N = 10 N = 10 , corresponding to a 1 s look-ahead. In this configuration, both baselines drove toward the obstacle, and their observed obstacle distance c ( x k ∣ o k ) c(x_k \mid o_k) c ( x k ∣ o k ) remained positive until collision was imminent. For NTC-MPC, the predicted terminal value V ^ Ψ ( x N ∣ k ∣ w k ) \hat{V}_{\Psi}(x_{N\mid k} \mid w_k) V ^ Ψ ( x N ∣ k ∣ w k ) approached zero earlier, and the planner steered around the obstacle before the obstacle distance at the current state alone indicated imminent contact, which is the intended mechanism of the terminal constraint.
Table 3.3. Hardware experiment results with the Dubins car model over the ten obstacle configurations of Figure 3.9 .
Figure 3.10. Representative hardware experiment with the Dubins car model and horizon N = 10 N = 10 N = 10 (1 s). The upper row shows the overlaid robot motion for the three planners, where both baselines collide with the obstacle (red) while NTC-MPC avoids it (green). The plots show the time evolution of the predicted terminal value V ^ Ψ ( x N ∣ k ∣ w k ) \hat{V}_{\Psi}(x_{N|k} \mid w_k) V ^ Ψ ( x N ∣ k ∣ w k ) and of the observed obstacle distance c ( x k ∣ o k ) c(x_k \mid o_k) c ( x k ∣ o k ) , with the zero level marked by the dotted line. In this configuration, the obstacle distance of the baselines remains positive until shortly before the collision, while NTC-MPC begins to avoid the obstacle when its terminal value approaches zero, several seconds earlier.
Discussion
The experiments show that observation-conditioned neural terminal sets improve collision avoidance, especially at short horizons. The following limitations define the scope of this empirical result and motivate the next chapters.
Scope of guarantees. The classical recursive-feasibility argument does not apply to the implemented scheme, because the terminal set is a learned approximation whose error is not one-sided, the HJ targets and the MPC problem use different time discretizations, and the observation is updated between problems. A state inside the numerical BRT may thus be predicted safe, so recursive feasibility and collision avoidance are demonstrated empirically under the assumptions of § 6.1.3 rather than guaranteed [140, 92], and RWMSE reduces boundary misclassification without being a certificate. This is the central trade-off of the method, because numerical reachability targets are available only offline, while the representation evaluated in real time is approximate. The next chapter excludes one class of this approximation error by construction, and Chapter 8 discusses how the remaining error can be bounded.
Structural limitation of direct regression. Direct regression imposes no relation between V ^ Ψ \hat{V}_{\Psi} V ^ Ψ and the observed SDF, so a sufficiently large error can classify even a state inside an observed obstacle as safe. Chapter 4 addresses this limitation by subtracting a nonnegative learned residual from the SDF, enforcing failure-set exclusion by construction, and extends the terminal constraint to predicted moving geometry.
Local observability. Some failure modes are inherent to local planning rather than to the safety representation. An occluded obstacle enters the observation only when it is revealed, possibly at close range. If the sensing-adequacy assumption is violated at that moment, infeasibility can result regardless of how the terminal set was obtained. Similarly, the local decision to pass an obstacle on the left or on the right may appear symmetric even though one of the two options leads into a dead end beyond the sensing window. Such situations require cooperation with a global planner or explicit reasoning about unobserved space, both of which lie outside the scope of a local terminal constraint.
Scalability of supervision. The offline stage inherits the dimensionality limit of grid-based HJ solvers (§ 5.6.3 ), and the five-dimensional unicycle already requires substantial computation per observation. Since supervision is generated offline, other sources of targets could take the place of the grid solver, including system decomposition [78] and neural HJ solvers [85]. The grid-free supervision of Chapter 7 is an option only for robot models with control-affine dynamics and polytopic input constraints, which NTC-MPC does not assume in general. The accuracy of these targets limits the accuracy that can be expected from the learned model. Beyond mobile robots, a hypernetwork that converts a high-dimensional context into a compact constraint for an optimizer is not specific to navigation, and it may serve other applications that require complex terminal sets in real time.
Summary
NTC-MPC uses a hypernetwork to produce a compact terminal value function from each local SDF, with RWMSE training focused near the safety boundary. In simulation, success rates exceeded the best baseline by up to 52 percentage points at mean solve times of 5 ms to 13 ms. The benefit persisted in an unseen environment and on hardware without fine-tuning, and the hypernetwork reduced the MPC solve time by more than two orders of magnitude compared with the evaluated single-network architecture. These results address question 1 for static-environment MPC. Chapter 4 adds structural failure-set exclusion and extends the approach to moving obstacles.
Neural Terminal Constraints in Dynamic Environments
This chapter presents residual neural terminal constraint MPC (RNTC-MPC), based on the author’s paper [101] at the Conference on Robot Learning (CoRL) 2025. The method extends NTC-MPC to predicted obstacle motion and represents the terminal value as the predicted SDF minus a nonnegative learned residual, which excludes the predicted terminal failure set regardless of approximation error. The method addresses moving obstacles (question 2), structural safety properties (question 3), and real-time MPC (question 1).
Motivation
A robot cannot always rely on other agents to help avoid collisions. Fast riders in public spaces or human-operated forklifts in warehouses may not yield within the available time, leaving a nonholonomic robot with limited actuation to avoid them [3, 1]. This chapter treats such agents as non-interactive moving obstacles , whose motion is predicted but not influenced.
This setting changes the terminal-constraint problem of Chapter 3 in one essential respect. The safe set is no longer a fixed region attached to the observed geometry, but a region that travels and deforms with the obstacles. The backward reachable tube of each obstacle moves with that obstacle and extends along the obstacle velocity relative to the robot , so it contains states that are collision-free at present but from which the robot can no longer escape before the obstacle arrives. The set imposed at the end of the horizon consequently refers to geometry that has not yet been observed, and it must contain the states from which the predicted failure set can still be avoided once the horizon ends. Constructing this set requires a motion prediction for the obstacles, a reachability analysis over the predicted evolution, and a repetition of both steps whenever new observations arrive. Figure 4.1 illustrates the effect at two consecutive planning steps. A planner whose constraints are formed from the current observation continues straight ahead while the crossing obstacle is still clear of the reference path, and one step later its state lies inside the unsafe region. A terminal constraint that refers to the predicted geometry becomes active one step earlier, so the planner turns away in time and retains a feasible continuation.
Figure 4.1. Effect of the terminal constraint on an MPC local planner among moving obstacles, shown at two consecutive planning steps. The robot tracks the reference path to the right at constant speed and with a limited turning rate, while an obstacle crosses that path from the front left. Each red region collects the states from which a collision can no longer be avoided under the actuation limits. It extends along the obstacle velocity relative to the robot, so it is not aligned with the drawn velocity arrow, and the region at the terminal instant is the region at the current instant displaced and rotated according to the obstacle motion over the horizon. In the lower row the dotted outlines mark the positions at step k k k . Left: constraints formed from the current observation refer only to the unsafe region at the current instant, X ∖ S 0 ∣ k \mathcal{X} \setminus S_{0|k} X ∖ S 0∣ k , so the planner continues straight ahead at step k k k . At step k + 1 k+1 k + 1 its state lies inside that region, where continued straight motion and both extreme steering maneuvers end in the predicted obstacle. Right: the terminal constraint x N ∣ k ∈ S N ∣ k x_{N|k} \in S_{N|k} x N ∣ k ∈ S N ∣ k of RNTC-MPC refers to the predicted geometry and is already active at step k k k , so the planner turns away and its plan remains feasible one step later.
A second difficulty, already identified in § 6.1.6 , concerns the learned representation itself. The terminal function of Chapter 3 is unconstrained, and nothing relates its predicted safe set to the observed geometry, so a sufficiently large approximation error can lead the model to classify a state inside a represented obstacle as safe. Moving obstacles aggravate this concern, because the model must now generalize over sequences of predicted geometries rather than over single snapshots, and its errors combine with those of the motion prediction. The residual parameterization of § 5.9.2 removes this particular error mode. RNTC-MPC computes the SDF of the predicted geometry numerically, which
the stage constraints already require, and learns only the nonnegative residual by which the value function lies below it. The learned terminal constraint then admits no state that the predicted terminal SDF rejects, regardless of the residual approximation error.
RNTC-MPC retains the hypernetwork and MPC interface of Chapter 3. The following sections develop its predicted SDF input, residual terminal constraint, and sign-sensitive training loss, then evaluate approximation quality and closed-loop performance.
Related Work
This section reviews the work most closely related to MPC-based collision avoidance among moving obstacles. The static-environment counterpart was reviewed in § 6.1.2 , and the broader context is surveyed in Chapter 1.
Interactive planners assume that surrounding agents contribute to avoidance. Optimal reciprocal collision avoidance divides responsibility between each pair [26]. MPC extensions derive decentralized velocity constraints [141], model human responses in bilevel optimization [142], or refine diffusion-based predictions [143]. Learned environment models also supply interaction-aware predictions [50]. These methods can avoid the freezing that arises when every agent is treated as unyielding in a dense crowd [51]. Their interaction assumptions, however, do not cover the non-interactive encounters considered here.
MPC planners for non-interactive moving obstacles enforce a minimum distance along the predicted obstacle motion through distance functions [31, 32, 47], velocity obstacles [144], or discrete-time CBF conditions [63 ] . None of these formulations introduces a terminal set. They rely on the finite prediction horizon instead and lengthen it when the closed-loop behavior is unsatisfactory, which increases the computational cost and still leaves the time beyond the final stage unconstrained. This chapter follows the complementary approach and keeps the horizon short, while the reasoning about the time beyond the horizon is concentrated in a terminal set that is constructed in real time. The three constraint families above are the natural baselines, and § 6.2.5 compares RNTC-MPC with a representative of each.
Obtaining such a terminal set by reachability analysis is more demanding in the dynamic setting than in the static one. With static geometry, one backward propagation converges to a stationary safe set that remains valid for as long as the observation does. A moving failure set instead yields a time-dependent value function, which must be propagated backward from the terminal instant over the entire predicted evolution and recomputed whenever the prediction itself changes. The scalable formulations discussed in § 6.1.2 reduce parts of this cost but still require the environment evolution to be specified before the computation. Parameter-conditioned reachability solves the problem once for a family of parameter values and can treat obstacle velocities as such parameters [81, 82, 83]. However, the augmented problem grows with each additional parameter, while a scene with several moving obstacles has many degrees of freedom and a varying number of obstacles. The observation-conditioned approach of Chapter 3 [100] handles high-dimensional observations, but only for static geometry and without any architectural constraint on the approximation error. RNTC-MPC extends that approach to time-varying geometry and additionally enforces predicted-failure-set exclusion by construction, so that one property of the learned constraint follows from the architecture and not from the training outcome, which is the separation that the learned-certificate literature emphasizes [92, 10]. A complementary approach, taken in Chapter 6, formulates the reachability problem in relative coordinates, so that each pairwise collision set becomes stationary.
Problem Statement
This section formalizes local navigation among moving obstacles within the MPC formulation of § 5.3 . The goal is to design a terminal constraint that represents the time-varying safe set at the end of the prediction horizon.
Setting. The robot and MPC models are those of § 6.1.3 . HJ analysis uses the continuous-time model x ˙ = f ( x , u ) \dot{x}=f(x,u) x ˙ = f ( x , u ) with compact U \mathcal{U} U , and MPC predicts x i + 1 ∣ k = F Δ ( x i ∣ k , u i ∣ k ) x_{i+1|k}=F_{\Delta}(x_{i|k},u_{i|k}) x i + 1∣ k = F Δ ( x i ∣ k , u i ∣ k ) with prediction interval Δ t > 0 \Delta t>0 Δ t > 0 . Let t k t_k t k denote the time of planning update k k k , where the time between two consecutive planning updates may differ from Δ t \Delta t Δ t . At update k k k , observation o k o_k o k supplies estimated positions p k n ∈ R 2 p_k^n\in\mathbb{R}^2 p k n ∈ R 2 and velocities v k n ∈ R 2 v_k^n\in\mathbb{R}^2 v k n ∈ R 2 for obstacles n n n within the sensing window. Under the constant-velocity model, their predicted positions are
p ^ i ∣ k n = p k n + i Δ t v k n , i = 0 , … , N . (90) \hat{p}_{i|k}^n=p_k^n+i\Delta t\,v_k^n,\qquad i=0,\ldots,N. \tag*{(90)} p ^ i ∣ k n = p k n + i Δ t v k n , i = 0 , … , N . (90)
Let A i ∣ k ⊂ R 2 \mathcal{A}_{i|k}\subset\mathbb{R}^2 A i ∣ k ⊂ R 2 denote the region predicted to be occupied at stage i i i , that is, the union of the obstacle footprints placed at the predicted positions Equation (90) and inflated by the robot footprint and a safety margin, exactly as in Equation (70) . With p ( x ) p(x) p ( x ) denoting the workspace position of the robot, the predicted constraint function at stage i i i is the SDF-based function
c i ∣ k ( x ) : = sd A i ∣ k ( p ( x ) ) , i = 0 , … , N , (91) c_{i|k}(x):=\operatorname{sd}_{\mathcal{A}_{i|k}}\bigl(p(x)\bigr),\qquad i=0,\ldots,N, \tag*{(91)} c i ∣ k ( x ) := sd A i ∣ k ( p ( x ) ) , i = 0 , … , N , (91)
so that c i ∣ k ( x ) ≥ 0 c_{i|k}(x)\geq0 c i ∣ k ( x ) ≥ 0 indicates a nonnegative distance to the predicted obstacles at that stage and c i ∣ k ( x ) < 0 c_{i|k}(x)<0 c i ∣ k ( x ) < 0 defines its failure set. Unlike the single static constraint in Chapter 3, this sequence changes with the predicted geometry. The robot still tracks a reference supplied by a global planner using local information.
The time-varying terminal safe set. Whether the predicted obstacles can still be avoided after the horizon is represented through the time-varying HJ formulation of § 5.6.2 . Consider the avoidance problem for the undisturbed continuous-time dynamics Equation (2) , with the constraint evolution over the MPC horizon given by Equation (91) and continued over the HJ reachability horizon by the same motion model. Because the geometry continues to evolve, the value function retains an explicit time argument. The predicted geometry available at update k k k is collected in a conditioning input w k w_k w k , which is defined precisely in § 6.2.4.1 . Let V N ∣ k ( x ) : = V ( x , t k + N Δ t ) V_{N|k}(x):=V(x,t_k+N\Delta t) V N ∣ k ( x ) := V ( x , t k + N Δ t ) denote the value function at the terminal instant under this modeled evolution. Its nonnegative superlevel set,
S N ∣ k : = { x ∈ X ∣ V N ∣ k ( x ) ≥ 0 } , (92) \mathcal{S}_{N|k}:=\left\{x\in\mathcal{X}\mid V_{N|k}(x)\geq0\right\}, \tag*{(92)} S N ∣ k := { x ∈ X ∣ V N ∣ k ( x ) ≥ 0 } , (92)
contains the states from which the predicted failure set can be avoided throughout the HJ horizon under the modeled dynamics and actuation limits. In the numerical construction used for supervision, that horizon is extended until the value at the reference instant has converged to the chosen tolerance (§ 6.2.4.4 ). The set Equation (92) plays the role that S ⋆ ( o k ) S^\star(o_k) S ⋆ ( o k ) played in Chapter 3, but it refers to predicted future geometry and not the current observation.
Design problem. The goal is to construct, at every update k k k , a representation V ^ Ψ ( ⋅ ∣ w k ) \widehat{V}_{\Psi}(\cdot\mid w_k) V Ψ ( ⋅ ∣ w k ) of the terminal value function V N ∣ k V_{N|k} V N ∣ k with the following properties. As in Chapter 3, it must be available within a small fraction of the control period, support efficient value and gradient evaluations inside a numerical optimizer, and generalize to obstacle configurations that were not seen offline. In addition, it must satisfy the predicted-failure-set exclusion property
{ x ∣ V ^ Ψ ( x ∣ w k ) ≥ 0 } ⊆ { x ∣ c N ∣ k ( x ) ≥ 0 } (93) \left\{x \mid\widehat{V}_{\Psi}(x \mid w_k) \ge0\right\} \subseteq\left\{x \mid c_{N|k}(x) \ge0\right\} \tag*{(93)} { x ∣ V Ψ ( x ∣ w k ) ≥ 0 } ⊆ { x ∣ c N ∣ k ( x ) ≥ 0 } (93)
by construction, which addresses the structural weakness of direct regression.
Assumptions. The formulation rests on three assumptions. First, the perception module provides sufficiently accurate position and velocity estimates for every represented obstacle within the sensing window, while perception itself lies outside the scope of this dissertation. Second, the obstacles are non-interactive, and the constant-velocity model Equation (90) adequately predicts their motion both within the MPC horizon and over the HJ horizon used to define the target. This modeling assumption is revisited in Section 4.6. Third, the sensing window is sufficiently large relative to the robot and obstacle speeds and to the update period, so that the cross-update condition Equation (62) can be satisfied. Newly detected obstacles then enter the observation near its boundary rather than immediately next to the robot.
Residual Neural Terminal Constraints
The method combines predicted-geometry conditioning, a residual hypernetwork, and time-varying HJ supervision with a sign-sensitive loss. These components are then assembled into the MPC problem.
Predicted Terminal Safe Sets
The first design question is what information should condition the terminal-set representation. In Chapter 3, the SDF of the current observation sufficed because the failure set was static. Here, V N ∣ k V_{N|k} V N ∣ k depends on the failure-set evolution from the terminal instant through the specified HJ horizon, which cannot be observed and must be supplied by a motion model. Under the constant-velocity model Equation (90) , the obstacle positions and velocities at the terminal instant determine the modeled future. For well-separated obstacles, two distinct geometry snapshots near that instant encode these quantities. The later snapshot gives the positions, and the displacement between the two snapshots, divided by their known temporal separation, gives the velocities. The conditioning input is formed from selected snapshots at the end of the predicted SDF sequence,
w k : = ( c N − q 1 ∣ k , … , c N − q L ∣ k ) , q 1 > ⋯ > q L = 0 , (94) w_k := \left(c_{N-q_1|k}, \ldots, c_{N-q_L|k}\right), \qquad q_1 > \cdots> q_L = 0, \tag*{(94)} w k := ( c N − q 1 ∣ k , … , c N − q L ∣ k ) , q 1 > ⋯ > q L = 0 , (94)
where the SDFs are sampled on a regular grid over the sensing window, L L L is the number of snapshots, and the fixed nonnegative integers q 1 , … , q L q_1,\ldots,q_L q 1 , … , q L specify their lags in prediction steps. Two snapshots with a nonzero temporal separation suffice when obstacle correspondence is unambiguous, and § 6.2.5.2 states the snapshot count and the lags used in the experiments. Motion models that include acceleration or higher-order effects may require more snapshots or additional predicted quantities. Definition Equation (94) is the concrete form of the conditioning input Equation (63) for this chapter, with the map η \eta η consisting of the motion prediction Equation (90) followed by the distance transform of the predicted geometry. The model receives predicted geometry rather than the current observation.
A second property of the mapping w k ↦ V N ∣ k w_k \mapsto V_{N|k} w k ↦ V N ∣ k is essential for training. Under the time-invariant robot dynamics and the constant-velocity obstacle model used here, this mapping is invariant to a common shift in absolute time. The value function at an instant τ \tau τ depends on the geometry at fixed times relative to τ \tau τ , and not on the numerical value of τ \tau τ itself. The same mapping can consequently be trained on snapshot sequences ending at an arbitrary reference instant and evaluated on predicted sequences ending at t k + N Δ t t_k + N\Delta t t k + N Δ t . One trained model thus applies to any MPC horizon with N ≥ q 1 N \ge q_1 N ≥ q 1 , provided that the same temporal separations and motion model are used. The absolute terminal time is not an input to the model, and the obstacle prediction enters only through the SDF sequence.
Structure-Preserving Residual Parameterization
The second design decision is the structure of the learned representation. Direct regression, as in Chapter 3, would approximate V N ∣ k V_{N|k} V N ∣ k by an unconstrained neural field, so its errors would also be unconstrained. RNTC instead uses the residual parameterization Equation (66) , subtracting a nonnegative learned residual from the predicted terminal constraint function,
V ^ Ψ ( x ∣ w k ) : = c N ∣ k ( x ) − r ^ Ψ ( x ∣ w k ) , r ^ Ψ ( x ∣ w k ) ≥ 0 , (95) \hat{V}_{\Psi}(x \mid w_k) := c_{N|k}(x) - \hat{r}_{\Psi}(x \mid w_k), \qquad\hat{r}_{\Psi}(x \mid w_k) \ge0, \tag*{(95)} V ^ Ψ ( x ∣ w k ) := c N ∣ k ( x ) − r ^ Ψ ( x ∣ w k ) , r ^ Ψ ( x ∣ w k ) ≥ 0 , (95)
where c N ∣ k c_{N|k} c N ∣ k is computed numerically from the predicted geometry, exactly as the stage constraints already require, and only the residual r ^ Ψ \hat{r}_{\Psi} r ^ Ψ is learned. This choice does not restrict the target, because by the HJ ordering Equation (44) , extended to time-varying constraints in § 5.6.2 , the true value function equals the constraint function minus a nonnegative residual. The nonnegativity of the residual immediately yields V ^ Ψ ( x ∣ w k ) ≤ c N ∣ k ( x ) \hat{V}_{\Psi}(x \mid w_k) \le c_{N|k}(x) V ^ Ψ ( x ∣ w k ) ≤ c N ∣ k ( x ) for all x x x and hence establishes the failure-set exclusion property required in Equation (93) ,
{ x ∣ V ^ Ψ ( x ∣ w k ) ≥ 0 } ⊆ { x ∣ c N ∣ k ( x ) ≥ 0 } . (96) \left\{x \mid\hat{V}_{\Psi}(x \mid w_k) \ge0\right\} \subseteq\left\{x \mid c_{N|k}(x) \ge0\right\}. \tag*{(96)} { x ∣ V ^ Ψ ( x ∣ w k ) ≥ 0 } ⊆ { x ∣ c N ∣ k ( x ) ≥ 0 } . (96)
Every state admitted by the learned terminal constraint therefore has a nonnegative distance to the predicted terminal geometry, regardless of the residual approximation error, so the learned terminal constraint is never weaker than the predicted terminal SDF constraint. The property has two limitations. It is one-sided, as noted in § 5.9.2 , so an underestimated residual may still classify a state inside the predicted BRT as safe. It is also stated relative to the predicted geometry, so it inherits the perception and motion-prediction errors. The architecture eliminates one important error class, while the remaining errors are reduced only empirically through training.
The parameterization also simplifies the learning problem, because the terminal constraint geometry is supplied directly by c N ∣ k c_{N|k} c N ∣ k and the network represents only the dynamics-induced correction, analogous to the braking-distance residual in Figure 2.2. The ablation in § 6.2.5.2 evaluates the resulting learning benefit through convergence speed and safe-set accuracy at equal model size.
Nonnegativity of the residual is enforced by the output activation. For the reason given in § 5.9.2 , RNTC enforces it with a smooth relaxation of the ReLU, the shifted exponential linear unit ELU(z z z ) + 1, where
ELU ( z ) = { z , z > 0 , exp ( z ) − 1 , z ≤ 0. (97) \operatorname{ELU}(z) =
\begin{cases}
z, & z > 0, \\
\exp(z) - 1, & z \le0.
\end{cases} \tag*{(97)} ELU ( z ) = { z , exp ( z ) − 1 , z > 0 , z ≤ 0. (97)
This output is nonnegative and has a nonzero derivative for every finite input. The residual is strictly positive for finite inputs but can approach zero arbitrarily closely, so where the true residual vanishes, the parameterization approximates it with an arbitrarily small conservative offset.
Hypernetwork Architecture
RNTC-MPC adopts the hypernetwork factorization of § 6.1.4.2 . The hypernetwork H Ψ H_{\Psi} H Ψ maps w k w_k w k to the parameters of a compact main network M Θ ( w k ) M_{\Theta(w_k)} M Θ ( w k ) , whose output passes through the shifted ELU:
Θ ( w k ) = H Ψ ( w k ) , r ^ Ψ ( x ∣ w k ) = ELU ( M Θ ( w k ) ( x ) ) + 1. (98) \Theta(w_k) = H_{\Psi}(w_k), \qquad\hat{r}_{\Psi}(x \mid w_k) = \operatorname{ELU}(M_{\Theta(w_k)}(x)) + 1. \tag*{(98)} Θ ( w k ) = H Ψ ( w k ) , r ^ Ψ ( x ∣ w k ) = ELU ( M Θ ( w k ) ( x )) + 1. (98)
Because the conditioning input Equation (94) is a stack of L L L SDF images over the sensing window, the hypernetwork is a convolutional neural network with L L L input channels followed by a fully connected head. The main network is a small multilayer perceptron with sinusoidal activations in its early layers and SELU activations thereafter, as in Chapter 3.
As shown in Figure 4.2 , one hypernetwork evaluation precedes each MPC solve, and the solver differentiates the terminal SDF minus the residual through automatic differentiation.
Figure 4.2. RNTC-MPC architecture. Tracked obstacle positions and velocities are extrapolated over the MPC horizon and converted into a predicted SDF sequence. The stage-matched SDFs define the collision-avoidance constraints, while selected snapshots near the terminal stage form the conditioning input of the hypernetwork. The hypernetwork runs once per planning cycle and generates the main-network parameters. Inside the nonlinear program, the terminal constraint is the predicted terminal SDF minus the nonnegative main-network output, as in Equation (95) . The solver evaluates this assembled function and its derivatives repeatedly.
Fixed-size SDF images keep the main-network query cost independent of the number of obstacles.
Reachability-Supervised Training
The hypernetwork is trained offline in a supervised fashion, following § 6.1.4.3 with two modifications. The training data are obstacle trajectories rather than static maps, and the targets are solutions of the time-varying HJ problem of § 5.6.2 .
Figure 4.3 illustrates the construction of one training pair. A trajectory of the surrounding obstacles, synthesized in simulation or recorded in the real world, is split at a reference instant t r e f t_{\mathrm{ref}} t ref . The L L L selected steps preceding that instant are converted into SDF images over the sensing-window grid and represent the online conditioning input Equation (94) . The subsequent segment of P P P future steps defines the time-varying failure set evolution after t r e f t_{\mathrm{ref}} t ref . A grid-based HJ solver, extended to time-varying failure sets, then propagates the variational inequality backward from the end of this segment to the reference instant and yields the numerical target over the state-space grid. Writing w w w for the conditioning input of that pair, this target is denoted V ( ⋅ ∣ w ) V(\cdot\mid w) V ( ⋅ ∣ w ) in the fixed-conditioning notation Equation (57) , and it is the training-time counterpart of the terminal value function V N ∣ k V_{N\mid k} V N ∣ k . The reachability horizon P P P is chosen long enough for the reference-instant value to converge numerically to the chosen tolerance. By the time-shift invariance established in § 6.2.4.1 , pairs generated at arbitrary reference instants supervise the same relative-time mapping evaluated online at the MPC terminal stage.
Figure 4.3. RNTC training procedure. Each obstacle trajectory is split at a reference instant. Selected snapshots before that instant form the conditioning input w w w of Equation (94) , which the hypernetwork converts into the main-network parameters Θ ( w ) \Theta(w) Θ ( w ) . The generated main network produces a nonnegative residual on the state-space grid. The subsequent trajectory segment defines the time-varying failure set used to compute the numerical HJ target V ( ⋅ ∣ w ) V(\cdot\mid w) V ( ⋅ ∣ w ) at the reference instant. Subtracting the predicted residual from the reference-instant SDF yields the value-function estimate used in the training loss. The figure shows a single training pair, so the batch and grid indices of Equation (99) are omitted. Signal names match Figure 3.3 .
Training uses minibatch gradient-based optimization of the hypernetwork parameters Ψ \boldsymbol{\Psi} Ψ . For each pair, the hypernetwork generates the main-network parameters, and the main network with its shifted ELU output is evaluated on the state grid { x j } j = 1 K \{x_j\}_{j=1}^{K} { x j } j = 1 K to obtain the predicted residual. The SDF at the reference instant is evaluated on the same grid, and the subtraction in Equation (95) assembles the value-function estimate, which the loss compares directly with the numerical HJ target. The training signal acts on the quantity that the controller uses, and a separate residual target is unnecessary.
Sign-sensitive regression loss. As discussed in § 6.1.4.3 , the terminal constraint depends primarily on the sign of the learned field. The radially weighted loss of Chapter 3 addresses this indirectly by assigning larger squared-error weights near the target boundary. This chapter instead supplements the squared error with a term that responds directly to sign disagreement, which yields the combined MSE–exponential (CME) loss. With the abbreviations of § 6.1.4.3 for a batch of M M M training pairs with targets V j ( m ) : = V ( x j ∣ w ( m ) ) V_j^{(m)} := V(x_j \mid w^{(m)}) V j ( m ) := V ( x j ∣ w ( m ) ) and predictions V ^ j ( m ) : = V ^ Ψ ( x j ∣ w ( m ) ) \hat{V}_j^{(m)} := \hat{V}_{\boldsymbol{\Psi}}(x_j \mid w^{(m)}) V ^ j ( m ) := V ^ Ψ ( x j ∣ w ( m ) ) over the grid { x j } j = 1 K \{x_j\}_{j=1}^{K} { x j } j = 1 K ,
L C M E ( Ψ ) = 1 M ∑ m = 1 M 1 K ∑ j = 1 K [ λ ( V j ( m ) − V ^ j ( m ) ) 2 + ( 1 − λ ) exp ( − V j ( m ) V ^ j ( m ) ) ] , λ ∈ ( 0 , 1 ] . (99) \mathcal{L}_{\mathrm{CME}}(\boldsymbol{\Psi}) = \frac{1}{M}\sum_{m=1}^{M}\frac{1}{K}\sum_{j=1}^{K}\left[\lambda\left(V_j^{(m)}-\hat{V}_j^{(m)}\right)^2+(1-\lambda)\exp\left(-V_j^{(m)}\hat{V}_j^{(m)}\right)\right],\qquad\lambda\in(0,1]. \tag*{(99)} L CME ( Ψ ) = M 1 m = 1 ∑ M K 1 j = 1 ∑ K [ λ ( V j ( m ) − V ^ j ( m ) ) 2 + ( 1 − λ ) exp ( − V j ( m ) V ^ j ( m ) ) ] , λ ∈ ( 0 , 1 ] . (99)
The first term is the standard squared regression error and promotes value accuracy. The second term depends on the target and the prediction only through their product, so it decreases when their signs agree and grows exponentially when they disagree. The weight λ \lambda λ trades value matching against sign sensitivity, and the choice λ = 1 \lambda=1 λ = 1 recovers plain MSE. The case λ = 0 \lambda=0 λ = 0 is excluded because, for a nonzero target, the exponential term alone has an unattained infimum rather than a finite minimizer, so the training would drive the prediction to ever larger magnitude.
The exponential term deliberately biases the value estimates, so the effect of that bias on the zero level set must be examined. Consider a single target y y y and a corresponding prediction y ^ \hat{y} y ^ . For λ > 0 \lambda>0 λ > 0 , the loss λ ( y − y ^ ) 2 + ( 1 − λ ) exp ( − y y ^ ) \lambda(y-\hat{y})^2+(1-\lambda)\exp(-y\hat{y}) λ ( y − y ^ ) 2 + ( 1 − λ ) exp ( − y y ^ ) is strictly convex in y ^ \hat{y} y ^ , and its unique minimizer is the stationary point of
− 2 λ ( y − y ^ ) − y ( 1 − λ ) exp ( − y y ^ ) = 0 , (100) -2\lambda(y-\hat{y})-y(1-\lambda)\exp(-y\hat{y})=0, \tag*{(100)} − 2 λ ( y − y ^ ) − y ( 1 − λ ) exp ( − y y ^ ) = 0 , (100)
which for y ≠ 0 y\ne0 y = 0 admits a closed-form solution in terms of the Lambert W W W function [145],
y ^ ∗ = y + 1 y W ( ( 1 − λ ) y 2 2 λ exp ( y 2 ) ) . (101) \hat{y}^{*}=y+\frac{1}{y}W\left(\frac{(1-\lambda)y^{2}}{2\lambda\exp(y^{2})}\right). \tag*{(101)} y ^ ∗ = y + y 1 W ( 2 λ exp ( y 2 ) ( 1 − λ ) y 2 ) . (101)
The argument of W W W is nonnegative, so W W W is nonnegative and the correction W ( ⋅ ) / y W(\cdot)/y W ( ⋅ ) / y has the sign of y y y . Hence sign ( y ^ ∗ ) = sign ( y ) \operatorname{sign}(\hat{y}^{*})=\operatorname{sign}(y) sign ( y ^ ∗ ) = sign ( y ) and ∣ y ^ ∗ ∣ ≥ ∣ y ∣ |\hat{y}^{*}|\ge|y| ∣ y ^ ∗ ∣ ≥ ∣ y ∣ . As y → 0 y\to0 y → 0 , the correction vanishes and zero maps to zero by continuity. For large ∣ y ∣ |y| ∣ y ∣ , the factor exp ( − y 2 ) \exp(-y^{2}) exp ( − y 2 ) suppresses the correction and the optimum approaches the target. Figure 4.4 visualizes the resulting mapping. The pointwise CME optimum thus preserves the sign of the target and its zero crossing, at the cost of some value accuracy near the boundary. This property does not guarantee that a finite trained network attains the pointwise optimum, but it explains why the loss is aligned with the classification objective.
Figure 4.4. Pointwise optimum y ^ ∗ \hat{y}^{*} y ^ ∗ of the CME loss Equation (101) as a function of the target y y y for different weights λ \lambda λ . For λ = 1 \lambda= 1 λ = 1 the loss reduces to MSE and the optimum is the identity (dashed). As λ \lambda λ decreases, predictions near the zero level set are displaced away from zero, while the sign, the zero crossing, and the behavior for large ∣ y ∣ \lvert y\rvert ∣ y ∣ are preserved.
Two practical remarks conclude the description of the loss. First, random initialization can produce large values and gradients in the exponential term, which can be avoided by training with plain MSE for an initial phase before switching to CME. Second, the weight λ \lambda λ is a hyperparameter of the objective. § 6.2.5.2 reports the value used in the experiments and compares it with plain MSE under otherwise identical conditions.
RNTC-MPC Formulation
The preceding components are now assembled into the complete planner. Given the current state x k x_k x k , the predicted constraint functions c 0 ∣ k , … , c N ∣ k c_{0|k},\ldots,c_{N|k} c 0∣ k , … , c N ∣ k of Equation (91) , and the main-network parameters Θ ( w k ) = H Ψ ( w k ) \Theta(w_k) = H_{\Psi}(w_k) Θ ( w k ) = H Ψ ( w k ) computed once for this cycle, RNTC-MPC solves
min x 0 ∣ k , … , x N ∣ k u 0 ∣ k , … , u N − 1 ∣ k ℓ f ∣ k ( x N ∣ k ) + ∑ i = 0 N − 1 ℓ i ∣ k ( x i ∣ k , u i ∣ k ) (102) \underset{x_{0|k},\ldots,x_{N|k}}{\min}_{u_{0|k},\ldots,u_{N-1|k}} \ \ell_{f|k}(x_{N|k}) + \sum_{i=0}^{N-1} \ell_{i|k}(x_{i|k},u_{i|k}) \tag*{(102)} x 0∣ k , … , x N ∣ k min u 0∣ k , … , u N − 1∣ k ℓ f ∣ k ( x N ∣ k ) + i = 0 ∑ N − 1 ℓ i ∣ k ( x i ∣ k , u i ∣ k ) (102)
s.t. x 0 ∣ k = x k , (103) \text{s.t.}\qquad x_{0|k} = x_k, \tag*{(103)} s.t. x 0∣ k = x k , (103)
x i + 1 ∣ k = F Δ ( x i ∣ k , u i ∣ k ) , i = 0 , … , N − 1 , (104) x_{i+1|k} = F_{\Delta}(x_{i|k},u_{i|k}),\qquad i = 0,\ldots,N-1, \tag*{(104)} x i + 1∣ k = F Δ ( x i ∣ k , u i ∣ k ) , i = 0 , … , N − 1 , (104)
u i ∣ k ∈ U , i = 0 , … , N − 1 , (105) u_{i|k} \in\mathcal{U},\qquad i = 0,\ldots,N-1, \tag*{(105)} u i ∣ k ∈ U , i = 0 , … , N − 1 , (105)
x i ∣ k ∈ X , i = 0 , … , N , (106) x_{i|k} \in\mathcal{X},\qquad i = 0,\ldots,N, \tag*{(106)} x i ∣ k ∈ X , i = 0 , … , N , (106)
c i ∣ k ( x i ∣ k ) ≥ 0 , i = 0 , … , N − 1 , (107) c_{i|k}(x_{i|k}) \ge0,\qquad i = 0,\ldots,N-1, \tag*{(107)} c i ∣ k ( x i ∣ k ) ≥ 0 , i = 0 , … , N − 1 , (107)
c N ∣ k ( x N ∣ k ) − r ^ Ψ ( x N ∣ k ∣ w k ) ≥ 0. (108) c_{N|k}(x_{N|k}) - \hat{r}_{\Psi}(x_{N|k}\mid w_k) \ge0. \tag*{(108)} c N ∣ k ( x N ∣ k ) − r ^ Ψ ( x N ∣ k ∣ w k ) ≥ 0. (108)
with the quadratic tracking costs of § 5.3 . Relative to NTC-MPC Equation (3.9), two substitutions extend the formulation to moving obstacles. First, each stage constraint Equation (4.13f) refers to the predicted geometry at the corresponding stage. Second, the terminal constraint Equation (4.13g) imposes the residual value estimate V ^ Ψ ( x N ∣ k ∣ w k ) ≥ 0 \hat{V}_{\Psi}(x_{N|k} \mid w_k) \ge0 V ^ Ψ ( x N ∣ k ∣ w k ) ≥ 0 , that is, it requires the terminal state to lie in the predicted safe set, which by Equation (96) implies c N ∣ k ( x N ∣ k ) ≥ 0 c_{N|k}(x_{N|k}) \ge0 c N ∣ k ( x N ∣ k ) ≥ 0 .
Implementation follows § 6.1.4.4 . A compiled NLP takes the network weights, predicted SDFs, state estimate, and reference as updated parameters, and automatic differentiation supplies the derivatives. Each cycle adds one hypernetwork inference and repeated evaluation of a single terminal field whose network size is independent of the obstacle count. Predicted-failure-set exclusion Equation (96) holds by construction, while real-time execution and closed-loop collision avoidance are evaluated experimentally in the next section, and Section 4.6 states the scope of these claims.
Experimental Evaluation
The evaluation compares residual and direct regression at equal model capacity, CME and MSE training, closed-loop performance against four baselines, and deployment on a physical robot.1
Robot Model
All experiments use the kinematic unicycle, the standard velocity-controlled model of a differential-drive platform. The state x = ( p x , p y , θ ) x = (p_x, p_y, \theta) x = ( p x , p y , θ ) collects the planar position p ( x ) = ( p x , p y ) p(x) = (p_x,p_y) p ( x ) = ( p x , p y ) and the heading angle θ \theta θ , the control input u = ( v , ω ) u = (v,\omega) u = ( v , ω ) consists of the linear and angular velocities, and the continuous-time dynamics are
x ˙ = [ v cos θ v sin θ ω ] (109) \dot{x} =
\begin{bmatrix}
v \cos\theta\\
v \sin\theta\\
\omega
\end{bmatrix} \tag*{(109)} x ˙ = v cos θ v sin θ ω (109)
with actuation limits v ∈ [ − 0.5 , 0.5 ] v \in[-0.5, 0.5] v ∈ [ − 0.5 , 0.5 ] m s− 1 ^{-1} − 1 and ω ∈ [ − 0.5 , 0.5 ] \omega\in[-0.5, 0.5] ω ∈ [ − 0.5 , 0.5 ] rad s− 1 ^{-1} − 1 .
This idealized velocity-controlled model isolates the effect of obstacle motion. Because velocity is the control input, the model can stop instantaneously, so among static obstacles the robot can remain at rest at every collision-free state, and the reachability-based safe set coincides with the free space. Moving obstacles remove this option, because the experimental obstacles travel at up to 1 m s− 1 ^{-1} − 1 , twice the maximum speed of the robot, and can reach a robot that stops or reacts too late. The predicted safe set can then be strictly smaller than the predicted free space by a velocity-dependent margin.
Training and Safe-Set Approximation
Dataset and targets. The training data are generated synthetically. The sensing window is a square of 8 × 8 8 \times8 8 × 8 m centered at the robot and discretized into 100 × 100 100 \times100 100 × 100 cells. Each training scene contains up to four circular obstacles whose initial positions and velocity vectors are sampled randomly, with speeds up to 1 m s− 1 ^{-1} − 1 , and whose trajectories follow the constant-velocity model. Each trajectory is split at a reference instant as described in § 6.2.4.4 . The past segment yields the input SDF pair, consisting of L = 2 L = 2 L = 2 snapshots taken 0.4 s apart, and the future segment defines the time-varying failure set for the numerical HJ computation. With the prediction interval Δ t = 0.1 \Delta t = 0.1 Δ t = 0.1 s of § 6.2.5.3 , this separation corresponds to the lags ( q 1 , q 2 ) = ( 4 , 0 ) (q_1,q_2) = (4,0) ( q 1 , q 2 ) = ( 4 , 0 ) in Equation (94) , so that every evaluated horizon satisfies N ≥ q 1 N \ge q_1 N ≥ q 1 . The targets are computed with a grid-based HJ solver2 on a 100 × 100 × 30 grid over ( p x , p y , θ ) (p_x,p_y,\theta) ( p x , p y , θ ) . Generating the full set of 40 000 training pairs took approximately 20 h on two RTX 3090 GPUs. As in Chapter 3, part of the data is held out for validation.
Table 4.1. RNTC-MPC model and training configuration.
Model and training configuration. Table 4.1 summarizes the setup. The hypernetwork is a CNN with two input channels, one per SDF snapshot, followed by a fully connected head, and it has approximately 9.4 × 10 6 9.4 \times10^6 9.4 × 1 0 6 trainable parameters. The main network is an MLP with three inputs and nine hidden layers of widths [36, 36, 36, 18, 18, 18, 9, 9, 9]. Its first three layers use sinusoidal activations, the remaining hidden layers use SELU, and the output uses the shifted ELU of Equation (98) . The main network has 4519 parameters, which is also the output dimension of the hypernetwork. Training uses Adam for 100 epochs with a batch size of 40 and the CME weight λ = 0.1 \lambda= 0.1 λ = 0.1 selected by grid search, without the optional MSE warm start mentioned in § 6.2.4.4 .
Residual parameterization versus direct regression. The first ablation isolates the residual parameterization. Its direct-regression counterpart uses the same hypernetwork, the same SDF input, and the same training data, but it predicts the value function directly, without the SDF constraint function and the nonnegative residual. Both variants are trained at three main-network sizes and evaluated by the safe-set intersection over union (IoU) on the validation set. Figure 4.5 shows three consistent results. At the earliest reported epochs, the residual models already have a higher IoU, about 0.94 compared with 0.86, because the SDF constraint function supplies the scene geometry from the outset. After approximately 10 epochs they reach the IoU that direct regression attains only after about 50 epochs. After 100 epochs, they also end at a higher IoU for every tested size, approximately 0.971–0.975 compared with about 0.965. In addition to enforcing predicted-failure-set exclusion, the residual parameterization makes the supervised approximation problem easier in this ablation.
Figure 4.5. Residual parameterization versus direct value regression at equal model capacity, evaluated on the validation set for three main-network sizes (2790, 4519, and 6670 parameters). (a) Safe-set intersection over union (IoU) over training epochs, with the residual models in green and the direct-regression models in orange, and the line pattern indicating the network size. The residual models start higher, converge roughly five times faster, and end higher. (b) Final IoU after 100 epochs. The residual models reach a higher IoU at every size, and the smallest residual model outperforms the largest direct-regression model.
Figure 4.6 visualizes the structural difference. In both validation scenes, the direct-regression boundary enters the predicted SDF failure set and assigns positive values to some represented occupied states, a failure mode that the residual estimate excludes by Equation (96) .
Figure 4.6. Qualitative comparison for two validation samples (a) and (b), each shown as a heading slice over the full sensing window and, connected by the dotted lines, as a magnified detail of the marked rectangle. Gray disks mark the predicted failure set, in which the terminal constraint function c N ∣ k c_{N|k} c N ∣ k is negative. The curves are the zero level sets of the numerical HJ target (dashed), of the direct-regression estimate (orange), and of the residual estimate (green). The direct-regression boundary enters the predicted failure set in several locations, while the residual estimate excludes that region by construction.
Effect of the CME loss. The second ablation changes only the training objective. The same residual model is trained once with the CME loss and once with plain MSE under otherwise identical conditions. As shown in Figure 4.7 , CME reaches the final MSE validation IoU after roughly 20 of the 100 epochs and finishes at approximately 0.975, compared with 0.967 for MSE. This experiment supports the use of sign-sensitive training whenever safe-set classification, rather than value regression alone, is the principal objective.
Figure 4.7. Effect of the training objective on the safe-set IoU, evaluated on the validation set over training epochs for the same residual model trained with the CME loss (λ = 0.1 \lambda= 0.1 λ = 0.1 ) and with plain MSE under identical settings. CME converges faster, reaching the final MSE level after about 20 epochs, and ends at a higher IoU (≈ 0.975 \approx0.975 ≈ 0.975 versus ≈ 0.967 \approx0.967 ≈ 0.967 ).
Planner Baselines and Implementation
The closed-loop evaluation compares five planners with the same MPC costs, robot model, prediction discretization, and constant-velocity obstacle predictions. They differ only in their collision-avoidance constraints, so the comparison isolates the effect of the constraint construction. The first two baselines are the dynamic-environment counterparts of those in § 6.1.5.3 . SDF-MPC uses the predicted geometric constraint at every stage including the terminal one, c i ∣ k ( x i ∣ k ) ≥ 0 c_{i|k}(x_{i|k}) \ge0 c i ∣ k ( x i ∣ k ) ≥ 0 for i = 0 , … , N i = 0, \ldots, N i = 0 , … , N . DCBF-MPC [63 ] additionally imposes the discrete-time CBF condition c i ∣ k ( x i ∣ k ) − c i − 1 ∣ k ( x i − 1 ∣ k ) ≥ − γ c i − 1 ∣ k ( x i − 1 ∣ k ) c_{i|k}(x_{i|k}) - c_{i-1|k}(x_{i-1|k}) \ge-\gamma c_{i-1|k}(x_{i-1|k}) c i ∣ k ( x i ∣ k ) − c i − 1∣ k ( x i − 1∣ k ) ≥ − γ c i − 1∣ k ( x i − 1∣ k ) for i = 1 , … , N i = 1, \ldots, N i = 1 , … , N , with decay parameter γ ∈ ( 0 , 1 ] \gamma\in(0, 1] γ ∈ ( 0 , 1 ] as in Equation (89) , evaluated along the time-varying constraint sequence. The third baseline, VO-MPC [144], formulates velocity-obstacle constraints within the MPC problem. For each obstacle, the commanded velocity is kept outside the cone of velocities that lead to a collision under the current relative motion. The fourth planner, NTC-MPC, uses the direct-regression ablation of § 6.2.5.2 as its terminal constraint, which isolates the contribution of the residual structure in closed loop. The fifth planner is RNTC-MPC as developed in this chapter.
All planners are implemented in the CasADi framework [138] with IPOPT as the NLP solver and MA57 for the linear systems [146], and they are deployed as ROS 2 packages [139] with solver code compiled before deployment. The internal MPC prediction grid uses Δ t = 0.1 \Delta t = 0.1 Δ t = 0.1 s, while the receding-horizon problem is solved at the control frequency of 20 Hz.
The planner replans twice per prediction interval, and a horizon of N = 10 N = 10 N = 10 still denotes a prediction horizon of 1 s. The hypernetwork runs in PyTorch on the GPU and requires about 2 ms per inference on an RTX 3090. The main network is expressed directly in CasADi, and its weights, the sampled predicted SDFs, the state estimate, and the reference are updated as solver parameters at each planning cycle.
Simulation Experiments
Setup. The closed-loop evaluation uses physics-based 3D simulations in Gazebo (Figure 4.8 ). The robot must travel 15 m along a straight reference path from a start position to a goal position, while avoiding six moving cylindrical obstacles with a radius of 0.5 m. The obstacles move within a corridor of 16 m length and 10 m width that contains the reference path. Their initial positions are drawn uniformly within the corridor, their velocity vectors have random directions and a speed of 1 m s− 1 ^{-1} − 1 , and each obstacle reverses its velocity when it leaves the corridor, so that the obstacles remain in the path of the robot. A total of 100 random scenarios is generated once and reused across all planners and horizon lengths N ∈ { 5 , 10 , 20 , 30 } N \in\{5, 10, 20, 30\} N ∈ { 5 , 10 , 20 , 30 } . The simulator provides accurate obstacle positions and velocities within the sensing range, which isolates the planning problem from perception errors. A run fails if the robot collides or does not reach the goal within a fixed time limit, and besides the success rate and the NLP computation time, the evaluation reports the travel time from start to goal and the per-run mean d m e a n d_{\mathrm{mean}} d mean and maximum d m a x d_{\mathrm{max}} d max of the lateral deviation d d d from the straight reference path. Small deviations are important in applications such as cleaning or inspection, where following the path is itself the objective.
Figure 4.8. Gazebo simulation environment. Six cylindrical obstacles with randomly initialized positions and velocity vectors (arrows) move at constant speed within a corridor and reverse direction at its edges. The robot must navigate from the start position to the goal position ahead of it, using only local observations.
Success rates. Figure 4.9 (a) reports the success rates. RNTC-MPC has the highest rate at every tested horizon, from 76% at N = 5 N = 5 N = 5 to 82% at N = 30 N = 30 N = 30 . At N = 5 N = 5 N = 5 , it exceeds SDF-MPC by 43 and DCBF-MPC by 32 percentage points. SDF-MPC increases from 33% to 74% and DCBF-MPC from 44% to 80% as the horizon grows, which illustrates their stronger horizon dependence, while VO-MPC remains close to 66% at every horizon.
Figure 4.9. Monte Carlo simulation results over 100 randomized scenarios. (a) Success rate against the prediction-horizon length. RNTC-MPC achieves the highest rate at every tested horizon and consistently exceeds direct-regression NTC-MPC. (b) Per-run mean NLP solve times over the scenarios completed by all planners, which remain considerably below the 50 ms control-update period. Boxes span the interquartile range, lines mark the median, and whiskers extend to 1.5 times the interquartile range.
Direct-regression NTC-MPC is the strongest baseline at the two shorter horizons and follows the same broad trend as RNTC-MPC, but it remains 3–8 percentage points lower at every horizon, which suggests that the approximation gains of § 6.2.5.2 translate into fewer collisions. No method reaches 100%. The obstacles move faster than the robot and reverse direction at the corridor boundary, which violates the constant-velocity prediction used by every planner. Both effects are possible causes of the remaining failures, but the experiment does not isolate them.
Computation times. Figure 4.9 (b) reports the NLP solve times, which lie in the low-millisecond range for all planners. The solve time of RNTC-MPC grows from roughly 2 ms at N = 5 N = 5 N = 5 to 3.3 ms at N = 30 N = 30 N = 30 , which is close to NTC-MPC, slightly above the geometric baselines, and below VO-MPC at long horizons. Together with the approximately 2 ms hypernetwork inference, these values remain considerably below the 50 ms control-update budget.
Motion quality. To assess the performance cost of improved collision avoidance, travel time and lateral deviation are compared across planners as well. Figure 4.10 (a) shows similar travel times across the planners, and the trade-off in Figure 4.10 (b) combines the mean travel time with the success rate. RNTC-MPC has the highest success rate at every tested horizon, and its mean travel time remains within 0.4 s of that of the fastest planner. Figure 4.11 reports the lateral deviations. VO-MPC has the largest deviations, particularly at short horizons, and RNTC-MPC remains comparable to the geometric baselines while completing more trials without collision. The deviations increase with the horizon for all methods, since a longer look-ahead enables earlier and wider avoidance. The trajectories in Figure 4.12 show the same pattern, in which SDF-MPC remains close to the reference but collides frequently, VO-MPC deviates widely from the reference, and RNTC-MPC combines moderate deviations with fewer failures.
Figure 4.10. Motion efficiency in simulation over the scenarios completed by all planners. (a) Travel times from start to goal, which are similar across methods. (b) Mean travel time against success rate, with one marker per method and horizon. Higher success and shorter travel time are preferable, so the lower right region is favorable. RNTC-MPC achieves the highest success rate at every tested horizon with a mean travel time close to the lowest.
Figure 4.11. (a) Per-run mean and (b) per-run maximum lateral deviation from the reference path in the simulation study, shown over the horizon length for the scenarios completed by all planners. VO-MPC deviates most at the three shorter horizons, which reflects its evasive velocity constraints, while RNTC-MPC remains comparable to the geometric baselines. The deviations of all methods are larger at long horizons than at short ones, since a longer look-ahead triggers earlier and wider avoidance.
Figure 4.12. Executed trajectories over all 100 simulation runs for each planner at N = 10 N = 10 N = 10 , corresponding to a 1 s prediction horizon, plotted as lateral deviation d d d against the distance along the reference path. Green denotes successful runs and red denotes collisions. SDF-MPC remains close to the reference but collides frequently, VO-MPC deviates widely from the reference, and the planners with learned terminal constraints achieve moderate deviations with fewer failures.
Hardware Experiments
Setup. The hardware evaluation uses the delivery robot of § 6.1.5.5 , which additionally carries stereo cameras. The complete pipeline of object detection and tracking, localization, constant-velocity prediction, hypernetwork inference, and MPC optimization runs onboard. Hypernetwork inference takes about 4.5 ms, and the planner executes at 20 Hz. Each of SDF-MPC, DCBF-MPC, VO-MPC, and RNTC-MPC is evaluated in ten crossing-pedestrian trials at N = 10 N = 10 N = 10 , which corresponds to a prediction horizon of 1 s. Five of these trials contain one pedestrian, and five contain two. The initial pedestrian positions and velocities vary between trials, and the pedestrians move faster than the maximum robot speed of 0.5 m s − 1 0.5\ \mathrm{m\,s^{-1}} 0.5 m s − 1 .
Results. Table 4.2 summarizes the outcomes. RNTC-MPC completes all ten trials without collision, 30 percentage points above DCBF-MPC and VO-MPC, the best baselines at 70%. It also attains the lowest mean travel time, with lateral deviations close to those of SDF-MPC, whose small deviations do not indicate better avoidance, since that planner collides in six of the ten trials. DCBF-MPC and VO-MPC complete more trials than SDF-MPC but make larger detours, and VO-MPC also has the highest mean optimization time. Because each method is evaluated only ten times, the hardware percentages have substantial sampling uncertainty and should be interpreted as evidence from the tested trials rather than as general success rates.
Table 4.2. Hardware experiment results in the pedestrian-avoidance task, with 10 trials per method and horizon N = 10 N = 10 N = 10 , corresponding to 1 s. Values are reported as mean ± standard deviation where applicable.
The qualitative results illustrate the characteristics of the individual planners. In Figure 4.14 , RNTC-MPC reduces its speed along the reference path and allows the pedestrian to pass with only a small lateral deviation. The other planners either deviate farther or, in the case of SDF-MPC in this scenario, react too late to avoid the collision. Figure 4.13 shows the encounter from an external viewpoint, and Figure 4.15 shows the predicted pedestrian trajectory, the resulting SDF sequence, and the estimated terminal-set boundary as computed onboard. Together with the timing measurements, these trials demonstrate real-time execution of the complete perception–prediction–planning pipeline on the physical robot.
Figure 4.13. Successful collision avoidance by RNTC-MPC during the hardware experiments with a prediction horizon of 1 s. The robot slows down before the crossing pedestrian and resumes its path once the predicted pedestrian trajectory no longer constrains the terminal state.
Figure 4.14. Executed trajectories of the four planners in one representative hardware scenario with a single crossing pedestrian, with one run per planner under the same experimental setting, plotted as lateral deviation d d d against the distance along the reference path, with the dots along each trajectory colored by time. SDF-MPC fails to react and collides after about 2.5 m (red cross). VO-MPC evades with a detour of up to 0.8 m and DCBF-MPC with up to 0.16 m, while RNTC-MPC resolves the encounter with a deviation of only a few centimeters by adjusting its timing along the path.
Figure 4.15. Onboard view during a hardware trial. Top left: boundary of the predicted terminal safe set relative to the predicted pedestrian motion. Bottom left: front-camera view. Right: detected pedestrian and predicted trajectory used to construct the SDF sequence.
Discussion
The experiments support prediction-conditioned terminal constraints in the tested dynamic environments and show improved approximation with residual learning. The exclusion property is structural, and the following discussion separates it from the empirical results.
Scope of guarantees. Predicted-failure-set exclusion Equation (96) holds by construction and is the property that distinguishes the method structurally from Chapter 3. It is stated
Discussion
relative to the supplied terminal geometry, so it does not cover unobserved or occluded obstacles, motion-prediction errors, or states outside the predicted failure set, where an underestimated residual can remain optimistic. Collision avoidance and recursive feasibility are demonstrated in the tested scenarios under the assumptions of § 6.2.3 rather than certified formally. The actual obstacle motion may differ from its prediction, and the terminal set changes as the predictions are refreshed, so consecutive sets need not satisfy the compatibility condition of § 5.3 . A recursive-feasibility argument that tolerates this per-cycle exchange of learned terminal sets remains open, and Chapter 8 places it among the steps toward a formal closed-loop result.
Dependence on the obstacle-motion model. The constant-velocity model enters the method twice, online through the predicted SDF sequence and offline through the trajectories used to compute the training targets. Replanning at 20 Hz refreshes the nominal prediction frequently, but it does not bound the prediction error between updates. The simulation obstacles reverse direction at the corridor boundaries, which directly violates the prediction model and thereby demonstrates this limitation. The architecture itself can accept snapshots from another predictor, including the rule-based and learned models surveyed in [48], provided that the training targets are generated under a compatible evolution model. Higher-order models may require more snapshots or different conditioning inputs. Representing prediction uncertainty is a more fundamental extension, since a distribution of future trajectories requires stochastic or robust terminal sets, for example following [147], rather than the single nominal evolution used here.
Scalability of supervision. As in Chapter 3, the offline stage inherits the dimensionality limit of grid-based HJ solvers. Generating 40 000 time-varying targets required approximately 20 h on two GPUs, and the cost grows exponentially with the dimension of the robot state. Grid-free supervision, such as self-supervised HJ learning [85], could remove this limit, while the vertex-restricted search of Chapter 7 applies only to robot models with control-affine dynamics and polytopic input constraints, which RNTC-MPC does not assume in general. Approximation methods with statistical error guarantees [148] could further strengthen the connection between training metrics and deployment claims.
Scope of the residual principle. The residual parameterization does not require moving obstacles. In a static environment, it becomes a residual variant of the terminal constraint of Chapter § 6.1 built on the observed SDF and retains failure-set exclusion, although whether it yields the same learning benefit in that setting would have to be assessed in a separate ablation. The construction is also not specific to MPC, since it produces a state-space field whose nonnegative superlevel set approximates a reachability-based safe set. Chapters 5 and 6 reuse this structure as a CBF candidate for real-time safety filtering.
Summary
RNTC-MPC combines predicted SDF snapshots with a nonnegative residual to exclude the predicted terminal failure set by construction. Ablations show faster learning and higher validation IoU than direct regression and plain MSE. Across 100 Gazebo scenarios, it achieved the highest success rate at every tested horizon with NLP solution times in the millisecond range, and it completed all ten hardware trials, exceeding the best baseline
Summary
by 30 percentage points at the lowest mean travel time. The results address dynamic-environment MPC (questions 2 and 1) and structural exclusion (question 3). The next two chapters reuse residual fields in CBF safety filters for static and dynamic environments.
Part II.
Neural Control Barrier Functions in Static Environments
This chapter presents the observation-conditioned residual neural CBF (ORN-CBF), based on the author’s paper [102] at the IEEE International Conference on Robotics and Automation (ICRA) 2026. The method transfers the hypernetwork of Chapter 3 and residual structure of Chapter 4 to a CBF-QP safety filter for unknown static environments. It addresses real-time safety filtering (question 1) and structural failure-set exclusion (question 3).
Motivation
A safety filter supervises the nominal control command at control rate and modifies it as little as necessary to satisfy a safety condition [9, 10]. For control-affine dynamics, this yields the small CBF-QP of Equation (2.34), which can run at hundreds of hertz for the systems considered here. The effectiveness of the filter depends on the barrier function h h h , for two reasons. First, the CBF condition Equation (26) must be satisfiable within the actuation limits, which a barrier derived from the geometric obstacle distance alone cannot generally ensure (§ 5.2.3 ). Second, an unnecessarily small certified set makes the filter intervene earlier and more often than the dynamics require, which degrades task performance. The stationary Hamilton–Jacobi (HJ) value function addresses both issues, because it accounts for the dynamics and the actuation limits and its safe set is the maximal safe set (§ 5.7 ). Computing this value function is an offline procedure for a single fixed environment (§ 5.6.3 ), while the robots considered here perceive the obstacle geometry only at runtime. The problem addressed in this chapter is to supply such a barrier at control rate for the locally observed environment.
Figure 5.1 illustrates why the obstacle distance alone is insufficient. Its nonnegative region can contain states from which bounded steering or braking cannot avoid collision. Higher-order CBFs address relative degree, but their certified sets depend on the chosen functions and gains, and feasibility under actuation limits is not automatic. A barrier following the maximal safe-set boundary instead identifies when intervention is needed while recovery remains possible.
Figure 5.1. Effect of the barrier candidate on a CBF-QP safety filter at three instants separated by a short interval δ \delta δ . The constant-speed Dubins car of Section 5.5.1 cannot brake and is driven toward a goal behind an obstacle. The red region is the slice at the current heading of the set X ∖ S ⋆ ( o ) \mathcal{X} \setminus S^\star(o) X ∖ S ⋆ ( o ) from which a collision can no longer be avoided, and it changes only because the robot turns. Left: the barrier is the observed obstacle distance c ( ⋅ ∣ o ) c(\cdot\mid o) c ( ⋅ ∣ o ) , enforced through the second-order exponential CBF of Section 5.5.4. The robot turns away only once the distance to the obstacle has become small. By then the state has crossed ∂ S ⋆ ( o ) \partial S^\star(o) ∂ S ⋆ ( o ) , and at t + 2 δ t + 2\delta t + 2 δ both extremal turns end in a collision. Right: the zero level set of h ^ Ψ ( ⋅ ∣ w ) ≈ V ∞ ( ⋅ ∣ o ) \hat{h}_\Psi(\cdot\mid w) \approx V_\infty(\cdot\mid o) h ^ Ψ ( ⋅ ∣ w ) ≈ V ∞ ( ⋅ ∣ o ) coincides with ∂ S ⋆ ( o ) \partial S^\star(o) ∂ S ⋆ ( o ) , so the filter acts already at t t t and keeps the state inside S ⋆ ( o ) S^\star(o) S ⋆ ( o ) , where an admissible input always remains.
Two requirements distinguish this problem from its MPC-based counterpart in Chapters 3 and 4. First, the filter evaluates the barrier and its state gradient several hundred times per second, so the learned field must be smooth and inexpensive to differentiate, and an error in this gradient propagates directly into the applied input. Second, every new observation replaces the barrier and may shrink the predicted safe set discontinuously. The MPC methods of the preceding chapters incorporate each new observation when they replan, while a filter that runs continuously must address this discontinuity explicitly through the cross-update condition of § 5.8 .
ORN-CBF learns a nonnegative residual from offline stationary HJ solutions and subtracts it from the observed SDF. A hypernetwork updates the compact residual network once per observation. Since the filter queries only near the current position, training uses a small central positional patch, reducing its cost by roughly an order of magnitude relative to full-window NTC-MPC training. The evaluation compares the filter with MPC planners and an exponential CBF and tests transfer to ground and aerial robots.
Related Work
The broader literature on safe navigation is surveyed in Chapter 1, and the MPC-oriented literature on reachability constraints in § 6.1.2 and § 6.2.2 . This section addresses the central design question of ORN-CBF, which is how to obtain a barrier candidate that is minimally conservative and valid for a static environment that is revealed only at runtime by onboard sensors.
Methods for enforcing a barrier function that is already available are well established, as reviewed in § 4.2.3 and § 5.4 [62 , 60 , 61 ] [56, 112, 111]. Constructing a valid barrier for a general nonlinear system with state and input constraints remains the central difficulty of the field [9]. Learning-based methods make this construction tractable where manual design is not feasible. Examples are barriers learned from LiDAR measurements [90] or expert demonstrations [89], neural CBFs synthesized for systems with limited control authority [91], and Gaussian-process formulations that account for uncertainty [149]. These constructions share a structural limitation, because they do not relate the learned safe set to the largest safe set that the dynamics admit, and the learned set can consequently deviate from it in either direction. Where it is smaller than the maximal safe set, the filter discards recoverable states and intervenes more often than the dynamics require. Where it is larger, the filter admits states from which a collision is already unavoidable within the actuation limits [99, 6].
Reachability-grounded constructions relate the certified set to the maximal safe set directly. Control-barrier value functions (CBVFs) modify the reachability objective so that the resulting value function encodes an admissible barrier decay rate [73]. Subsequent work iteratively refines hand-crafted or learned candidates to enlarge their certified sets [150], and local reachability analysis patches potentially unsafe regions of a neural CBF to improve scalability [151]. The certified sets obtained in this way are close to maximal. All of these methods have been demonstrated only for environments that are fully known at computation time, and this assumption does not hold in the present setting.
A complementary line of work constructs barriers directly from onboard sensing. Training a neural SDF approximation of the current observation online avoids any offline distribution assumption, but the per-observation training restricts the approach to slow dynamics [95]. Discrete-time CBFs defined over sensor readings require a one-step-ahead prediction of the observation. The demonstrated formulation uses planar laser scans, and extending its observation-update model to modalities with far more measurements, such as dense point clouds or camera images, remains a separate modeling and computational challenge [118]. The work closest to this chapter uses a neural approximation of the value function of a state-dependent Riccati formulation as the barrier, computed from planar laser scans [96]. These observation-based barriers are available at runtime, but their safe sets do not approximate the maximal one, and no structural mechanism prevents the learned functions from classifying observed-occupied states as safe.
ORN-CBF combines observation-conditioned HJ approximation with the residual and hypernetwork designs of the preceding chapters [100, 101], which provide failure-set exclusion and efficient control-rate queries. Positional cropping further reduces training cost by exploiting the local query region of a safety filter.
Problem Statement
This section formalizes mobile robot navigation in an unknown static environment within the safety-filtering framework of § 5.4 . The goal is to design an observation-dependent CBF candidate whose value and gradient define the constraint of the CBF-QP.
Setting. The robot is described by the control-affine continuous-time model Equation (24) ,
x ˙ = f 0 ( x ) + g ( x ) u , x ∈ X , u ∈ U , (110) \dot{x} = f_0(x) + g(x)u,\qquad x \in\mathcal{X},\qquad u \in\mathcal{U}, \tag*{(110)} x ˙ = f 0 ( x ) + g ( x ) u , x ∈ X , u ∈ U , (110)
where f 0 f_0 f 0 and g g g are locally Lipschitz and the compact set U \mathcal{U} U encodes the actuation limits. The full state is measured at every control instant. A nominal controller of arbitrary design supplies a command u n o m ( t ) u_{\mathrm{nom}}(t) u nom ( t ) at the same rate, and its commands are not assumed to be safe. The environment contains an unknown static occupied region that the robot perceives through local observations. Unlike in Chapter 3, observations arrive more slowly than control commands and are indexed separately, following § 5.8 . Observation o j ∈ O o_j \in\mathcal{O} o j ∈ O arrives at time t j t_j t j , with update period Δ t o = t j + 1 − t j \Delta t_o = t_{j+1} - t_j Δ t o = t j + 1 − t j . It is an occupancy grid over a square sensing window of half-width ρ \rho ρ , centered at the robot position p ( x ( t j ) ) p(x(t_j)) p ( x ( t j )) . Let A ( o j ) ⊂ R 2 \mathcal{A}(o_j) \subset\mathbb{R}^2 A ( o j ) ⊂ R 2 denote the occupied region identified by the observation, inflated by the robot footprint and a physical safety margin. The region A ( o j ) \mathcal{A}(o_j) A ( o j ) and the state x x x are expressed in the world frame, while the grid quantities derived from the observation are indexed in the coordinates of the sensing window. A world position is mapped to a window position by a translation that is fixed while the observation o j o_j o j is in use, and the window is not rotated, so the heading and the velocity components of the state are the same in both frames. Following § 5.2.2 , the observation-conditioned constraint function is
c ( x ∣ o j ) : = sd A ( o j ) ( p ( x ) ) , (111) c(x \mid o_j) := \operatorname{sd}_{\mathcal{A}(o_j)}(p(x)), \tag*{(111)} c ( x ∣ o j ) := sd A ( o j ) ( p ( x )) , (111)
so that c ( x ∣ o j ) ≥ 0 c(x \mid o_j) \ge0 c ( x ∣ o j ) ≥ 0 means a nonnegative distance to the observed physical obstacles. The corresponding observation-dependent constraint set is C ( o j ) : = { x ∈ X ∣ c ( x ∣ o j ) ≥ 0 } \mathcal{C}(o_j) := \{x \in\mathcal{X} \mid c(x \mid o_j) \ge0\} C ( o j ) := { x ∈ X ∣ c ( x ∣ o j ) ≥ 0 } . Following Equation (63) , the learned model does not receive the occupancy grid itself. Its conditioning input
w j : = η ( o j ) ∈ W (112) w_j := \eta(o_j) \in\mathcal{W} \tag*{(112)} w j := η ( o j ) ∈ W (112)
is the discretized SDF, that is, the signed distances to A ( o j ) \mathcal{A}(o_j) A ( o j ) sampled on the cells of the sensing window. It is computed once per observation update with a linear-time distance transform [152] and serves two purposes, as described in § 7.2.0.2 . It generates the learned residual, and it represents the constraint function c ( ⋅ ∣ o j ) c(\cdot\mid o_j) c ( ⋅ ∣ o j ) .
Reachability-based safety representation. As in Chapter 3, safety is defined relative to the observed geometry. For an observation o o o , let V ∞ ( ⋅ ∣ o ) V_{\infty}(\cdot\mid o) V ∞ ( ⋅ ∣ o ) denote the stationary infinite-horizon HJ value function obtained by solving the variational inequality Equation (47) for the dynamics Equation (110) with the constraint function c ( ⋅ ∣ o ) c(\cdot\mid o) c ( ⋅ ∣ o ) . Its nonnegative superlevel set S ⋆ ( o ) = { x ∣ V ∞ ( x ∣ o ) ≥ 0 } S^{\star}(o)=\{x\mid V_{\infty}(x\mid o)\ge0\} S ⋆ ( o ) = { x ∣ V ∞ ( x ∣ o ) ≥ 0 } is the maximal safe set for the observed environment (Equation (49) ). By § 5.7 , the value function V ∞ ( ⋅ ∣ o ) V_{\infty}(\cdot\mid o) V ∞ ( ⋅ ∣ o ) is the natural barrier candidate, because its safe set is as large as the dynamics and the actuation limits permit.
Design problem. The goal is to construct, from each incoming observation o j o_j o j , a barrier candidate h ^ ( ⋅ ∣ w j ) : X → R \hat{h}(\cdot\mid w_j):\mathcal{X}\to\mathbb{R} h ^ ( ⋅ ∣ w j ) : X → R whose value and state gradient can be evaluated at any queried state and that
is available within a small fraction of the observation period Δ t o \Delta t_o Δ t o , without solving any reachability problem online,
approximates the reachability-based value function V ∞ ( ⋅ ∣ o j ) V_{\infty}(\cdot\mid o_j) V ∞ ( ⋅ ∣ o j ) , and hence the maximal safe set, rather than the geometric obstacle distance alone,
satisfies the failure-set exclusion property by construction,
{ x ∣ h ^ ( x ∣ w j ) ≥ 0 } ⊆ C ( o j ) , (113) \{x\mid\hat{h}(x\mid w_j)\ge0\}\subseteq\mathcal{C}(o_j), \tag*{(113)} { x ∣ h ^ ( x ∣ w j ) ≥ 0 } ⊆ C ( o j ) , (113)
so that no observed-occupied state is ever certified as safe, regardless of the approximation error, and
can be evaluated and differentiated at the current state fast enough that the CBF-QP Equation (2.34) runs at the control rate.
The third requirement transfers the exclusion property of Chapter 4 to the set that the filter seeks to preserve, since invariance alone would not ensure physical safety if that set contained occupied states.
Standing assumptions. The setting rests on four assumptions. First, the environment is static, and navigation among moving obstacles is treated in Chapter 6 with the same safety-filter interface. Second, the dynamics model Equation (110) is accurate and the full state is available, so disturbances and estimation errors are not modeled explicitly. Third, new information enters an updated observation only near the boundary of the sensing window, for example when previously distant geometry enters the sensing range. This assumption excludes obstacles that appear close to the robot when an occluding object moves away. Fourth, the sensing window, the update period, and the robot speed jointly satisfy the cross-update safety condition of § 7.1.4.1 , which requires the robot to remain outside the backward reachable tube (BRT) of any newly revealed obstacle at the instant at which the barrier is replaced.
Observation-Conditioned Residual Neural Barriers
The method first separates fixed-observation filtering from safety across updates. It then introduces the residual parameterization, the hypernetwork and its training on cropped data, and the resulting CBF-QP.
Observation-Conditioned Barrier Formulation
The first design question is how an observation should enter the barrier function. Following § 5.8.1 , the barrier is in general a joint function h ( x , o ) h(x,o) h ( x , o ) of state and observation. Differentiating it along the closed loop converts the CBF condition Equation (59) into the following requirement on the applied input,
∇ x h ( x , o ) T x ˙ + ∇ o h ( x , o ) T o ˙ ≥ − α ( h ( x , o ) ) , (114) \nabla_x h(x,o)^{\mathsf{T}}\dot{x}+\nabla_o h(x,o)^{\mathsf{T}}\dot{o}\geq-\alpha\left(h(x,o)\right), \tag*{(114)} ∇ x h ( x , o ) T x ˙ + ∇ o h ( x , o ) T o ˙ ≥ − α ( h ( x , o ) ) , (114)
which requires the observation dynamics o ˙ \dot{o} o ˙ . The environment is assumed to be static, so the observation depends on time only through the robot state and o ˙ = ( ∂ o / ∂ x ) x ˙ \dot{o}=(\partial o/\partial x)\dot{x} o ˙ = ( ∂ o / ∂ x ) x ˙ , as in Equation (60) . As discussed in § 5.8.2 , the Jacobian ∂ o / ∂ x \partial o/\partial x ∂ o / ∂ x can be modeled only in part. A sensor model predicts how obstacles that the robot has already seen move within the sensing window as the robot advances [118], but it cannot predict the appearance of unseen obstacles. A model of o ˙ \dot{o} o ˙ is thus incomplete for the newly revealed geometry, which is the geometry that determines safety.
ORN-CBF instead holds the world-frame field h ( ⋅ ∣ o j ) h(\cdot\mid o_j) h ( ⋅ ∣ o j ) fixed between observation updates, as in Equation (57) . In a static environment, this field continues to describe the same observed geometry during that interval, and its derivative contains only the state term. This follows from holding the field fixed rather than from neglecting part of the derivative of h ( x , o ( x ) ) h(x,o(x)) h ( x , o ( x )) . New observations replace the field at discrete instants, whose safety conditions are considered below. Between updates, the applied input must satisfy
∇ x h ( x ∣ o j ) T x ˙ ≥ − α ( h ( x ∣ o j ) ) , t ∈ [ t j , t j + 1 ) , (115) \nabla_x h(x\mid o_j)^{\mathsf{T}}\dot{x}\geq-\alpha\left(h(x\mid o_j)\right),\qquad t\in[t_j,t_{j+1}), \tag*{(115)} ∇ x h ( x ∣ o j ) T x ˙ ≥ − α ( h ( x ∣ o j ) ) , t ∈ [ t j , t j + 1 ) , (115)
with an extended class-K \mathcal{K} K function α \alpha α as in § 5.4 . Both Equations (114) and (115) are conditions on the input that the filter applies, and the corresponding existence condition is obtained by taking the supremum over u ∈ U u\in\mathcal{U} u ∈ U as in Equation (26) . This choice has a second practical implication, since for each fixed observation the barrier is time-invariant in the state, so that the training targets can be generated with the standard stationary HJ methods of § 5.6.3 , without any model of the observation dynamics.
Cross-update safety. Conditioning does not remove the discontinuity at an update instant. Replacing o j o_j o j by o j + 1 o_{j+1} o j + 1 changes both the barrier and its predicted safe set in one step. As formalized in Equation (62) , continued safety requires the state at the update instant to lie in the safe set of the new barrier,
x ( t j + 1 ) ∈ { x ∣ h ( x ∣ o j + 1 ) ≥ 0 } , (116) x(t_{j+1})\in\{x\mid h(x\mid o_{j+1})\geq0\}, \tag*{(116)} x ( t j + 1 ) ∈ { x ∣ h ( x ∣ o j + 1 ) ≥ 0 } , (116)
because a CBF inequality enforced under the previous observation carries no information about obstacles that this observation did not contain. Figure 5.2 illustrates the worst case. Under the standing assumptions, the environment is static, previously unseen obstacles appear only at the window boundary, and the robot speed is bounded by v max v_{\max} v m a x . The robot travels at most v max Δ t o v_{\max}\Delta t_o v m a x Δ t o between two updates. Since the sensing window is recentered at the robot’s position, previously unseen obstacles can enter the next observation only within a band of the same depth along the window boundary, so a newly revealed failure set is separated from the robot by at least ρ − v max Δ t o \rho-v_{\max}\Delta t_o ρ − v m a x Δ t o . Let β B \beta_B β B denote the largest distance, measured in the workspace, by which the BRT of an admissible obstacle extends beyond the failure set of that obstacle. Consider first the case in which the barrier is the exact
Figure 5.2. The critical moment of an observation update. Geometry that the current observation does not contain is drawn faded and with dashed boundaries. (a) At t j t_j t j , a previously unobserved obstacle lies beyond the boundary of the sensing window of half-width ρ \rho ρ . Neither the failure set F \mathcal{F} F (grey) nor its BRT B ∞ ( F ) \mathcal{B}_{\infty}(\mathcal{F}) B ∞ ( F ) (red) is part of the observation o j o_j o j . (b) Between two updates the robot travels at most v max Δ t o v_{\max}\Delta t_o v m a x Δ t o , and the window is recentered at the new robot position. The new observation thus gains a band of that depth beyond its previous boundary (dashed) and now contains most of the obstacle. Under the boundary-appearance assumption, previously unseen obstacles can appear only inside this band, and hence at least ρ − v max Δ t o \rho-v_{\max}\Delta t_o ρ − v m a x Δ t o away from the robot. Continued safety requires the state to lie outside B ∞ ( F ) \mathcal{B}_{\infty}(\mathcal{F}) B ∞ ( F ) at the instant at which the barrier is replaced.
Observation-Conditioned Residual Neural Barriers
conditioned value function V ∞ ( ⋅ ∣ o j + 1 ) V_{\infty}(\cdot\mid o_{j+1}) V ∞ ( ⋅ ∣ o j + 1 ) , whose zero level set is the boundary of the BRT of the entire geometry represented by o j + 1 o_{j+1} o j + 1 . A sufficient condition for the robot to remain outside the BRT of every newly revealed obstacle is then
ρ − v max Δ t o > β B . (117) \rho-v_{\max}\Delta t_o>\beta_B. \tag*{(117)} ρ − v m a x Δ t o > β B . (117)
The margin β B \beta_B β B depends on the robot dynamics, the actuation limits, and the admissible obstacle shapes. For the double integrator of the braking example in § 5.2.3 , it is of the order of the braking distance v max 2 / ( 2 u ˉ ) v_{\max}^2/(2\bar{u}) v m a x 2 / ( 2 u ˉ ) . For a vehicle that cannot stop, it is determined by the minimum turning geometry. Condition Equation (117) is the concrete form of the sensing-adequacy requirement Equation (61) for the present configuration. It removes the geometric mechanism by which an update can reveal an obstacle too close to be evaded. Remaining outside each of these tubes individually does not by itself place the state in S ∗ ( o j + 1 ) S^*(o_{j+1}) S ∗ ( o j + 1 ) , because avoidability of each newly revealed obstacle separately does not imply avoidability of their union, as Chapter 6 discusses for the analogous pairwise composition. The condition also does not guarantee Equation (116) for the learned barrier, whose approximation error may displace the predicted boundary. That condition must still be verified at the update instants or protected by an additional margin on the learned barrier.
Residual Barrier Parameterization
The target is the stationary HJ value V ∞ ( ⋅ ∣ o ) V_{\infty}(\cdot\mid o) V ∞ ( ⋅ ∣ o ) , whose nonnegative region is the maximal safe set. ORN-CBF approximates this field with the residual structure of Chapter 4. The ordering V ∞ ( x ∣ o ) ≤ c ( x ∣ o ) V_{\infty}(x \mid o) \le c(x \mid o) V ∞ ( x ∣ o ) ≤ c ( x ∣ o ) permits the observed SDF to supply geometry directly while a network learns the nonnegative difference,
h ^ Ψ ( x ∣ w j ) : = c ( x ∣ o j ) − r ^ Ψ ( x ∣ w j ) , r ^ Ψ ( x ∣ w j ) ≥ 0 , (118) \hat{h}_{\Psi}(x \mid w_j) := c(x \mid o_j) - \hat{r}_{\Psi}(x \mid w_j), \qquad\hat{r}_{\Psi}(x \mid w_j) \ge0, \tag*{(118)} h ^ Ψ ( x ∣ w j ) := c ( x ∣ o j ) − r ^ Ψ ( x ∣ w j ) , r ^ Ψ ( x ∣ w j ) ≥ 0 , (118)
where c ( ⋅ ∣ o j ) c(\cdot\mid o_j) c ( ⋅ ∣ o j ) is computed from the observation and only r ^ Ψ \hat{r}_{\Psi} r ^ Ψ is learned.
Failure-set exclusion guarantee. The requirement Equation (113) follows from the nonnegativity of the residual, exactly as in Chapter 4. The learned barrier satisfies h ^ Ψ ( x ∣ w j ) ≤ c ( x ∣ o j ) \hat{h}_{\Psi}(x \mid w_j) \le c(x \mid o_j) h ^ Ψ ( x ∣ w j ) ≤ c ( x ∣ o j ) , so the predicted safe set S ^ h ( w j ) : = { x ∣ h ^ Ψ ( x ∣ w j ) ≥ 0 } \hat{S}_h(w_j) := \{x \mid\hat{h}_{\Psi}(x \mid w_j) \ge0\} S ^ h ( w j ) := { x ∣ h ^ Ψ ( x ∣ w j ) ≥ 0 } satisfies
S ^ h ( w j ) ⊂ C ( o j ) . (119) \hat{S}_h(w_j) \subset C(o_j). \tag*{(119)} S ^ h ( w j ) ⊂ C ( o j ) . (119)
Every state in the predicted safe set has a nonnegative distance to the observed obstacles. This inclusion does not establish invariance or cover unobserved geometry, and it concerns the set used for current-state filtering, while Chapter 4 imposed it at the predicted terminal state.
Smooth residual output. The output activation enforces the nonnegativity of the residual. ORN-CBF uses the softplus function, a smooth relaxation of the ReLU,
softplus ( z ) = log ( 1 + exp ( z ) ) . (120) \operatorname{softplus}(z) = \log\left(1 + \exp(z)\right). \tag*{(120)} softplus ( z ) = log ( 1 + exp ( z ) ) . (120)
Its derivative is positive for every finite input, so no part of the output can become permanently inactive. The shifted exponential linear unit of Equation (97) shares this property, and softplus is used here because it has a single closed-form expression. The hidden layers use sinusoidal activations, which suit implicit field regression when the accuracy of the gradient matters [94, 85]. The constraint function c ( ⋅ ∣ o j ) c(\cdot\mid o_j) c ( ⋅ ∣ o j ) is available as the discretized SDF, and a numerical interpolant converts these samples into a function that can be evaluated and differentiated at any queried state. This interpolation step limits how smooth the assembled barrier can be, because a bilinear interpolant is only piecewise differentiable and its gradient is discontinuous across cell boundaries. A smooth residual network alone does not make the assembled barrier globally continuously differentiable, and Section 5.6 discusses this limitation.
Network Architecture and Training
The filter queries the barrier at least an order of magnitude more often than observations arrive in the evaluated configurations, so one hypernetwork evaluation per observation serves many control updates, and ORN-CBF adopts the hypernetwork factorization of Section 3.4.2 for this reason. A convolutional hypernetwork H Ψ H_{\Psi} H Ψ with a fully connected head processes the conditioning input w j w_j w j of Equation (112) once per observation update and generates the parameters of a compact main network, a multilayer perceptron (MLP) with sinusoidal hidden activations and the softplus output Equation (120) . The construction yields the pair of mappings
Θ ( w j ) = H Ψ ( w j ) , r ^ Ψ ( x ∣ w j ) = softplus ( M Θ ( w j ) ( x ) ) . (121) \Theta(w_j) = H_{\Psi}(w_j), \qquad\hat{r}_{\Psi}(x \mid w_j) = \operatorname{softplus}\left(M_{\Theta(w_j)}(x)\right). \tag*{(121)} Θ ( w j ) = H Ψ ( w j ) , r ^ Ψ ( x ∣ w j ) = softplus ( M Θ ( w j ) ( x ) ) . (121)
Observation-Conditioned Residual Neural Barriers
The main network receives the state in the window coordinates introduced in § 7.1.3 . Its positional inputs are the robot position relative to the window center p ( x ( t j ) ) p(x(t_j)) p ( x ( t j )) , and its remaining inputs, such as the heading or the velocity, are unchanged. This matches the training data described below, which are generated on a grid attached to the window. For a fixed observation, the map from the world state to the network input is a constant translation, so it leaves the state gradient ∇ x h ^ Ψ \nabla_x\hat{h}_{\Psi} ∇ x h ^ Ψ and the Lie derivatives unchanged, and the barrier can be written as a function of the world state without any further transformation.
The same conditioning input also enters the interpolant that represents the constraint function c ( ⋅ ∣ o j ) c(\cdot\mid o_j) c ( ⋅ ∣ o j ) , and the barrier is assembled by subtraction as in Equation (118) . At points where the interpolant is differentiable, automatic differentiation returns the gradient ∇ x h ^ Ψ ( x ∣ w j ) \nabla_x\hat{h}_{\Psi}(x \mid w_j) ∇ x h ^ Ψ ( x ∣ w j ) of the represented function, from which the Lie derivatives L f 0 h ^ Ψ L_{f_0}\hat{h}_{\Psi} L f 0 h ^ Ψ and L g h ^ Ψ L_g\hat{h}_{\Psi} L g h ^ Ψ follow by Equation (27) . Figure 5.3 shows the complete pipeline from observation to safety filter.
Figure 5.3. Architecture of the ORN-CBF safety filter. The discretized SDF w j w_j w j computed from the observation o j o_j o j is used twice, as the conditioning input of the hypernetwork, which generates the parameters Θ \Theta Θ of the main network representing the nonnegative residual r ^ Ψ \hat{r}_{\Psi} r ^ Ψ , and as the input of the interpolant representing the observed constraint function c ( ⋅ ∣ o j ) c(\cdot\mid o_j) c ( ⋅ ∣ o j ) . Barrier value and gradient are assembled by subtraction as in Equation (118) , and the Lie derivatives L f 0 h ^ Ψ L_{f_0}\hat{h}_{\Psi} L f 0 h ^ Ψ and L g h ^ Ψ L_g\hat{h}_{\Psi} L g h ^ Ψ parameterize the CBF-QP Equation (5.13) together with h ^ Ψ \hat{h}_{\Psi} h ^ Ψ . The softplus output of the main network is not drawn as a separate stage. The hypernetwork runs once per observation update, and the main network and the interpolant are queried at control rate.
The computational benefit of this factorization, measured for the MPC interface in § 6.1.5.2 , applies equally here, because the filter also queries the field many times per conditioning input.
Reachability supervision and positional cropping. The hypernetwork is trained offline by supervised learning as in § 6.1.4.3 . Local observations are collected in simulation and converted into the conditioning inputs w ( m ) w^{(m)} w ( m ) of Equation (112) , and for each observation a grid-based HJ solver propagates the stationary variational inequality to convergence, using the observed SDF as the constraint function, which yields the target V ∞ ( ⋅ ∣ o ( m ) ) V_{\infty}(\cdot\mid o^{(m)}) V ∞ ( ⋅ ∣ o ( m ) ) over a state-space grid. The training objective is the radially weighted mean squared error (RWMSE) of § 6.1.4.3 , whose weighting concentrates model capacity near the safe-set boundary, where the sign of the barrier determines the filter behavior. As in § 6.2.4.4 , the loss is applied to the assembled barrier estimate Equation (118) rather than to the residual in isolation.
The new element of the training procedure is positional cropping. It exploits a difference between the two controller interfaces, which query their learned fields over regions that differ widely in size. An MPC terminal constraint is evaluated at predicted states up to N Δ t v max N\Delta t\,v_{\max} N Δ t v m a x ahead of the robot, so its field must be accurate across most of the sensing window. A safety filter evaluates the barrier only at the current state. Since the observation is recentered at the robot position at every update, the current state remains within a ball of radius v max Δ t o v_{\max}\Delta t_o v m a x Δ t o around the window center while that observation is in use, which is the same bound as in the cross-update analysis of § 7.1.4.1 . The learned field then has to represent the value function only on a small central patch of the positional coordinates, while the remaining state dimensions, such as heading and velocity, must be covered completely. The HJ targets are still computed on the full grid, because the boundary conditions require the complete window, but only the central positional patch is stored and used for training.
Positional cropping reduces the size of the stored dataset and the per-epoch evaluation cost by the ratio of the patch area to the window area. Section 5.5.2 quantifies the resulting reduction relative to the full-window procedure of Chapter 3. Compared with the MPC interface, the safety-filter interface thus demands a higher query rate and greater smoothness, but less spatial coverage, and positional cropping exploits exactly this difference.
ORN-CBF Safety Filter
Figure 5.4 shows the closed-loop arrangement of the complete safety filter. At each control instant t ∈ [ t j , t j + 1 ) t \in[t_j,t_{j+1}) t ∈ [ t j , t j + 1 ) , ORN-CBF receives the current state x x x and the nominal command u n o m u_{\mathrm{nom}} u nom , reuses the main-network parameters Θ ( w j ) = H Ψ ( w j ) \Theta(w_j) = H_{\Psi}(w_j) Θ ( w j ) = H Ψ ( w j ) computed at the latest observation update, and solves the CBF-QP Equation (2.34),
Figure 5.4. Closed-loop arrangement of the ORN-CBF safety filter for a robot that operates on local observations. A nominal controller of arbitrary design issues the command u n o m u_{\mathrm{nom}} u nom . From the current observation o j o_j o j , ORN-CBF generates the barrier candidate h ^ Ψ ( ⋅ ∣ w j ) \hat{h}_{\Psi}(\cdot\mid w_j) h ^ Ψ ( ⋅ ∣ w j ) once per observation update, as detailed in Figure 5.3 . The CBF-QP Equation (5.13) then evaluates this barrier at the measured state x x x at control rate, modifies the command minimally if needed, and forwards the filtered control u ⋆ u^{\star} u ⋆ to the robot. The dashed arrows indicate that the nominal controller may use the same two signals, on which the filter places no requirement.
u ∗ = arg min u ∈ U 1 2 ∥ u − u n o m ∥ 2 2 (122) u^* = \underset{u \in\mathcal{U}}{\arg\min}\ \frac{1}{2}\lVert u-u_{\mathrm{nom}}\rVert_2^2 \tag*{(122)} u ∗ = u ∈ U arg min 2 1 ∥ u − u nom ∥ 2 2 (122)
s.t. L f 0 h ^ Ψ ( x ∣ w j ) + L g h ^ Ψ ( x ∣ w j ) u + γ h ^ Ψ ( x ∣ w j ) ≥ 0 , (123) \text{s.t.}\quad L_{f_0}\hat{h}_{\Psi}(x\mid w_j) + L_g\hat{h}_{\Psi}(x\mid w_j)u + \gamma\hat{h}_{\Psi}(x\mid w_j) \ge0, \tag*{(123)} s.t. L f 0 h ^ Ψ ( x ∣ w j ) + L g h ^ Ψ ( x ∣ w j ) u + γ h ^ Ψ ( x ∣ w j ) ≥ 0 , (123)
where the extended class-K \mathcal{K} K function is chosen linear, α ( s ) = γ s \alpha(s)=\gamma s α ( s ) = γ s with gain γ > 0 \gamma>0 γ > 0 , as is standard in practice. The robot applies the resulting input u ∗ u^* u ∗ , and a nominal command that already satisfies the barrier constraint passes through unchanged. For the robots considered here, U \mathcal{U} U is described by linear inequalities and Equation (5.13b) is affine in u u u , so the optimization is a small convex QP whose size does not depend on the environment complexity, because all geometry enters through the scalar h ^ Ψ \hat{h}_{\Psi} h ^ Ψ and its Lie derivatives.
The main network and the SDF interpolant are implemented in a framework that supports automatic differentiation, which returns exact derivatives where the represented barrier is differentiable. At interpolation cell boundaries and other nonsmooth points, it returns the derivative selected by its computational branch, which is not a classical derivative of a globally smooth field. The main-network weights and the SDF samples enter the QP as runtime parameters, while its structure is fixed and can be precompiled before deployment. Each observation update requires one hypernetwork inference, and each control instant requires one evaluation of the main network and the interpolant with gradients, followed by one QP solve.
Failure-set exclusion Equation (119) holds by construction. Whether h ^ Ψ ( ⋅ ∣ w j ) \hat{h}_{\Psi}(\cdot\mid w_j) h ^ Ψ ( ⋅ ∣ w j ) satisfies the CBF condition is assessed through the closed-loop behavior rather than verified analytically, and because feasibility of the QP Equation (5.13) cannot be ensured in advance, the implementation uses the relaxed form Equation (36) , which always returns an input. Accurate value regression and closed-loop collision avoidance are tested in the next section, and Section 5.6 states the scope of these claims.
Experimental Evaluation
The evaluation examines training cost, barrier approximation, closed-loop safety against MPC and exponential-CBF baselines, generalization to unseen geometry, and transfer to hardware.1 The direct-regression ablation, observation-conditioned neural CBF (ON-CBF), predicts the value without an SDF residual structure and therefore lacks the exclusion guarantee.
Robot Models
The evaluation uses two robot models with complementary characteristics. The first model cannot change its linear speed and allows only limited steering, while the second model has bounded acceleration and cannot change its velocity instantaneously.
Dubins car. The ground robot is modeled as the Dubins car Equation (86) , with a constant forward speed of v = 1.0 m s − 1 v=1.0\ \mathrm{m\,s}^{-1} v = 1.0 m s − 1 and an angular-velocity input limited to ω ∈ [ − 0.5 , 0.5 ] r a d s − 1 \omega\in[-0.5,0.5]\ \mathrm{rad\,s}^{-1} ω ∈ [ − 0.5 , 0.5 ] rad s − 1 , which differ from the limits used in Chapter 3. Because the robot cannot stop, its maximal safe set differs substantially from the geometric free space, and a purely distance-based barrier is inadequate.
Planar double integrator. The aerial robot is a quadrotor operating at constant altitude. It is modeled as a planar double integrator with state x = ( p x , p y , v x , v y ) x = (p_x, p_y, v_x, v_y) x = ( p x , p y , v x , v y ) , control input u = ( a x , a y ) u = (a_x, a_y) u = ( a x , a y ) , and dynamics
x ˙ = [ v x v y a x a y ] (124) \dot{x} =
\begin{bmatrix}
v_x \\
v_y \\
a_x \\
a_y
\end{bmatrix} \tag*{(124)} x ˙ = v x v y a x a y (124)
with limits v x , v y ∈ [ − 2 , 2 ] v_x, v_y \in[-2, 2] v x , v y ∈ [ − 2 , 2 ] m s− 1 ^{-1} − 1 and a x , a y ∈ [ − 1 , 1 ] a_x, a_y \in[-1, 1] a x , a y ∈ [ − 1 , 1 ] m s− 2 ^{-2} − 2 . This model describes quadrotors with limited acceleration authority, for example when they transport loads. It is the multidimensional counterpart of the braking example in § 5.2.3 , where the unsafe region extends beyond the obstacle by the braking distance required at the current approach speed. The model also illustrates the relative-degree issue of § 5.4 , since a position-based distance constraint has relative degree two for acceleration inputs, which motivates the exponential-CBF baseline of § 7.3.1.4 .
Training Setup and Learned Barriers
Training data and targets. Table 5.1 summarizes the data generation and the HJ targets. For the Dubins car, 2500 occupancy grids are collected in a simulated warehouse, each covering 6 × 6 6 \times6 6 × 6 m at a resolution of 0.06 m. For the double integrator, 2000 maps of the same size are collected at a resolution of 0.075 m in a forest-like environment with cylindrical obstacles. Each map and its horizontally flipped version are retained in four orientations, separated by 90 ∘ 90^\circ 9 0 ∘ , which yields 20 000 and 16 000 SDF observations, respectively, split into training and validation data after augmentation as in Chapter 3. The stationary HJ targets are computed with a grid-based solver.2 The Dubins-car grid has size 100 × 100 × 30 100 \times100 \times30 100 × 100 × 30 over ( p x , p y , θ ) (p_x, p_y, \theta) ( p x , p y , θ ) , and solving the corresponding problems for the whole dataset requires about 1.17 h of GPU time. The double-integrator grid has size 80 × 80 × 20 × 20 80 \times80 \times20 \times20 80 × 80 × 20 × 20 over ( p x , p y , v x , v y ) (p_x, p_y, v_x, v_y) ( p x , p y , v x , v y ) , for which the dataset requires about 16.3 h. Following § 7.2.0.2 , only the central 16 × 16 16 \times16 16 × 16 positional patch of each solution is stored and used for training, while the non-positional dimensions are kept in full. For the Dubins car, this reduces the stored data and the per-epoch computation by a factor of about 39 relative to the complete window.
Table 5.1. ORN-CBF data generation and Hamilton–Jacobi targets for the two robot models.
Network architecture and optimization. Table 5.2 lists the model and optimization settings shared by both robot models, and Table 5.3 lists the entries that differ between them. Full-window training of the Dubins-car model in Chapter 3 required 7.5 h for 150 epochs (Table 3.2 ). At an equal number of epochs, positional cropping thus reduces the training time by roughly an order of magnitude.
Table 5.2. ORN-CBF configuration shared by both robot models.
Table 5.3. ORN-CBF configuration specific to each robot model.
Barrier approximation. Figure 5.5 visualizes a learned barrier for the Dubins car on a validation observation. As in Chapter 3, the learned unsafe region is visibly larger than the occupied region and depends on the heading. States from which the constant-speed vehicle can no longer turn away in time are classified as unsafe although their distance to the obstacles is positive. A geometric barrier does not account for this effect, while the learned barrier provides it at the observation rate.
Figure 5.5. A learned ORN-CBF for the Dubins car on a validation observation. (a) The observed SDF c ( ⋅ ∣ o ) c(\cdot\mid o) c ( ⋅ ∣ o ) with the obstacle outlines c = 0 c = 0 c = 0 (black) and the robot position at heading θ = π / 2 \theta= \pi/2 θ = π /2 (dart, moving upward). (b) The numerical HJ target V ∞ ( ⋅ ∣ o ) V_{\infty}(\cdot\mid o) V ∞ ( ⋅ ∣ o ) at the same heading with its zero level set (dashed). Red shading marks the unsafe states, which extend beyond the obstacle outlines in the directions in which the robot approaches the obstacles head-on, and the orange square marks the central 16 × 16 16 \times16 16 × 16 positional patch on which the residual network is trained. (c) The learned barrier h ^ Ψ ( ⋅ ∣ w ) \hat{h}_{\Psi}(\cdot\mid w) h ^ Ψ ( ⋅ ∣ w ) on this patch whose zero level set (green) closely follows the HJ boundary. The asymmetry of the unsafe region reflects the turning limitation of the constant-speed vehicle.
Ground-Robot Simulation
Experimental setup and baselines. The first closed-loop study evaluates the safety filter for the ground robot in physics-based Gazebo 3D simulations of a warehouse environment (Figure 5.6 ). The task is the local navigation problem of the previous chapters, in which the robot must reach a goal position behind randomly distributed obstacles using only local observations. The nominal controller is the SDF-MPC local planner of § 6.1.5.3 , and either ORN-CBF or its direct-regression ablation ON-CBF is placed between this planner and the robot. Three MPC planners of § 6.1.5.3 operate without a safety filter, SDF-MPC, DCBF-MPC, and NTC-MPC, the last retrained for the Dubins-car speed and turning-rate limits used in this chapter. NTC-MPC and ORN-CBF follow the same reachability-supervision principle for static obstacles, but NTC-MPC supplies a terminal constraint to the MPC problem, while ORN-CBF supplies a barrier to a QP filter that operates downstream of a separate planner. Related observation-based neural CBFs [118, 96] assume different observation modalities and are not directly applicable in this setting.
Figure 5.6. Ground-robot simulation study. Left: scene from the Gazebo warehouse environment. Right: the corresponding local observation from which the ORN-CBF barrier is generated.
All MPC planners run at 20 Hz with prediction interval Δ t = 0.1 s \Delta t = 0.1\,\mathrm{s} Δ t = 0.1 s , implemented in CasADi [138] with the IPOPT NLP solver and deployed as ROS 2 nodes [139]. The
CBF-QP filters are solved with qpOASES and run at 200 Hz with gain γ = 2.6 \gamma= 2.6 γ = 2.6 , while the costmap updates at 20 Hz. The deployed filters use the relaxed problem Equation (36) rather than the hard-constrained form Equation (5.13), so that the solver always returns an admissible input, and the returned input solves Equation (5.13) whenever the slack is zero. For each method and each horizon N ∈ { 5 , 10 , 20 , 30 } N \in\{5, 10, 20, 30\} N ∈ { 5 , 10 , 20 , 30 } , 100 runs with randomized obstacle configurations are performed, and any collision counts as a failure.
With this observation update rate, the robot travels v max Δ t o = 0.05 v_{\max}\Delta t_o = 0.05 v m a x Δ t o = 0.05 m between two updates, which leaves ρ − v max Δ t o = 2.95 \rho- v_{\max}\Delta t_o = 2.95 ρ − v m a x Δ t o = 2.95 m on the left-hand side of the sensing condition Equation (117) . The margin β B \beta_B β B on the right-hand side is determined by the turning geometry of the constant-speed robot. Its minimum turning radius is v / ω max = 2 v/\omega_{\max} = 2 v / ω m a x = 2 m, and a robot heading straight at a flat wall advances by that radius while turning to travel parallel to it, so β B \beta_B β B is of the order of 2 m for such geometry. Condition Equation (117) therefore holds with a margin of roughly 1 m for this geometry. This estimate is a plausibility check rather than a bound over the evaluated scenes, because concave geometry, such as the inner corner of two shelves, enlarges β B \beta_B β B and can exceed that margin.
Simulation results. Figure 5.7 shows the obtained success rates, and three observations summarize the study. First, the plain SDF-MPC planner combined with ORN-CBF outperforms every unfiltered planner for N ≤ 20 N \le20 N ≤ 20 , including SDF-MPC itself, DCBF-MPC, and NTC-MPC, and reaches the same success rate as NTC-MPC at N = 30 N = 30 N = 30 . One plausible explanation is the difference between the controller interfaces. The filter evaluates the reachability boundary at the current state at 200 Hz, while the planners constrain predicted states once per planning cycle. This difference can make the filter less sensitive to prediction and approximation errors within the horizon, although the experiment does not isolate the effect. Second, the advantage is largest at short horizons, where the geometric baselines degrade considerably for the reasons discussed in § 6.1.5.4 . Both filtered variants remain nearly horizon-independent, and the direct-regression variant ON-CBF also outperforms every baseline at the shortest horizon. Third, ORN-CBF consistently matches or exceeds ON-CBF, which agrees with the approximation advantage of residual learning observed in § 6.2.5.2 .
Figure 5.7. Success rates of the ground-robot simulation study over the MPC prediction-horizon length, with 100 randomized runs per configuration. The safety filters ORN-CBF and ON-CBF are combined with the plain SDF-MPC planner. Both outperform every MPC-based planner for N ≤ 20 N \le20 N ≤ 20 , including the reachability-informed NTC-MPC of Chapter 3, which reaches a similar rate at N = 30 N = 30 N = 30 . ORN-CBF achieves the highest rates overall.
Quadrotor Simulation
Experimental setup and baselines. The second study examines the quadrotor model in a forest-like environment (Figure 5.8 ) and shifts the focus to the generalization of the barrier itself. The nominal controller is a linear-quadratic regulator (LQR) with Q = diag ( 10 , 10 , 1 , 1 ) Q = \operatorname{diag}(10, 10, 1, 1) Q = diag ( 10 , 10 , 1 , 1 ) and R = diag ( 1 , 1 ) R = \operatorname{diag}(1, 1) R = diag ( 1 , 1 ) . It has no obstacle awareness, so every avoidance maneuver originates from the filter. The classical baseline is a second-order exponential CBF (ECBF) [60 ] constructed from the observed SDF. Its order follows from the relative degree of the SDF under double-integrator dynamics, and its gain vector K e = [ 1.0 , 2.0 ] K_e = [1.0, 2.0] K e = [ 1.0 , 2.0 ] is tuned in the training environment. ORN-CBF and ON-CBF are trained in the forest-like environment with cylindrical obstacles of 0.5 0.5 0.5 m radius and evaluated both in this domain and in an out-of-domain environment with radii from 0.2 0.2 0.2 m to 1.0 1.0 1.0 m. The ECBF uses the same fixed, hand-tuned gains in both environments. Each configuration contains 200 scenarios with 10 randomly placed obstacles. The CBF-QPs run at 200 Hz with γ = 0.7 \gamma= 0.7 γ = 0.7 , and the costmap updates at 5 Hz.
Figure 5.8. Quadrotor simulation study. Left: scene from the Gazebo forest-like environment. Right: the corresponding local observation.
Simulation results. Figure 5.9 presents the outcomes. In the training domain, ORN-CBF and ON-CBF succeed in 91.5% and 90.5% of the scenarios, respectively, compared with 58.5% for the ECBF, whose failures are mostly collisions. A plausible explanation is that the ECBF barrier, built from the observed SDF, does not match the velocity- and geometry-dependent reachability boundary uniformly, while the learned barrier represents this dependence directly. The experiment supports this interpretation but does not separate it from the effect of the gain-tuning procedure. In the out-of-domain environment, the success rates of the learned filters decrease by only one to two percentage points, to 90.5% and 88.5%, while that of the ECBF decreases to 45.0%. The fixed ECBF gains appear to require retuning as the obstacle scale changes, while the observation-conditioned barriers regenerate their dynamics-aware fields from each observation. The remaining collisions and timeouts may be caused by the approximation error, by signal delays, or by the finite size and resolution of the costmap. Figure 5.10 shows a representative run. The LQR drives the quadrotor straight toward the goal, and the filter intervenes as the barrier value approaches zero and steers the quadrotor around the obstacles while the recorded value remains positive throughout.
Figure 5.9. Outcomes of the quadrotor simulation study over 200 randomized scenarios per configuration, split into successes, timeouts, and collisions. (a) In the training domain, the learned filters succeed in more than 90% of the runs, compared with 58.5% for the hand-tuned ECBF. (b) In the out-of-domain environment with unseen obstacle radii, the success rates of the learned filters decrease by at most two percentage points, while that of the ECBF decreases to 45.0%.
Figure 5.10. Representative quadrotor scenario. (a) Executed motion under the LQR nominal controller with the ORN-CBF safety filter among the ten cylindrical obstacles (gray), colored by time. The filter steers the quadrotor around the obstacles with which the goal-directed LQR would otherwise collide. (b) Evolution of the barrier value h ^ Ψ ( x ( t ) ∣ w j ) \hat{h}_{\Psi}(x(t) \mid w_j) h ^ Ψ ( x ( t ) ∣ w j ) , which decreases toward zero during the avoidance maneuvers and remains positive throughout the run.
Hardware Experiments
Ground-robot experiments. The ground robot is evaluated on the delivery platform of § 6.1.5.5 , which operates at constant forward speed, so the Dubins model applies, and all computation runs onboard (Figure 5.11 ). ORN-CBF and ON-CBF are deployed after training on synthetic warehouse data alone, without fine-tuning. The comparison follows the simulation study, with SDF-MPC, DCBF-MPC, and NTC-MPC running at 20 Hz with N = 10 N = 10 N = 10 and Δ t = 0.1 \Delta t = 0.1 Δ t = 0.1 s, and with the two filters running at 200 Hz downstream of SDF-MPC. Ten trials per method are performed with randomized static obstacle configurations.
Figure 5.11. Ground-robot hardware experiments. Left: the differential-drive robot among the static obstacles. Right: visualization of the local observation from which the barrier is generated onboard.
Table 5.4 summarizes the outcomes. The robot completes all ten configurations using SDF-MPC with either ORN-CBF or ON-CBF. The best unfiltered planner, NTC-MPC, succeeds in seven, and the geometric planners in at most four, so the ordering observed in simulation also appears on hardware. Figure 5.12 shows the barrier values of both filters in one representative obstacle configuration. The values occasionally become slightly negative, which may reflect model mismatch or measurement noise, but no collision occurs, because the inflation margin in Equation (111) provides a physical buffer and the filter rapidly restores a positive value. This trace illustrates the practical role of separating the learned zero level set from the physical collision boundary. While the barrier is negative, the state lies outside the predicted safe set, so no invariance guarantee applies to it.
Table 5.4. Hardware experiment results for the ground robot over ten randomized obstacle configurations (Dubins car model, MPC horizon N = 10 N = 10 N = 10 ).
Figure 5.12. Barrier values of the ORN-CBF and ON-CBF filters in one representative obstacle configuration of the ground-robot hardware experiments, with one run per filter under the same experimental setting and the zero level marked by the dotted line. Briefly negative values are followed by recovery, and no collision occurs. The physical inflation margin separates the represented failure boundary from physical contact.
Quadrotor experiments. The aerial evaluation uses a Crazyflie nano-quadrotor with four laser range sensors. During flight, the quadrotor rotates continuously about its vertical axis, so the four range measurements accumulate into a local costmap that updates at 10 Hz, and the computation itself runs offboard. With the same LQR controller and the same ORN-CBF model as in § 7.3.1.4 , the quadrotor avoids the obstacles despite sparse and delayed observations. This experiment is a deployment demonstration rather than a statistical comparison, and it shows transfer to a perception configuration that is more demanding than the one used for training.
Discussion
The experiments show that observation-conditioned residual fields support real-time safety filtering and achieve success rates that match or exceed those of the evaluated geometric barriers and MPC planners. The following discussion separates these results from the conditions required for a formal guarantee.
Guarantee scope. The architecture guarantees failure-set exclusion, and the sensing condition Equation (117) together with the boundary-only appearance of new information bounds how close a newly revealed obstacle can be. Under these conditions, with a static environment and an accurate model with full state feedback, the CBF theory of § 5.4 yields forward invariance of the predicted safe set as long as the learned barrier satisfies the CBF condition and the slack of the relaxed QP is zero. The experiments support both requirements empirically rather than verifying them formally. The barrier is trained by value regression, so the CBF condition itself is not verified separately. In addition, the assembled barrier inherits the nonsmooth points of the SDF and of its bilinear interpolant. At these points, automatic differentiation returns a branch derivative that suffices for the implementation, and no observed filter failure was attributable to this property. The hardware traces of Figure 5.12 show what these qualifications mean in practice, since the barrier value briefly became negative and the physical safety margin prevented a collision while the filter restored a positive value. Verifying the barrier condition on the learned field, with a smooth constraint function and interpolant where the assembled barrier is nonsmooth, would turn this empirical support into a formal statement, and Chapter 8 names the tools available for this step.
Safety filtering and MPC terminal constraints. The ground-robot study permits a direct comparison of the two controller interfaces, because NTC-MPC and the two filters are evaluated in the same experiment, on the same robot, and over the same randomized obstacle configurations. ORN-CBF achieved higher success rates for N ≤ 20 N \le20 N ≤ 20 and the same rate at N = 30 N = 30 N = 30 . This outcome is consistent with the different operation of the two interfaces. The filter evaluates safety at the current state at 200 Hz, while NTC-MPC constrains a predicted terminal state at 20 Hz, so the filter can react sooner and depends less directly on the prediction accuracy. The experiment does not isolate the interface completely, because ORN-CBF also uses the residual parameterization that NTC-MPC lacks and
Discussion
operates downstream of a separate planner. The direct-regression ablation ON-CBF is the closer counterpart, since it differs from NTC-MPC mainly in the interface, and it also outperformed NTC-MPC for N ≤ 20 N \le20 N ≤ 20 . The filtering interface has drawbacks of its own. A safety filter acts on the current state only, has no task model, can modify only the control command, and depends on the nominal controller for progress. The quadrotor timeouts show that the closed loop can remain safe and still make no progress when the nominal controller performs poorly. The two interfaces are complementary, and the same learned representation can support either of them, or both, where the system architecture permits.
Scalability of offline supervision. The offline stage retains the dimensionality limit of grid-based HJ solvers, and the four-dimensional double integrator already required 16.3 h of target computation. As noted in the preceding chapters, other sources of supervision could replace the grid solver. Because ORN-CBF already assumes control-affine dynamics with polytopic input constraints, the vertex-restricted search of Chapter 7 applies to it directly, although its labels would have to be generated for every training observation. Positional cropping remains compatible with any of these options, because it reduces the amount of data that is stored and fitted rather than the reachability problem that is solved.
Dynamic-environment limitation. The restriction to static environments is the main limitation of the method. The infinite-horizon value V ∞ ( ⋅ ∣ o ) V_{\infty}(\cdot\mid o) V ∞ ( ⋅ ∣ o ) remains stationary during an observation only when the failure set is static. Moving obstacles would require time-varying targets and temporal conditioning, as in Chapter 4, together with a considerably more expensive data-generation process. The next chapter instead formulates reachability in relative robot–obstacle coordinates, which makes the pairwise collision set stationary, so a single offline computation covers all obstacles of the modeled class, and a smooth composition extends the filter to a varying number of moving obstacles.
Summary
ORN-CBF combines fixed-observation HJ learning, residual failure-set exclusion, and positional cropping, which reduced training time by roughly an order of magnitude relative to Chapter 3. The filter matched or outperformed the evaluated MPC baselines at every horizon in ground-robot simulations. Under the change of obstacle geometry in the quadrotor study, the success rates of the learned filters decreased by at most two percentage points, compared with more than thirteen for the ECBF. The delivery robot completed all hardware trials using SDF-MPC with ORN-CBF and with its direct-regression variant ON-CBF, and the ORN-CBF model also transferred to a Crazyflie quadrotor with four-beam sensing. The method addresses real-time safety filtering at 200 Hz and structural exclusion (questions 1 and 3). The next chapter extends filtering to moving obstacles through relative coordinates and pairwise composition.
Summary
Neural Control Barrier Functions in Dynamic Environments
This chapter presents the composite neural CBF (CN-CBF), based on the author’s paper [103] at the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) 2026. The method learns one reachability-based residual barrier in relative robot–obstacle coordinates, where the collision set is stationary, and smoothly combines its evaluations over the observed obstacles. The shared model handles a varying obstacle count without retraining. CN-CBF addresses dynamic safety filtering (questions 2 and 1) and preserves failure-set exclusion through composition (question 3).
Motivation
CN-CBF extends the safety-filter interface of Chapter 5 from static scenes to environments with moving obstacles, whose future positions are uncertain and whose number varies as they enter and leave the sensing range. Two features challenge the preceding methods. Moving obstacles make the safe set time-varying, which requires the derivative in Equation (32) , and prediction-conditioned learning, as in Chapter 4, handles this variation only at the cost of many scene-specific HJ solutions. Variable obstacle counts add a second difficulty, because scene-level training must cover many joint configurations, and representations based on fixed-size obstacle lists limit the number of obstacles represented. CN-CBF addresses both through a shared pairwise model.
Figure 6.1 shows the unsafe region for one moving obstacle. Its shape depends on relative heading and motion, and it translates with the obstacle. A distance boundary alone does not identify these dynamically unsafe states, while a pairwise reachability barrier accounts for the robot’s actuation limits and the assumed obstacle motion and allows the filter to intervene before recovery becomes impossible.
Distance-based barrier
h = c r e l ( z ) , S h ⊇ S ⋆ ( q ) h=c_{\mathrm{rel}}(z),\quad S_h\supseteq S^\star(q) h = c rel ( z ) , S h ⊇ S ⋆ ( q )
Reachability-based barrier
h ⋆ = V ∞ ( z ) , S h ⋆ = S ⋆ ( q ) h^\star=V_\infty(z),\quad S_{h^\star}=S^\star(q) h ⋆ = V ∞ ( z ) , S h ⋆ = S ⋆ ( q )
obstacle
X ∖ S ⋆ ( q ) X\setminus S^\star(q) X ∖ S ⋆ ( q )
{ h = 0 } \{h=0\} { h = 0 }
{ h ⋆ = 0 } = ∂ S ⋆ ( q ) \{h^\star=0\}=\partial S^\star(q) { h ⋆ = 0 } = ∂ S ⋆ ( q )
x ( t + δ ) ∉ S ⋆ ( q ) x(t+\delta)\notin S^\star(q) x ( t + δ ) ∈ / S ⋆ ( q )
x ( t + δ ) ∈ S ⋆ ( q ) x(t+\delta)\in S^\star(q) x ( t + δ ) ∈ S ⋆ ( q )
x ( t + 2 δ ) ∉ S ⋆ ( q ) x(t+2\delta)\notin S^\star(q) x ( t + 2 δ ) ∈ / S ⋆ ( q )
x ( t + 2 δ ) ∈ S ⋆ ( q ) x(t+2\delta)\in S^\star(q) x ( t + 2 δ ) ∈ S ⋆ ( q )
X ∖ S ⋆ ( q ) X\setminus S^\star(q) X ∖ S ⋆ ( q ) : collision unavoidable
the same boundary, invisible to h h h
Figure 6.1. Effect of the barrier candidate on a CBF-QP safety filter in a dynamic environment, shown at three instants separated by the short interval δ \delta δ . A ground robot that cannot stop is driven to the right by a goal-directed nominal controller, while an obstacle crosses its path from the front left. Dotted outlines mark the earlier positions, the dashed arrow at each obstacle shows its velocity, and the thin dashed curves show the motion under an extremal admissible input. The red region is the set X ∖ S ⋆ ( q ) X\setminus S^\star(q) X ∖ S ⋆ ( q ) of robot states from which the collision with an obstacle in state q q q can no longer be avoided at the current heading. Both barriers are evaluated on the relative state z z z of the robot–obstacle pair defined in § 8.3.3.1 . Left: the barrier is the obstacle distance c r e l ( z ) c_{\mathrm{rel}}(z) c rel ( z ) , whose safe set also contains the red region. That boundary is invisible to the filter and is drawn as a dashed outline only, the filter intervenes too late, and at t + 2 δ t+2\delta t + 2 δ both extremal turns end in a collision. Right: the reachability-based barrier h ⋆ h^\star h ⋆ is the stationary HJ value function V ∞ ( z ) V_\infty(z) V ∞ ( z ) , whose zero level set is the boundary of the red region, so the filter acts already at t t t and the robot stays safe.
In relative coordinates, collision is a fixed region around the origin, and the robot input opposes the bounded obstacle input in a stationary reachability problem. One offline solution and one compact model then describe every obstacle of the modeled class, and a smooth approximation of the minimum combines the pairwise barriers, so that the number of obstacles can vary at runtime. As in the preceding chapters, each pairwise barrier is a closed-form collision constraint minus a nonnegative learned residual, and the composite barrier inherits the exclusion property for every observed obstacle. The experiments in § 8.4.1 compare the filter with four MPC planners, including RNTC-MPC, and with two classical CBF constructions, in simulation and on a physical delivery robot and a quadrotor.
Related Work
This section reviews the work most closely related to the question of this chapter, which is how to obtain barrier candidates for a varying number of moving obstacles. The safety-filtering literature for unknown static environments is reviewed in § 7.1.2 , the MPC-based literature on dynamic environments in § 6.2.2 , and the broader context in Chapter 1.
Learning-based barrier design for mobile robots has produced barriers learned from expert demonstrations [89], neural CBFs that respect input limits [91], and real-time constructions from online Gaussian-splatting maps [153]. As discussed in § 7.1.2 , such barriers typically represent either a conservative subset or an unsafe superset of the maximal safe set obtainable through HJ reachability [99]. Reachability-grounded constructions address this limitation but require the environment to be known in advance [73]. Observation-conditioned neural CBFs remove that restriction, either through the residual architecture of Chapter 5 [102] or with added uncertainty estimation [97], yet both condition on an instantaneous observation of static geometry and do not model obstacle motion. A neural approximation of the joint time-varying value function, as in Chapter 4 [101], does model that motion. However, the joint problem couples all obstacles, so the supervision cost grows combinatorially with the variety of scenes, and the trained model remains restricted to the sensing range used to generate the training scenes. CN-CBF replaces the joint value function with an aggregation of pairwise value functions, which reduces the offline effort from tens of hours to minutes at the cost of the approximation analyzed in § 8.3.3.3 and § 8.4.2 .
The second relevant line of work composes several barrier functions into a single one, and it divides into two groups. The first group studies the composition itself. Boolean compositions of safety specifications lead to nonsmooth barriers based on pointwise minima and maxima [154], and their smooth log-sum-exp relaxations preserve differentiability and provide explicit conditions under which the composed function is again a valid CBF [155, 156, 157]. The second group applies such compositions to concrete systems. A composite CBF tailored to quadrotor flight handles only static environments [158], and time-varying soft-maximum barriers yield closed-form safe controllers but do not impose actuation limits [159]. Sequential neural barriers learn robot–obstacle interaction dynamics from data, but they aggregate the learned components nonsmoothly, which complicates training and produces conservative safe sets [160]. CN-CBF adopts the smooth composition of the first group, while its pairwise barriers are reachability-supervised residual models rather than the geometric or data-driven barriers of the second. Each component thus approximates the maximal pairwise safe set under actuation limits and excludes its failure set by construction, and a single shared model serves every obstacle.
Problem Statement
This section formalizes navigation among moving obstacles within the safety-filtering framework of § 5.4 . The goal is to design a barrier candidate that depends on the robot state and on a varying number of obstacle states and is inexpensive enough for the CBF-QP to run at control rate.
Navigation setting. The robot is described by the control-affine continuous-time model of § 7.1.3 ,
x ˙ = f 0 ( x ) + g ( x ) u , x ∈ X , u ∈ U , (125) \dot{x}=f_0(x)+g(x)u,\qquad x\in\mathcal{X},\qquad u\in\mathcal{U}, \tag*{(125)} x ˙ = f 0 ( x ) + g ( x ) u , x ∈ X , u ∈ U , (125)
with full state feedback and a nominal controller of arbitrary design whose command u n o m ( t ) u_{\mathrm{nom}}(t) u nom ( t ) is not assumed to be safe. The environment contains m ∈ N 0 m\in\mathbb{N}_0 m ∈ N 0 moving obstacles indexed by i i i , and this count may change as obstacles enter and leave the sensing range. Obstacle i i i is described by a state q i ∈ Q ⊆ R n q q_i\in\mathcal{Q}\subseteq\mathbb{R}^{n_q} q i ∈ Q ⊆ R n q , which typically contains position and velocity, and follows an assumed motion model ,
q ˙ = ν ( q , d ) , d ∈ D , (126) \dot{q}=\nu(q,d),\qquad d\in\mathcal{D}, \tag*{(126)} q ˙ = ν ( q , d ) , d ∈ D , (126)
where d d d is the obstacle input, such as a turning rate or an acceleration. The compact set D \mathcal{D} D bounds the motion capabilities attributed to the obstacle. Model Equation (126) plays the role of the disturbance model in § 5.1.1 , since the obstacle may realize any admissible input signal and safety must hold against all of them. At update instants t j t_j t j , separated by the period Δ t o \Delta t_o Δ t o , a perception module estimates every obstacle state within detection range. The observation at update j j j is the tuple
o j = ( q 1 , … , q m ) , (127) o_j=(q_1,\ldots,q_m), \tag*{(127)} o j = ( q 1 , … , q m ) , (127)
which is an observation in the sense of Equation (53) , expressed as a list of obstacle states rather than as an occupancy grid. Because the obstacle states are given in a fixed frame, this observation depends on time and not on the robot state, which is the second case of § 5.8.1 . Unlike in the preceding chapters, the perception output is used without further processing, so the conditioning input coincides with the observation, w = o w=o w = o , and enters the learned barrier through the relative states introduced in § 8.3.3.1 . For m = 0 m=0 m = 0 , the tuple is empty and no moving-obstacle barrier constraint is imposed. A collision occurs when the robot–obstacle distance is smaller than their combined footprint radius, and the full failure set is the union of these pairwise collision configurations.
Design problem. The goal is to construct a barrier candidate that is continuously differentiable on the collision-free operating region away from any geometric singularities and that
enforces collision avoidance with respect to all currently observed obstacles simultaneously, accounting for their motion,
approximates, for each robot–obstacle pair, the maximal safe set obtainable by HJ reachability under the robot’s actuation limits and the assumed obstacle model Equation (126) , rather than the geometric obstacle distance alone,
satisfies the failure-set exclusion property by construction, so that no configuration in which the robot collides with a represented obstacle is ever predicted safe, regardless of the learning error, and
handles any number of obstacles, including none, without retraining and without fixed-dimension scene encodings, and is inexpensive enough to evaluate and to differentiate for the CBF-QP Equation (2.34) to run at control rates of hundreds of hertz.
The second and third requirements are the same as in Chapter 5, while the first and the fourth are the dynamic-environment demands that the previous chapter explicitly excluded.
Standing assumptions. The setting rests on four assumptions. First, the perception module provides accurate states for every obstacle within detection range, while perception itself lies outside the scope of this dissertation. Second, the obstacles are non-interactive and follow the model class Equation (126) , which means that they do not yield to the robot and that their inputs remain within D D D . The choice of these bounds trades robustness against conservatism, and § 8.4.1.1 discusses their calibration from recorded motion. Third, the static geometry of the evaluated scenarios does not restrict the motion of the robot, and § 8.4.2 explains how CN-CBF can be composed with a static-environment barrier such as ORN-CBF. Fourth, the detection range, the update period, and the robot and obstacle speeds satisfy the cross-update condition in § 8.3.3.5 , so that a newly detected obstacle does not make the current robot state unsafe when it enters the composition.
Composite Neural Barriers in Relative Coordinates
The method defines a stationary pairwise reachability problem, learns a shared residual barrier, and derives its smooth composition and time-varying CBF condition. The final formulation includes obstacle-update conditions and the scope of its guarantees.
Relative Dynamics and Pairwise Reachability
Consider first a single obstacle with state q q q and assumed dynamics Equation (126) . A direct application of § 5.6.2 would track the predicted obstacle motion with a time-varying constraint c ( x , t ) c(x,t) c ( x , t ) , as in Chapter 4, and the resulting value function would require recomputation whenever the prediction changes. CN-CBF instead uses the property that a collision depends on the robot–obstacle configuration and not on the absolute location of the encounter, so the pair can be described by a relative state. Formally, let a continuously differentiable map
σ : X × Q → Z ⊆ R n z , z = σ ( x , q ) , (128) \sigma: \mathcal{X} \times\mathcal{Q} \to\mathcal{Z} \subseteq\mathbb{R}^{n_z}, \qquad z = \sigma(x,q), \tag*{(128)} σ : X × Q → Z ⊆ R n z , z = σ ( x , q ) , (128)
extract the relative state z z z from the robot and obstacle states. It typically contains the relative position, the relative orientation or velocity, and any obstacle quantity that affects the future relative motion. The map σ \sigma σ is a design choice tied to the concrete robot and obstacle models, for which § 8.4.1.1 gives two concrete examples. Differentiating Equation (128) along the robot and obstacle dynamics yields the relative dynamics
z ˙ = ∂ σ ∂ x ( x , q ) x ˙ + ∂ σ ∂ q ( x , q ) q ˙ = : f r e l ( z , u , d ) , (129) \dot{z} = \frac{\partial\sigma}{\partial x}(x,q)\dot{x} + \frac{\partial\sigma}{\partial q}(x,q)\dot{q} =: f_{\mathrm{rel}}(z,u,d), \tag*{(129)} z ˙ = ∂ x ∂ σ ( x , q ) x ˙ + ∂ q ∂ σ ( x , q ) q ˙ =: f rel ( z , u , d ) , (129)
where the defining requirement on σ \sigma σ is that the right-hand side can be expressed as a function of the relative state alone.1 The relative system Equation (129) has the two-input structure of Equation (1) , in which the robot input u u u drives the relative state while the obstacle input d d d perturbs it within the assumed motion bounds.
In relative coordinates, the collision specification becomes stationary. Let R min > 0 R_{\min} > 0 R m i n > 0 denote the sum of the robot and obstacle footprint radii, including any physical safety margin, and let p r e l ( z ) ∈ R 2 p_{\mathrm{rel}}(z) \in\mathbb{R}^{2} p rel ( z ) ∈ R 2 denote the relative position contained in z z z . The *pairwise constraint function and the associated failure set, following the conventions of § 5.2 , are
c r e l ( z ) : = ∥ p r e l ( z ) ∥ 2 − R min , F r e l : = { z ∈ Z ∣ c r e l ( z ) < 0 } . (130) c_{\mathrm{rel}}(z) := \lVert p_{\mathrm{rel}}(z)\rVert_2 - R_{\min}, \qquad\mathcal{F}_{\mathrm{rel}} := \{z \in\mathcal{Z} \mid c_{\mathrm{rel}}(z) < 0\}. \tag*{(130)} c rel ( z ) := ∥ p rel ( z ) ∥ 2 − R m i n , F rel := { z ∈ Z ∣ c rel ( z ) < 0 } . (130)
The set F r e l \mathcal{F}_{\mathrm{rel}} F rel is a fixed cylinder around the origin of the relative-position coordinates, so that contact always corresponds to the same relative states, regardless of the absolute motion of the pair. The change of coordinates removes the time variation that prevented a direct stationary analysis.
The pairwise problem now has the robust-avoidance form of Section 2.5, which characterizes the relative states from which the robot can avoid F r e l \mathcal{F}_{\mathrm{rel}} F rel indefinitely under every admissible obstacle behavior. The obstacle input takes the role of the adversarial player, formalized through the nonanticipative strategies of § 5.1.1 . The stationary value function V ∞ : Z → R V_{\infty} : \mathcal{Z} \to\mathbb{R} V ∞ : Z → R of Equation (46) then solves Equation (47) for f r e l f_{\mathrm{rel}} f rel and c r e l c_{\mathrm{rel}} c rel , with the Hamiltonian Equation (40) maximizing over u ∈ U u \in\mathcal{U} u ∈ U and minimizing over d ∈ D d \in\mathcal{D} d ∈ D . Its nonnegative superlevel set
S r e l ⋆ : = { z ∈ Z ∣ V ∞ ( z ) ≥ 0 } (131) \mathcal{S}_{\mathrm{rel}}^{\star} := \{z \in\mathcal{Z} \mid V_{\infty}(z) \ge0\} \tag*{(131)} S rel ⋆ := { z ∈ Z ∣ V ∞ ( z ) ≥ 0 } (131)
is the maximal robustly safe set of the pairwise problem, that is, the largest set of relative configurations from which collision with the modeled obstacle class remains avoidable within the actuation limits. Its complement is the pairwise backward reachable tube (BRT), the set of relative states from which the obstacle can force a collision, whose positional extent depends on the remaining components of the relative state, such as the relative heading and the obstacle speed. Figure 6.5 visualizes this set for one robot–obstacle pair.
Figure 6.5. Positional slice of the learned pairwise barrier h ^ Θ \hat{h}_{\Theta} h ^ Θ for the ground robot, at relative heading θ r e l = π \theta^{\mathrm{rel}} = \pi θ rel = π (obstacle moving head-on toward the robot) and obstacle speed v o = 1.2 m s − 1 v^{\mathrm{o}} = 1.2\,\mathrm{m\,s}^{-1} v o = 1.2 m s − 1 , in the robot body frame. The robot is located at the origin and heads along p x r e l p_x^{\mathrm{rel}} p x rel . The collision set (black circle, zero level of c r e l c_{\mathrm{rel}} c rel ) is the disk of relative obstacle positions within R min R_{\min} R m i n of the robot. The numerically computed unsafe region (red shading, zero level of V ∞ V_{\infty} V ∞ dashed) extends several meters ahead of the robot, because an oncoming obstacle in this region can force a collision on a robot that cannot stop and that turns at a limited rate. The zero level set of the learned barrier (green) closely matches the numerical HJ boundary and, by construction, never enters the collision set.
The value function V ∞ V_{\infty} V ∞ is computed once on a grid over the low-dimensional relative state space, and it depends only on the robot model, the obstacle model, and the two footprints, not on the number of obstacles, their trajectories, or the scene layout. § 8.4.1.2 quantifies the resulting reduction in offline cost relative to Chapter 4.
Residual Pairwise Barrier Learning
The numerical solver returns V ∞ V_{\infty} V ∞ as a table of values over the relative-state grid. Direct deployment of this table would require storing the complete grid, whose size is reported in § 8.4.1.2 , and interpolating both values and gradients for every obstacle at every query. A neural approximation is considerably more compact, and automatic differentiation supplies the gradients of the represented function wherever it is differentiable.
The residual structure of § 5.9.2 uses the ordering V ∞ ( z ) ≤ c r e l ( z ) V_{\infty}(z) \le c_{\mathrm{rel}}(z) V ∞ ( z ) ≤ c rel ( z ) to exclude collision states. The learned pairwise barrier is
h ^ Θ ( z ) : = c r e l ( z ) − r ^ Θ ( z ) , r ^ Θ ( z ) ≥ 0 , (132) \hat{h}_{\Theta}(z) := c_{\mathrm{rel}}(z) - \hat{r}_{\Theta}(z), \qquad\hat{r}_{\Theta}(z) \ge0, \tag*{(132)} h ^ Θ ( z ) := c rel ( z ) − r ^ Θ ( z ) , r ^ Θ ( z ) ≥ 0 , (132)
in which the residual r ^ Θ \hat{r}_{\Theta} r ^ Θ is a multilayer perceptron (MLP) with parameters Θ \Theta Θ , sinusoidal hidden activations [94, 85], and the softplus output Equation (120) , which enforces the nonnegativity of the residual while keeping it everywhere differentiable. In contrast to ORN-CBF, CN-CBF obtains the relative constraint function c r e l c_{\mathrm{rel}} c rel in closed form from Equation (130) , so that neither a discretized SDF nor an interpolation is required. However, the Euclidean norm in c r e l c_{\mathrm{rel}} c rel is not differentiable at p r e l = 0 p_{\mathrm{rel}} = 0 p rel = 0 . Because R min > 0 R_{\min} > 0 R m i n > 0 , this singularity lies strictly inside the collision set and away from the safe-set boundary on which the filter is intended to operate. The pairwise barrier is smooth on p r e l ≠ 0 p_{\mathrm{rel}} \ne0 p rel = 0 , but a global continuous-differentiability claim would require a smooth regularization of the norm.
Failure-set exclusion guarantee. As in Chapter 5, the nonnegativity of the residual in Equation (132) gives h ^ Θ ( z ) ≤ c r e l ( z ) \hat{h}_{\Theta}(z) \le c_{\mathrm{rel}}(z) h ^ Θ ( z ) ≤ c rel ( z ) for every z z z and yields, in the set notation of § 5.4 ,
S h ^ : = { z ∣ h ^ Θ ( z ) ≥ 0 } ⊆ { z ∣ c r e l ( z ) ≥ 0 } = Z ∖ F r e l . (133) S_{\hat{h}} := \left\{z \mid\hat{h}_{\Theta}(z) \ge0\right\} \subseteq\left\{z \mid c_{\mathrm{rel}}(z) \ge0\right\} = Z \setminus\mathcal{F}_{\mathrm{rel}}. \tag*{(133)} S h ^ := { z ∣ h ^ Θ ( z ) ≥ 0 } ⊆ { z ∣ c rel ( z ) ≥ 0 } = Z ∖ F rel . (133)
The entire predicted safe set therefore has a nonnegative distance to the obstacle, regardless of the residual approximation error, while the property remains one-sided as in the preceding chapters.
Shared network architecture and training. The relative state z z z contains the position and motion information needed for pairwise safety, so a fixed MLP with a few thousand parameters replaces the earlier hypernetworks, and one batched forward pass applies this shared model to all m m m obstacles. Training is the simplest instance of the offline pipeline in § 5.9.4 . A single numerical table of V ∞ V_{\infty} V ∞ over the relative-state grid supervises the assembled barrier Equation (132) through the mean squared error, and no dataset of environment observations needs to be constructed. § 8.4.1.2 states the exact configuration and timings and compares them with the cost of the joint approach in Chapter 4.
Smooth Barrier Composition
For o = ( q 1 , … , q m ) o = (q_1, \ldots, q_m) o = ( q 1 , … , q m ) , let z i = σ ( x , q i ) z_i = \sigma(x, q_i) z i = σ ( x , q i ) . The pairwise requirement h ^ Θ ( z i ) ≥ 0 \hat{h}_{\Theta}(z_i) \ge0 h ^ Θ ( z i ) ≥ 0 for every obstacle is represented by min i h ^ Θ ( z i ) \min_i \hat{h}_{\Theta}(z_i) min i h ^ Θ ( z i ) [154]. This minimum is nonsmooth where the active obstacle changes, producing abrupt gradient changes during avoidance. Pairwise conditions also need not imply joint safety, as discussed below.
CN-CBF therefore aggregates the pairwise barriers with a smooth under-approximation of the minimum, the negated log-sum-exp function [155, 156]. For an obstacle count m ≥ 1 m \ge1 m ≥ 1 and a smoothing parameter β > 0 \beta> 0 β > 0 , define μ β : R m → R \mu_{\beta}: \mathbb{R}^{m} \to\mathbb{R} μ β : R m → R ,
μ β ( s 1 , … , s m ) : = − 1 β ln ∑ i = 1 m e − β s i , (134) \mu_{\beta}(s_1, \ldots, s_m) := -\frac{1}{\beta}\ln\sum_{i=1}^{m}e^{-\beta s_i}, \tag*{(134)} μ β ( s 1 , … , s m ) := − β 1 ln i = 1 ∑ m e − β s i , (134)
and the composite neural barrier
h ^ c n ( x , o ) : = μ β ( h ^ Θ ( σ ( x , q 1 ) ) , … , h ^ Θ ( σ ( x , q m ) ) ) . (135) \hat{h}_{\mathrm{cn}}(x,o) := \mu_{\beta}\left(\hat{h}_{\Theta}(\sigma(x,q_1)), \ldots, \hat{h}_{\Theta}(\sigma(x,q_m))\right). \tag*{(135)} h ^ cn ( x , o ) := μ β ( h ^ Θ ( σ ( x , q 1 )) , … , h ^ Θ ( σ ( x , q m )) ) . (135)
The subscript distinguishes the composite field from the shared pairwise barrier. Obstacle states remain time-varying arguments, so § 8.3.3.4 differentiates the field as a joint function of state and observation. For m = 0 m = 0 m = 0 , the composite is undefined and its constraint is omitted, and all composition formulas below assume $m \ge 1.
The composition has three properties on which the construction rests, and all of them follow directly from Equation (134) . First, it is an under-approximation with a bounded gap ,
min i s i − ln m β ≤ μ β ( s 1 , … , s m ) ≤ min i s i . (136) \min_i s_i - \frac{\ln m}{\beta} \le\mu_{\beta}(s_1, \ldots, s_m) \le\min_i s_i. \tag*{(136)} i min s i − β ln m ≤ μ β ( s 1 , … , s m ) ≤ i min s i . (136)
The composite safe set { x ∣ h ^ c n ( x , o ) ≥ 0 } \left\{x \mid\hat{h}_{\mathrm{cn}}(x,o) \ge0\right\} { x ∣ h ^ cn ( x , o ) ≥ 0 } lies inside the intersection of the pairwise safe sets, so the smoothing is conservative rather than optimistic, and its largest value offset ln m / β \ln m/\beta ln m / β grows logarithmically with the obstacle count. Second, the composite barrier inherits failure-set exclusion. The upper bound in Equation (136) shows that h ^ c n ( x , o ) ≥ 0 \hat{h}_{\mathrm{cn}}(x,o) \ge0 h ^ cn ( x , o ) ≥ 0 implies h ^ Θ ( z i ) ≥ 0 \hat{h}_{\Theta}(z_i) \ge0 h ^ Θ ( z i ) ≥ 0 for every i i i , and Equation (133) then gives c r e l ( z i ) ≥ 0 c_{\mathrm{rel}}(z_i) \ge0 c rel ( z i ) ≥ 0 for every obstacle. Every configuration in the composite safe set consequently keeps a nonnegative distance to all represented obstacles, regardless of the learning error. Third, the composition is smooth, and its partial derivatives
∂ μ β ∂ s i = e − β s i ∑ l = 1 m e − β s l = : λ i , λ i > 0 , ∑ i = 1 m λ i = 1 , (137) \frac{\partial\mu_{\beta}}{\partial s_i} = \frac{e^{-\beta s_i}}{\sum_{l=1}^{m} e^{-\beta s_l}} =: \lambda_i,\qquad\lambda_i > 0,\qquad\sum_{i=1}^{m}\lambda_i = 1, \tag*{(137)} ∂ s i ∂ μ β = ∑ l = 1 m e − β s l e − β s i =: λ i , λ i > 0 , i = 1 ∑ m λ i = 1 , (137)
are softmax weights concentrated on the smallest arguments. The composite gradient is thus a convex combination of the pairwise gradients , dominated by the most critical obstacles, and it shifts continuously as the active obstacle changes instead of switching abruptly. The parameter β \beta β controls the trade-off between closeness to the exact minimum and smoothness of the composition. A large value tracks the exact minimum closely but approaches its nonsmooth switching behavior, while a small value incorporates more obstacles into the gradient and adds the conservatism bounded in Equation (136) . Figure 6.2 illustrates both effects on a one-dimensional slice between two obstacles.
Figure 6.2. Smooth composition of two pairwise barriers along a one-dimensional slice of the state space, for example a straight path from one obstacle to the other. (a) The two pairwise barrier values (blue and orange) form the nonsmooth pointwise minimum (dashed), whose kink at x ˉ \bar{x} x ˉ marks the change of the active obstacle. The composite barrier h ^ c n = μ β \hat{h}_{\mathrm{cn}} = \mu_{\beta} h ^ cn = μ β (green) runs below that minimum, with a gap that is largest at the kink, where it attains the bound ln m / β \ln m / \beta ln m / β of Equation (136) . The composite safe interval (green) is slightly smaller than the one given by the exact minimum (gray). (b) The softmax weights Equation (137) along the same slice transfer the gradient continuously from one obstacle to the other instead of switching at x ˉ \bar{x} x ˉ , and a larger β \beta β narrows this transition.
The composition has one structural limitation. The intersection of the pairwise maximal safe sets is only an outer approximation of the true joint maximal safe set, because pairwise avoidability does not imply joint avoidability when the maneuvers that evade one obstacle conflict with those needed for another. The soft minimum is therefore conservative relative to the pairwise intersection by Equation (136) , while the intersection itself can be optimistic relative to the joint reachability problem of Chapter 4. § 8.4.2 returns to this trade-off between modularity and joint optimality.
Time-Varying Composite Barrier Condition
The composite barrier Equation (135) depends on both the robot state and the obstacle states, and because the obstacles move, this dependence introduces an explicit time variation. The setting is the case o = o ( t ) o = o(t) o = o ( t ) of § 5.8.2 , in which the obstacle motion is independent of the robot state and control. The ideal continuous-time condition is derived first, assuming that the obstacle trajectories q i ( t ) q_i(t) q i ( t ) and their derivatives are available continuously. Along the closed-loop evolution, the barrier value
h ( x , t ) : = h ^ c n ( x , q 1 ( t ) , … , q m ( t ) ) (138) h(x,t) := \hat{h}_{\mathrm{cn}}\left(x,q_1(t),\ldots,q_m(t)\right) \tag*{(138)} h ( x , t ) := h ^ cn ( x , q 1 ( t ) , … , q m ( t ) ) (138)
is a time-varying barrier in the sense of § 5.4.1 , and its explicit time dependence originates solely from the obstacle motion. The chain rule applied through Equations (128) and (135) , with the weights Equation (137) evaluated at s i = h ^ Θ ( z i ) s_i=\hat{h}_{\Theta}(z_i) s i = h ^ Θ ( z i ) , decomposes both derivative terms over the obstacles,
∇ x h ( x , t ) = ∑ i = 1 m λ i ∂ σ ∂ x ( x , q i ) T ∇ z h ^ Θ ( z i ) , (139) \nabla_x h(x,t) = \sum_{i=1}^{m} \lambda_i \frac{\partial\sigma}{\partial x}(x,q_i)^{\mathsf{T}}\nabla_z\hat{h}_{\Theta}(z_i), \tag*{(139)} ∇ x h ( x , t ) = i = 1 ∑ m λ i ∂ x ∂ σ ( x , q i ) T ∇ z h ^ Θ ( z i ) , (139)
∂ h ∂ t ( x , t ) = ∑ i = 1 m λ i ∇ z h ^ Θ ( z i ) T ∂ σ ∂ q ( x , q i ) q ˙ i . (140) \frac{\partial h}{\partial t}(x,t) = \sum_{i=1}^{m} \lambda_i \nabla_z\hat{h}_{\Theta}(z_i)^{\mathsf{T}}\frac{\partial\sigma}{\partial q}(x,q_i)\dot{q}_i. \tag*{(140)} ∂ t ∂ h ( x , t ) = i = 1 ∑ m λ i ∇ z h ^ Θ ( z i ) T ∂ q ∂ σ ( x , q i ) q ˙ i . (140)
The state gradient describes changes due to robot motion, and the partial time derivative describes changes due to obstacle motion, and both weight the most critical obstacles most strongly. If all obstacles are static, q ˙ i = 0 \dot{q}_i=0 q ˙ i = 0 and the condition reduces to the time-invariant form.
In practice, the obstacle states arrive at discrete observation updates rather than continuously, and the derivatives q ˙ i \dot{q}_i q ˙ i in Equation (6.15b) must be estimated. When the perception module does not supply them directly, a backward difference over the observation period gives the estimate
q ˙ i ( t j ) ≈ q i ( t j ) − q i ( t j − 1 ) Δ t o . (141) \dot{q}_i(t_j) \approx\frac{q_i(t_j)-q_i(t_{j-1})}{\Delta t_o}. \tag*{(141)} q ˙ i ( t j ) ≈ Δ t o q i ( t j ) − q i ( t j − 1 ) . (141)
The deployed filter evaluates the derivative term with the most recent state and derivative estimates.
Using the realized obstacle motion here, instead of the worst case over all admissible obstacle inputs, is a deliberate design choice. The pairwise barrier approximates the robust value function of § 8.3.3.1 , whose Hamiltonian maximizes over u ∈ U u \in\mathcal{U} u ∈ U and minimizes over d ∈ D d \in\mathcal{D} d ∈ D . As shown in § 5.7 , this Hamiltonian is nonnegative, so for every relative state in the pairwise safe set Equation (131) at which V ∞ V_{\infty} V ∞ is differentiable, the exact value function satisfies
sup u ∈ U [ ∇ z V ∞ ( z ) T f r e l ( z , u , d ˉ ) ] ≥ sup u ∈ U min d ∈ D [ ∇ z V ∞ ( z ) T f r e l ( z , u , d ) ] ≥ − α ( V ∞ ( z ) ) (142) \sup_{u\in\mathcal{U}}\left[\nabla_z V_{\infty}(z)^{\mathsf{T}}f_{\mathrm{rel}}(z,u,\bar{d})\right]
\geq
\sup_{u\in\mathcal{U}}\min_{d\in\mathcal{D}}\left[\nabla_z V_{\infty}(z)^{\mathsf{T}}f_{\mathrm{rel}}(z,u,d)\right]
\geq-\alpha\left(V_{\infty}(z)\right) \tag*{(142)} u ∈ U sup [ ∇ z V ∞ ( z ) T f rel ( z , u , d ˉ ) ] ≥ u ∈ U sup d ∈ D min [ ∇ z V ∞ ( z ) T f rel ( z , u , d ) ] ≥ − α ( V ∞ ( z ) ) (142)
for every admissible obstacle input d ˉ ∈ D \bar{d}\in\mathcal{D} d ˉ ∈ D , because the value attained for one input is at least the minimum over all of them. The robustness is thus contained in the value function, which certifies that an admissible control exists for every obstacle behavior within the modeled bounds. The realized obstacle motion, in turn, supplies the actual time derivative of the barrier along the closed-loop trajectory, which is what the invariance argument of § 5.4 requires. Enforcing the condition with a worst-case obstacle input would be sufficient but unnecessarily conservative, because it would constrain the robot against a behavior that the obstacle is not currently exhibiting.
Figure 3. Structure of the CN-CBF barrier evaluation. The current obstacle states are stacked into a batch, combined with the robot state x x x into the batch of relative states z i = σ ( x , q i ) z_i = \sigma(x, q_i) z i = σ ( x , q i ) , and propagated in parallel through the shared residual network r ^ Θ \hat{r}_{\Theta} r ^ Θ and the closed-form pairwise constraint c r e l c_{\mathrm{rel}} c rel . Their difference yields the pairwise barrier values of Equation (132) , which the smooth aggregation μ β \mu_{\beta} μ β reduces to the composite value in Equation (135) . One reverse-mode differentiation pass through this graph returns all gradients in Equation (6.15).
CN-CBF Safety Filter
At every control instant, CN-CBF receives the current robot state x x x , the nominal command u n o m u_{\mathrm{nom}} u nom , and the latest obstacle estimates, and it solves the CBF-QP of § 5.4.2 with the time-varying constraint Equation (32) ,
u ∗ = arg min u ∈ U 1 2 ∥ u − u n o m ∥ 2 2 (143) u^* = \underset{u \in\mathcal{U}}{\arg\min}\ \frac{1}{2}\lVert u-u_{\mathrm{nom}}\rVert_2^2 \tag*{(143)} u ∗ = u ∈ U arg min 2 1 ∥ u − u nom ∥ 2 2 (143)
s . t . ∇ x h ( x , t ) T ( f 0 ( x ) + g ( x ) u ) + ∂ h ∂ t ( x , t ) + γ h ( x , t ) ≥ 0 , (144) \mathrm{s.t.}\quad\nabla_x h(x,t)^{\mathsf{T}}\left(f_0(x)+g(x)u\right)+\frac{\partial h}{\partial t}(x,t)+\gamma h(x,t)\geq0, \tag*{(144)} s.t. ∇ x h ( x , t ) T ( f 0 ( x ) + g ( x ) u ) + ∂ t ∂ h ( x , t ) + γ h ( x , t ) ≥ 0 , (144)
where the extended class-K \mathcal{K} K function is chosen linear with gain γ > 0 \gamma> 0 γ > 0 , as in Chapter 5. For m ≥ 1 m \geq1 m ≥ 1 , the constraint is affine in u u u , and linear inequalities describe U \mathcal{U} U for both robots considered here, so the problem is a single small convex QP regardless of the obstacle count. The entire scene enters this QP only through h h h , ∇ x h \nabla_x h ∇ x h , and ∂ h / ∂ t \partial h/\partial t ∂ h / ∂ t . For m = 0 m = 0 m = 0 , the obstacle constraint is absent and the nominal command is subject only to U \mathcal{U} U .
Batched evaluation. The composite barrier is assembled from elementary differentiable operations, so automatic differentiation supplies the derivatives Equation (6.15). The obstacle states are stacked into a matrix of shape m × n q m \times n_q m × n q , the map σ \sigma σ and the pairwise barrier Equation (132) operate along the batch dimension, and Equation (134) reduces the batch to a single scalar. One reverse-mode pass then returns the gradients with respect to the robot state and to every obstacle state, as visualized in Figure 6.3. Each control instant requires one batched forward and backward pass through a network with a few thousand parameters, followed by one QP solve whose size does not depend on m m m . The amount of computation grows with the obstacle count, while the number of passes and the size of the QP remain fixed, which meets the fourth requirement of § 8.3.2 . Figure 6.4 shows the complete filter, in which the robot model and the obstacle-velocity estimation Equation (141) run alongside the barrier evaluation and together parameterize the QP.
Figure 6.4. Block diagram of the CN-CBF safety filter. The robot state and the current obstacle-state estimates feed three parallel blocks. The batched CN-CBF evaluation of Figure 6.3 returns the composite barrier value and its gradients, the robot dynamics model supplies f 0 ( x ) f_0(x) f 0 ( x ) and g ( x ) g(x) g ( x ) , and the backward-difference estimator in Equation (141) supplies the obstacle state derivatives. Together they parameterize the CBF-QP Equation (6.18), which minimally modifies the nominal command u n o m u_{\mathrm{nom}} u nom .
Obstacle-count changes and cross-update safety. The number of terms in Equation (135) follows the perception output, so that obstacles may appear or disappear
Composite Neural Barriers in Relative Coordinates
between updates and change the composite barrier discontinuously. Removing an obstacle can only increase μ β \mu_\beta μ β , and when the last obstacle disappears, the moving-obstacle constraint is bypassed entirely. Adding an obstacle, in contrast, always decreases the finite composite value, so continued safety requires the cross-update condition Equation (62) , which demands that the current state belong to the safe set of the new composition.
The soft minimum makes the required margin explicit. When an update both removes and adds obstacles, the terms of the disappearing obstacles are removed first, and h − h^{-} h − denotes the composite value over the retained terms, with the extended-real convention h − = + ∞ h^{-}=+\infty h − = + ∞ for an empty retained list. The update then adds k ≥ 1 k\geq1 k ≥ 1 obstacles whose pairwise barrier values at the current robot state are s 1 , … , s k s_1,\ldots,s_k s 1 , … , s k . The new composite value is
h + = − 1 β ln ( e − β h − + ∑ a = 1 k e − β s a ) . (145) h^{+}=-\frac{1}{\beta}\ln\left(e^{-\beta h^{-}}+\sum_{a=1}^{k}e^{-\beta s_a}\right). \tag*{(145)} h + = − β 1 ln ( e − β h − + a = 1 ∑ k e − β s a ) . (145)
Nonnegativity of every new pairwise barrier is consequently not sufficient, because even a distant obstacle causes a finite downward shift, which drives h + h^{+} h + below zero whenever h − = 0 h^{-}=0 h − = 0 . If the value before the addition satisfies h − ≥ ε > 0 h^{-}\geq\varepsilon>0 h − ≥ ε > 0 and every new pairwise value satisfies s a ≥ s min s_a\geq s_{\min} s a ≥ s m i n , then a sufficient condition for h + ≥ 0 h^{+}\geq0 h + ≥ 0 is
e − β ε + k e − β s min ≤ 1 , equivalently s min ≥ 1 β ln ( k 1 − e − β ε ) . (146) e^{-\beta\varepsilon}+ke^{-\beta s_{\min}}\leq1,\qquad\text{equivalently}\qquad s_{\min}\geq\frac{1}{\beta}\ln\left(\frac{k}{1-e^{-\beta\varepsilon}}\right). \tag*{(146)} e − β ε + k e − β s m i n ≤ 1 , equivalently s m i n ≥ β 1 ln ( 1 − e − β ε k ) . (146)
The bound follows directly from the composition formula and introduces no empirical margin. At runtime, the most direct and least conservative test is to evaluate the new composition and to verify h + ≥ 0 h^{+}\geq0 h + ≥ 0 before relying on the updated barrier. If this check fails, continued safety is not certified, and a deployment must specify a fallback response.
A sufficiently large detection range makes the newly added pairwise values large, but it does not replace the composite-margin test, because the influence of a distant obstacle decays exponentially with β ^ h Θ ( z i ) \hat{\beta}h_\Theta(z_i) β ^ h Θ ( z i ) according to Equation (137) but is never exactly zero and can matter when the margin before the update is small. Let ρ d e t \rho_{\mathrm{det}} ρ det denote the detection range, let v max v_{\max} v m a x and v max o v_{\max}^{o} v m a x o denote the maximum robot and obstacle speeds, and let β B r e l \beta_{\mathcal{B}}^{\mathrm{rel}} β B rel denote the largest workspace distance by which the pairwise BRT extends beyond the collision radius R min R_{\min} R m i n . Under boundary-only detection, absence of occlusion, the stated speed bounds, and the modeled obstacle class, a newly detected obstacle remains outside the exact pairwise BRT whenever
ρ d e t − ( v max + v max o ) Δ t o > R min + β B r e l . (147) \rho_{\mathrm{det}}-\left(v_{\max}+v_{\max}^{o}\right)\Delta t_o>R_{\min}+\beta_{\mathcal{B}}^{\mathrm{rel}}. \tag*{(147)} ρ det − ( v m a x + v m a x o ) Δ t o > R m i n + β B rel . (147)
Condition Equation (147) is the concrete form of the sensing-adequacy requirement Equation (61) for the present configuration. The closing-speed term includes both agents, because the robot and an undetected approaching obstacle can reduce the gap simultaneously. The quantity β B r e l \beta_{\mathcal{B}}^{\mathrm{rel}} β B rel can be determined from the computed pairwise BRT once R min R_{\min} R m i n and the numerical grid domain are specified. Occlusions, under which an obstacle can appear well inside the detection range, violate the geometric assumption.
Guarantee scope. Composite failure-set exclusion holds by construction, and the soft composition is conservative relative to the pairwise barriers and never optimistic. Validity of the learned barrier as a CBF is assessed experimentally rather than verified analytically, and because feasibility of the barrier constraint in Equation (6.18) cannot be ensured in advance, the implementation uses the relaxed form Equation (36) . The experiments assess the pairwise approximation and the closed-loop behavior empirically, and § 8.4.2 states the scope of these claims.
Experimental Evaluation
The evaluation measures offline cost, pairwise approximation, closed-loop performance against MPC and classical CBF baselines, and deployment with real perception. It uses a nonholonomic ground robot that cannot stop and a quadrotor with bounded acceleration.2
Robot and Obstacle Models
Both studies use the same type of environment. The robot moves through a planar workspace toward a goal position, and pedestrians walk through the same area without coordinating with the robot or avoiding it, and their number changes with the output of the perception system. Two robot–obstacle pairs are considered. The first pair combines a nonholonomic ground robot with a unicycle pedestrian model, and the second pair combines a constant-altitude quadrotor with a double-integrator pedestrian model. Each pair needs its own relative dynamics, its own pairwise HJ computation, and its own trained barrier, while the composition of Section 6.4.3 and the filter of Section 6.4.5 remain the same. In the quadrotor hardware experiment, obstacle drones take the role of the pedestrians.
Ground-robot model. The ground robot is modeled as the kinematic unicycle of Equation (109) , with state x = ( p x , p y , θ ) x=(p_x,p_y,\theta) x = ( p x , p y , θ ) , input u = ( v , ω ) u=(v,\omega) u = ( v , ω ) , and limits v ∈ [ 0.25 , 1.0 ] v\in[0.25,1.0] v ∈ [ 0.25 , 1.0 ] m s− 1 ^{-1} − 1 and ω ∈ [ − 0.8 , 0.8 ] \omega\in[-0.8, 0.8] ω ∈ [ − 0.8 , 0.8 ] rad s− 1 ^{-1} − 1 . The positive lower speed bound reflects the deployment configuration and implies that the robot cannot stop, so, as for the Dubins car in Chapters 3 and 5, the maximal safe set differs substantially from the geometric free space.
Each pedestrian is modeled as a unicycle as well. The state q = ( q x , q y , θ o , v o ) q = (q_x, q_y, \theta^o, v^o) q = ( q x , q y , θ o , v o ) contains the position, the heading, and the speed, and the input d = ω o ∈ [ − 0.35 , 0.35 ] d = \omega^o \in[-0.35, 0.35] d = ω o ∈ [ − 0.35 , 0.35 ] rad s− 1 ^{-1} − 1 is the turning rate. The speed is constant in the model and covers v o ∈ [ 0 , 1.2 ] v^o \in[0, 1.2] v o ∈ [ 0 , 1.2 ] m s− 1 ^{-1} − 1 , so the model describes pedestrians who walk at an approximately constant speed while adjusting their direction. It is a robust version of the constant-velocity model, because the choice ω o ≡ 0 \omega^o \equiv0 ω o ≡ 0 recovers the prediction used in Chapter 4, while the reachability analysis considers every turning behavior within the bound. The bounds themselves are a calibration choice. Recorded trajectories are used to estimate the distributions of walking speed and turning rate, and choosing D D D and the speed range such that they cover most of these distributions trades robustness against the conservatism of wider bounds.
For this pair, the relative state is z = ( p x r e l , p y r e l , θ r e l , v o ) z = (p_x^{\mathrm{rel}}, p_y^{\mathrm{rel}}, \theta^{\mathrm{rel}}, v^o) z = ( p x rel , p y rel , θ rel , v o ) . The first two components express the obstacle position in the body frame of the robot, and θ r e l = θ o − θ \theta^{\mathrm{rel}} = \theta^o - \theta θ rel = θ o − θ is the relative heading. The obstacle speed v o v^o v o is included as well, because it affects the future relative motion. Differentiating as in Equation (129) yields the relative dynamics
z ˙ = f r e l ( z , u , d ) = [ − v + v o cos θ r e l + ω p y r e l v o sin θ r e l − ω p x r e l ω o − ω 0 ] . (148) \dot{z} = f_{\mathrm{rel}}(z,u,d) =
\begin{bmatrix}
-v + v^o \cos\theta^{\mathrm{rel}} + \omega p_y^{\mathrm{rel}} \\
v^o \sin\theta^{\mathrm{rel}} - \omega p_x^{\mathrm{rel}} \\
\omega^o - \omega\\
0
\end{bmatrix}. \tag*{(148)} z ˙ = f rel ( z , u , d ) = − v + v o cos θ rel + ω p y rel v o sin θ rel − ω p x rel ω o − ω 0 . (148)
This four-dimensional system has the game structure of § 8.3.3.1 , in which the robot input counters the turning input of the obstacle. The pairwise constraint is Equation (130) , with R min = 0.8 R_{\min} = 0.8 R m i n = 0.8 m as the sum of the robot and pedestrian footprint radii, and the pairwise value function is computed over relative positions p x r e l , p y r e l ∈ [ − 4 , 4 ] p_x^{\mathrm{rel}}, p_y^{\mathrm{rel}} \in[-4,4] p x rel , p y rel ∈ [ − 4 , 4 ] m, all relative headings, and the pedestrian speed range above.
Quadrotor model. The constant-altitude quadrotor is modeled as the planar double integrator of Equation (124) , with state x = ( p x , p y , v x , v y ) x = (p_x, p_y, v_x, v_y) x = ( p x , p y , v x , v y ) , input u = ( a x , a y ) u = (a_x, a_y) u = ( a x , a y ) , and limits v x , v y ∈ [ − 2 , 2 ] v_x, v_y \in[-2,2] v x , v y ∈ [ − 2 , 2 ] m s− 1 ^{-1} − 1 and a x , a y ∈ [ − 2 , 2 ] a_x, a_y \in[-2,2] a x , a y ∈ [ − 2 , 2 ] m s− 2 ^{-2} − 2 . The pedestrians are modeled as planar double integrators as well, with state q = ( q x , q y , v x o , v y o ) q = (q_x, q_y, v_x^o, v_y^o) q = ( q x , q y , v x o , v y o ) , input d = ( a x o , a y o ) d = (a_x^o, a_y^o) d = ( a x o , a y o ) , velocity limits of [ − 1.5 , 1.5 ] [-1.5, 1.5] [ − 1.5 , 1.5 ] m s− 1 ^{-1} − 1 per axis, and acceleration limits of [ − 1.0 , 1.0 ] [-1.0, 1.0] [ − 1.0 , 1.0 ] m s− 2 ^{-2} − 2 . This model bounds the Cartesian acceleration instead of assuming an approximately constant speed, so its bounds cover a similar range of walking speeds as the unicycle model but do not describe the same set of possible motions. The pairwise constraint uses R min = 0.7 R_{\min} = 0.7 R m i n = 0.7 m. Because both models are linear and use world-frame coordinates, the relative state is the difference z = q − x z = q - x z = q − x , which yields the double-integrator relative dynamics
z ˙ = f r e l ( z , u , d ) = [ v x o − v x v y o − v y a x o − a x a y o − a y ] . (149) \dot{z} = f_{\mathrm{rel}}(z,u,d) =
\begin{bmatrix}
v_x^o - v_x \\
v_y^o - v_y \\
a_x^o - a_x \\
a_y^o - a_y
\end{bmatrix}. \tag*{(149)} z ˙ = f rel ( z , u , d ) = v x o − v x v y o − v y a x o − a x a y o − a y . (149)
This system is again four-dimensional. The two examples illustrate the flexibility of the relative coordinates, because σ \sigma σ is a body-frame transformation for the ground robot and a difference of the two states for the quadrotor, while the learning, the composition, and the filtering remain unchanged.
Pairwise Barrier Training and Approximation
The offline stage is summarized in Table 6.1 , which lists the settings shared by both robots, and Table 6.2 , which lists the entries that differ between them. Each stationary pairwise value function is computed with a grid-based HJ solver3 , and the assembled barrier Equation (132) is trained against the resulting grid values. For comparison, a lookup-table deployment of the ground-robot value function would store 1.28 × 10 6 1.28 \times10^{6} 1.28 × 1 0 6 grid values and would interpolate values and gradients for every obstacle at every query.
Table 6.1. CN-CBF configuration shared by both robots.
Table 6.2. CN-CBF configuration specific to each robot.
The contrast with the joint approach of Chapter 4 quantifies the benefit of the relative-coordinate formulation. In a comparable dynamic setting, RNTC-MPC required about 20 h to compute the value functions for 40 000 scenes and about 15 h to train the hypernetwork [101, 103]. CN-CBF replaces both stages with one ten-second reachability computation and a few minutes of training, because the learned function no longer depends on the scene, which reduces the combined offline time by more than two orders of magnitude. The corresponding trade-off is that the composition approximates the joint value function only through its pairwise structure, and the closed-loop experiments below evaluate the effect of this approximation.
Figure 6.5 shows the head-on configuration of the ground robot, in which the unsafe region extends several meters beyond the collision disk under the actuation limits and the adversarial obstacle model. The learned boundary closely follows the numerical boundary and excludes the collision disk by construction.
Ground-Robot Simulation
Setup. The closed-loop evaluation uses physics-based Gazebo simulations of pedestrian crowds, in which HuNavSim controls the pedestrians with a social-force model [161]. The pedestrians move cyclically between random goals in a rectangular area, which keeps the effective density approximately constant, and they do not avoid the robot, so that collision avoidance is left entirely to the evaluated methods. The task is to drive from a start position to a goal position across the crowded area without collision. Every evaluated method receives the states of the pedestrians within 3.3 m of the robot, and this detection range is the same in the quadrotor study. For each crowd size of 5, 10, and 15 pedestrians, 100 randomized scenarios are generated and reused for every method. The primary metric is the collision-free success rate. The path length and the time to goal are reported as well, since safety obtained through excessively conservative motion would reduce task performance.
Baselines and implementation. CN-CBF is compared with the four MPC planners of § 6.2.5.3 , SDF-MPC, DCBF-MPC, VO-MPC, and RNTC-MPC, the last retrained for the unicycle speed and turning-rate limits used in this chapter. The nominal controller of CN-CBF is an MPC tracker without perception or safety constraints , which moves straight toward the reference, so that every avoidance maneuver originates from the filter. The comparison is thus between complete navigation systems, a reachability-informed filter around a plain tracker on the one side and reachability-informed or geometric planners on the other. All planners run at 20 Hz with a 2 s horizon and a 0.1 s prediction interval, implemented in CasADi [138] with IPOPT and deployed as ROS 2 packages [139]. The CBF-QP of CN-CBF is solved with qpOASES at 250 Hz, with the filter gain γ = 4.0 \gamma= 4.0 γ = 4.0 and the smoothing parameter β = 4.0 \beta= 4.0 β = 4.0 tuned by grid search. As in Chapter 5, the deployed filter uses the relaxed problem Equation (36) rather than the hard-constrained form Equation (6.18), and the returned input solves Equation (6.18) whenever the slack is zero.
Simulation results. Figure 6.6 presents the outcomes. CN-CBF achieves the highest success rate at every density, with approximately 95%, 92%, and 82% for 5, 10, and 15 pedestrians. The margin over the strongest baseline grows from about 5 percentage points in the sparsest setting to 18 percentage points in the densest, where the best baseline reaches 64% and VO-MPC reaches 50%. Two further findings follow. First, the path lengths and motion times of CN-CBF are comparable to those of the baselines, so the higher success rate is not obtained through detours or overly conservative motion. Second, CN-CBF outperforms RNTC-MPC even though RNTC-MPC approximates the joint value function. A plausible interpretation is that in these experiments the pairwise composition error is less consequential than the sparse coverage of multi-obstacle scenes, the enforcement at planning rate, and the horizon-limited constraint of the joint method, although the experiment does not isolate these factors.
Figure 6.6. Ground-robot simulation study over 100 randomized pedestrian-crowd scenarios per density. (a) Success rates of the four MPC-based planners and of the CN-CBF safety filter. The advantage of CN-CBF increases with the crowd density. (b) Path lengths and (c) times to goal of the scenarios completed by all methods. Boxes span the interquartile range, lines mark the median, and whiskers extend to 1.5 times the interquartile range. The higher success rates of CN-CBF are not obtained through detours or overly conservative motion.
fig:6.7 visualizes one scenario together with the composite barrier in the robot frame and thereby illustrates the effect of the composition. Each pedestrian is surrounded by a teardrop-shaped unsafe region that points along the relative direction and grows with the relative speed, and the composite zero level set encloses the union of these regions smoothly. The failures observed at high density are consistent with three limitations. Several pedestrians can jointly close every escape route even when each of them remains individually avoidable (§ 8.3.3.3 ), pedestrians can turn more sharply than the assumed bound permits, and the finite detection range can reveal an approaching pedestrian too late. The available experiments do not quantify the contribution of each of these causes separately.
Figure 6.7. Example scene from the ground-robot simulation study. (a) The Gazebo environment with the robot navigating among pedestrians controlled by the social-force model. (b) The corresponding local perception, with detected pedestrians, their estimated velocities, and the planned motion of the robot. (c) Positional slice of the composite barrier h ^ c n \hat{h}_{\mathrm{cn}} h ^ cn in the robot frame, with the robot at the origin heading to the right (dart), evaluated over hypothetical robot positions at the current heading, with red shading marking the unsafe positions and arrows showing the pedestrian velocities. The pairwise zero level sets (gray) surround the collision disk of each pedestrian (black) and are elongated along the direction in which that pedestrian moves relative to the robot, while the composite zero level set (green) traces a smooth outline around their union without touching the collision disks.
Quadrotor Simulation
Experimental setup and baselines. The second study evaluates the quadrotor model in the same pedestrian environment, with crowd sizes of 5, 10, 15, and 20 and again 100 randomized scenarios per density. The nominal controller is a linear-quadratic regulator (LQR) with no obstacle awareness. The baselines are two classical CBF constructions suited to double-integrator dynamics, both of which impose one constraint per obstacle in the QP, while CN-CBF imposes a single composite constraint regardless of the obstacle count. The collision-cone CBF (C3BF) [162] constrains the relative velocity vector to remain outside the cone of velocities that lead to collision. The higher-order CBF (HO-CBF) [61 ] uses the distance function as a barrier and enforces the constraint through its second time derivative, because the distance has relative degree two for acceleration inputs (§ 5.4 ). Their linear class-K \mathcal{K} K gains, γ = 3.0 \gamma= 3.0 γ = 3.0 for C3BF and γ 1 = 3.0 \gamma_1 = 3.0 γ 1 = 3.0 together with γ 2 = 2.0 \gamma_2 = 2.0 γ 2 = 2.0 for HO-CBF, are tuned by the same grid-search protocol as the CN-CBF parameters.
Simulation results. Figure 6.8 presents the outcomes. CN-CBF again achieves the highest success rate at every density, decreasing from full success with 5 pedestrians to approximately 91% with 20, while C3BF decreases from 98% to 76% and HO-CBF from 95% to 79%. The path lengths and motion times are comparable across all three methods. All three filters solve a QP with a tuned class-K \mathcal{K} K gain and with the same acceleration bounds imposed on the input, so they differ in the set that each barrier represents. The HO-CBF barrier is the geometric distance, whose zero level set is the collision boundary, and the acceleration limits of the robot do not enter this barrier, so how early the robot must decelerate is governed by the two gains γ 1 \gamma_1 γ 1 and γ 2 \gamma_2 γ 2 alone. The C3BF barrier constrains the instantaneous relative velocity to point outside the collision cone and does not represent the future maneuvering set of the obstacle. The zero level set of the CN-CBF barrier is instead the boundary of the reachability-based safe set, which is computed from the acceleration limits of the robot and from the modeled adversarial obstacle inputs. The results are consistent with a benefit from this more accurate modeling, but they do not separate it from the effect of the particular gain values or from other implementation differences.
Figure 6.8. Quadrotor simulation study over 100 randomized scenarios per density, comparing the CN-CBF filter against the collision-cone CBF (C3BF) and the higher-order CBF (HO-CBF), all combined with the same LQR nominal controller. (a) Success rates. (b) Path lengths and (c) times to goal of the scenarios completed by all methods, with boxes as in Figure 6.6 . CN-CBF maintains the highest success rates at every density while matching the baselines in path length and motion time.
Hardware Experiments
Ground-robot experiments. The hardware evaluation of the ground robot uses the delivery platform of § 6.1.5.5 , whose onboard perception pipeline detects moving objects from LiDAR and stereo-camera data and estimates their positions and velocities. The robot and obstacle models, the nominal MPC tracker without perception, and all filter parameters are identical to those of the simulation study, and all computation runs onboard. Figure 6.9 shows the composite barrier value and the distance to the nearest pedestrian along a successful pedestrian-avoidance run. As in § 7.3.1.5 , the barrier value becomes slightly negative for a short interval under model mismatch and measurement noise. No collision occurs, because the buffer included in R min R_{\min} R m i n separates the learned zero level from physical contact and the filter restores a positive value within a short interval.
Figure 6.9. Composite barrier value h ^ c n \hat{h}_{\mathrm{cn}} h ^ cn (green) and distance min i c r e l ( z i ) \min_i c_{\mathrm{rel}}(z_i) min i c rel ( z i ) to the nearest pedestrian (dashed) over time during a successful collision-avoidance run of the CN-CBF filter on the physical delivery robot. The barrier value anticipates the encounter well before the distance becomes small and briefly becomes negative under model mismatch and measurement noise. The physical buffer contained in R min R_{\min} R m i n prevents a collision during this interval.
Quadrotor experiments. The aerial evaluation uses a Crazyflie nano-quadrotor in a collision-avoidance task with five moving obstacles. The obstacles are themselves quadrotors flying between predefined waypoints, so that their states are known accurately and the comparison concentrates on the barrier design. The robot and obstacle models and the LQR nominal controller follow the simulation study, with the collision radius reduced to
R min = 0.3 R_{\min} = 0.3 R m i n = 0.3 m for the nano-quadrotors, CN-CBF is compared against the same C3BF and HO-CBF baselines, and the computation runs offboard as in § 7.3.1.5 . Figure 6.10 shows the barrier and distance traces of the three filters. With CN-CBF filtering the LQR commands, the quadrotor completes the task without collision. Its distance to the obstacles remains positive throughout, while the barrier value approaches zero during the closest encounters and briefly becomes slightly negative. Both baselines collide, and their distance traces cross zero.4 This single challenging scenario is consistent with the simulation results, but it is a demonstration rather than a statistical hardware comparison.
Figure 6.10. Barrier values and distance to the nearest obstacle over time in the quadrotor hardware experiments with five moving obstacle drones, for (a) the CN-CBF filter, (b) the C3BF filter [162], and (c) the HO-CBF filter [61 ] , all around the same LQR nominal controller. For the two baselines, which impose one constraint per obstacle, the five pairwise barrier values h 1 , … , h 5 h_1,\ldots,h_5 h 1 , … , h 5 are shown individually, and each HO-CBF barrier is the distance to the corresponding obstacle by definition. Only the CN-CBF filter keeps the distance positive throughout, while both baselines collide (red circles).
Discussion
The shared pairwise barrier and smooth composition achieved higher simulated success rates than the evaluated MPC and classical CBF methods on both robot types, and the hardware studies demonstrate deployment with a more limited comparison. The following discussion examines the structural and practical limitations.
Pairwise and joint safety. The principal limitation is structural. The bound Equation (136) places the composite safe set inside the intersection of the learned pairwise safe sets, but it does not constrain the relation to the true joint maximal safe set. Even with exact pairwise values, the intersection over-approximates the joint safe set in configurations where the individual evasion maneuvers conflict, and the smoothing offset does not correct this optimism. The composition might thus admit configurations in which several obstacles jointly close every escape route, although each obstacle remains individually evadable. The failures observed in the densest simulated crowds are consistent with this explanation, although the experiments do not isolate a unique cause for each failure. The joint method of Chapter 4 does not share the limitation in principle, but its supervision must sample the combinatorial space of multi-obstacle scenes. In the direct comparison of § 8.4.1.3 , CN-CBF nevertheless achieved higher success rates at every density, so the composition was the more effective representation under the evaluated training budgets and scenarios. The study does not determine how much of the difference arose from the approximation error, the controller interface, the enforcement rate, or other implementation choices. A learnable aggregation that corrects the composition toward the joint value function in such configurations would address the structural gap directly.
Guarantee scope. As in Chapter 5, the architecture guarantees failure-set exclusion, the composition preserves it with the explicit gap Equation (136) , and the count-update margin Equation (146) states what a newly added obstacle requires. Forward invariance of the composite safe set then follows from the CBF theory of § 5.4 under accurate obstacle states, obstacle motion within Equation (126) , the sensing condition Equation (147) , a learned barrier that satisfies the CBF condition, and zero slack in the relaxed QP. The experiments support the last two requirements empirically, and the hardware trace of Figure 6.9 shows the practical meaning of this qualification, since the barrier value briefly became negative and the physical buffer in R min R_{\min} R m i n separated that event from contact. Two points are specific to this chapter. The realized-disturbance argument Equation (142) is established for the exact pairwise value function, while the learned barrier uses the derivative estimate Equation (141) , which is affected by noise and latency. The robust target also holds only while the obstacle inputs remain within D \mathcal{D} D , and the recorded failures include pedestrians who turned more sharply than the attributed bound permits, so calibrating D \mathcal{D} D from recorded motion data is the direct way to trade robustness against conservatism.
Heterogeneous obstacles and higher-dimensional models. The evaluated settings use one obstacle class per robot, and the offline stage inherits the dimensionality limits of grid-based HJ solvers, which here apply to the relative state space. The four-dimensional problems considered in this chapter were solved in seconds, but robot or obstacle models with more states, such as three-dimensional flight, models that include the body orientation and angular rates, and obstacle classes with internal state, increase the dimension of the relative state space beyond what grid-based solvers can handle. Both restrictions could be addressed within the framework. A heterogeneous environment would require one pairwise model per obstacle class, and all of these models can be passed to the same aggregation (134) , because the composition does not require its arguments to originate from the same function. A higher-dimensional relative state, in turn, still leads to a single stationary reachability problem, which is the setting in which self-supervised neural HJ solvers [85] and MPC-guided value approximations [163] apply most directly. Chapter 7 develops such a solver-free alternative, applies it to a robot–pedestrian pair with a different relative model, and deploys the resulting barrier on the same robot through the composition and the filter of this chapter.
Combining static and dynamic barriers. The evaluated scenarios contained only moving obstacles, and those of Chapter 5 contained only static geometry, while real deployments contain both. The observation-conditioned barrier h ^ Ψ ( ⋅ ∣ w j ) \hat{h}_{\Psi}(\cdot\mid w_j) h ^ Ψ ( ⋅ ∣ w j ) of Chapter 5 is itself a scalar barrier candidate and could enter the aggregation (134) as one additional argument next to the pairwise terms, which would yield a single barrier and a single QP constraint for a mixed environment. Because both barriers carry the same residual failure-set exclusion property, such a composition would preserve exclusion. It would not by itself establish that the aggregate satisfies the CBF condition, and it would inherit the SDF-interpolation regularity caveat of Section 5.6. Validating this combination, together with the trainable aggregation mentioned above, is a promising direction for future work.
Summary
CN-CBF learns one stationary pairwise reachability barrier and composes its evaluations over moving obstacles. The composite preserves failure-set exclusion, with a soft-minimum offset bounded by ln ( m ) / β \ln(m)/\beta ln ( m ) / β . It achieved the highest simulated success rates on both robots, with a margin of 18 percentage points over the best MPC baseline at the highest ground-robot crowd density, and the hardware studies demonstrated onboard pedestrian avoidance and a collision-free quadrotor encounter with five moving obstacle drones. CN-CBF completes the static and dynamic variants of both controller interfaces, addressing questions 1, 2, and 3. All four methods still rely on low-dimensional grid-based supervision, which the next chapter replaces with vertex-restricted search for systems with control-affine dynamics and polytopic input constraints.
Part III.
Grid-Free Reachability Supervision
Chapter 7.
Vertex-Restricted Supervision for Neural Control Barrier Functions
This chapter presents VertexCBF , which replaces the grid-based supervision of the preceding methods for systems with control-affine dynamics and polytopic input constraints. It is based on the author’s paper [104] at the Conference on Robot Learning (CoRL) 2026. The method trains a residual neural barrier using a physics-informed loss and labels from a finite-horizon search over input-polytope vertices. For control-affine dynamics, the continuous-time HJ Hamiltonian attains its maximum at a vertex. This exact property motivates a discrete tree search that runs in parallel on a graphics processing unit (GPU), whose finite step, horizon, and width introduce the label errors analyzed in § 10.1.4.3 . The chapter answers research question 4 on scalable supervision, extends the answer to question 1 for the safety-filter interface, and reuses the structural property of question 3.
Motivation
Grid-based supervision limits the preceding methods to low-dimensional models [6]. Their experiments use three to five states, and the five-dimensional grid has only seven nodes along each heading and velocity axis (§ 6.1.5.2 ). Quadrotors modeled with their orientation and angular rates, manipulators, and floating-trunk legged models exceed this practical range, although their dynamics make reachability-based safety especially valuable and hand-designed barriers especially hard to construct. Scalable supervision is thus needed precisely for the systems that could benefit most from a dynamics-aware safe set.
Two established alternatives address this gap only partially. The first is self-supervised neural PDE solving, which replaces the grid by a network trained to satisfy the HJ variational inequality [85]. For the stationary problem of this dissertation, this objective alone is insufficient, because every constant function that lies below the constraint function satisfies the stationary variational inequality. Gradient-based training can converge to these trivial optima, and the experiments in § 10.1.5 show that it produces uninformative barriers on many systems. The second alternative adds supervision from sampling-based trajectory optimization [163]. This removes the ambiguity in principle, but without a suitable initial policy a sampler that draws inputs from the interior of the input set rarely produces the extreme maneuvers that define the boundary of the safe set, so the resulting labels underestimate the safety values.
For fixed state and costate, the control-affine Hamiltonian is linear in the input and reaches its maximum at a polytope vertex, which suggests concentrating a finite search on extreme inputs. Figure 7.1 illustrates the effect on the inverted pendulum: from the same initial states, vertex-restricted search keeps the system within the constraint set far more often than full-control sampling. Because such labels can be generated independently at sparsely sampled states through a batched GPU search, the approach scales to the systems with up to 13 states evaluated in this chapter.
Figure 7.1. Finite-horizon trajectories for the inverted pendulum, generated by (a) model predictive path integral (MPPI) sampling over the full control set and (b) the proposed vertex-restricted beam search. Both methods start from the same 160 random initial states, drawn as circles and colored by the worst constraint value min k c ( x k ) \min_k c(x_k) min k c ( x k ) reached along the trajectory, so that red marks a constraint violation. The subsequent states are drawn as small arrows that point in the direction of motion. The black lines mark the constraint boundary and the purple dashed lines the boundary of the numerically computed maximal safe set. The vertex-restricted search keeps the pendulum inside the constraint set from almost every initial state in the numerically computed safe set, while the full-control sampler fails from many of them.
VertexCBF combines these labels with the physics-informed loss and with the residual parameterization of § 5.9.2 . The labels discourage trivial optima of the variational inequality, the physics-informed loss promotes local consistency at states that carry no label, and the residual architecture keeps the predicted safe set inside the constraint set regardless of the regression error. Unlike the previous chapters, the learned barrier is a single fixed field rather than a conditioned family, because this chapter studies the supervision rather than the environment representation.
Related Work
This section reviews the work most closely related to the question of this chapter, which is how to obtain reachability-based barrier candidates without a grid-based PDE solver. The broader context is reviewed in Chapter 1 and in the related-work sections of Chapters 5 and 6.
Learning-based barrier construction began with barriers fitted by support vector machines [90] and by neural networks trained on labeled safe and unsafe states [95], and recent constructions derive distance-based barriers from Gaussian-splat maps [153]. Such barriers describe geometry rather than dynamics, so they become inadequate for higher-order systems with limited actuation [9]. Formulations that account for input limits improve feasibility but typically yield a conservative subset of the maximal safe set [91, 164].
The maximal safe set itself is characterized by HJ reachability. The methods of Chapters 5 and 6 and the observation-conditioned value network of [97] approximate it with models trained on numerical solutions, so their scalability is bounded by the solver that produces the targets. DeepReach removes the grid by training a network to satisfy the time-dependent HJ variational inequality directly, with a curriculum that advances the horizon during training [85]. Later work adds exact boundary conditions [165] and uncertainty-aware verification [166]. These methods target the time-dependent problem and depend on a curriculum that is difficult to tune and can be unstable.
Two approaches address the stationary problem directly and are the closest to this chapter. The first minimizes the residual of the stationary HJ variational inequality as a single self-supervised objective [167]. As explained in § 10.1.1 , that objective admits trivial solutions, and the experiments of this chapter confirm that it fails on many systems. The second combines a PDE loss with data supervision generated by model predictive path integral (MPPI) sampling over the full control set [163]. It targets the general time-dependent problem and relies on pretraining, curriculum training, and iterative refinement.
VertexCBF differs from both in the problem it solves and in the source of its labels. It addresses the infinite-horizon stationary problem, which removes the time variable and the curriculum, and it exploits the control-affine dynamics and the convex polytope input set of the CBF-QP formulation, which motivate a vertex-restricted trajectory search. In addition, the residual parameterization makes pretraining unnecessary.
Restricting attention to extreme inputs is a classical idea in control. Bang-bang solutions of time-optimal control problems are extremal for the same reason, because the Hamiltonian of the minimum principle is linear in the input [168]. The contribution here is not the observation itself but its use as a data-generation mechanism for learning barrier functions, together with the tree search and the training scheme that exploit it.
Problem Statement
This section states the design problem of the chapter within the safety-filtering framework of § 5.4 . In contrast to Chapters 5 and 6, the constraint function is fixed and known, and the difficulty lies in the dynamics and the actuation limits.
System and constraint. The robot is described by the control-affine model Equation (24) ,
x ˙ = f 0 ( x ) + g ( x ) u , x ∈ X ⊆ R n x , u ∈ U ⊂ R n u , (150) \dot{x} = f_0(x) + g(x)u, \qquad x \in\mathcal{X} \subseteq\mathbb{R}^{n_x}, \qquad u \in\mathcal{U} \subset\mathbb{R}^{n_u}, \tag*{(150)} x ˙ = f 0 ( x ) + g ( x ) u , x ∈ X ⊆ R n x , u ∈ U ⊂ R n u , (150)
with locally Lipschitz f 0 f_0 f 0 and g g g and full state feedback. The state space X \mathcal{X} X is a bounded box that defines the operating region of interest. The dynamics and the constraint function are defined outside this box as well, so on most systems a trajectory that leaves the box is evaluated without modification. On systems where a state component is not meaningful far outside its box, such as the pendulum angle or the rocket mass, the implementation instead clamps that component to the box limits after each Euler step, which locally alters the transition model at those limits. Two assumptions are made explicit, because the method depends on them. The input set U \mathcal{U} U is a compact convex polytope with the vertex set
V : = vert ( U ) , M : = ∣ V ∣ < ∞ , (151) \mathcal{V} := \operatorname{vert}(\mathcal{U}), \qquad M := |\mathcal{V}| < \infty, \tag*{(151)} V := vert ( U ) , M := ∣ V ∣ < ∞ , (151)
and the dynamics are affine in the input, as written in Equation (150) . These assumptions match the CBF-QP formulation used in this dissertation, with a barrier constraint linear in the input and a polytopic admissible input set. Box-shaped input limits, which describe actuator saturation for every robot considered in this dissertation, are the most common instance, and a box in R n u \mathbb{R}^{n_u} R n u has M = 2 n u M = 2^{n_u} M = 2 n u vertices.
Safety is specified by a fixed constraint function c : X → R c : \mathcal{X} \to\mathbb{R} c : X → R with the constraint and failure sets of Equation (6) . The stationary safety value function of Equation (46) is, for the undisturbed system Equation (150) ,
V ∞ ( x ) = sup u ( ⋅ ) ∈ U [ 0 , ∞ ) inf t ≥ 0 c ( ξ x , 0 u ( t ) ) , (152) V_\infty(x) = \sup_{u(\cdot)\in\mathcal{U}_{[0,\infty)}} \inf_{t\geq0} c\left(\xi^u_{x,0}(t)\right), \tag*{(152)} V ∞ ( x ) = u ( ⋅ ) ∈ U [ 0 , ∞ ) sup t ≥ 0 inf c ( ξ x , 0 u ( t ) ) , (152)
and its nonnegative superlevel set is the maximal safe set S ⋆ \mathcal{S}^\star S ⋆ of Equation (49) . The value is bounded above by c ( x ) c(x) c ( x ) , because the infimum over time includes the initial instant. No disturbance is modeled in this chapter, and Section 7.6 discusses the extension to the two-player case.
Design problem. The goal is to construct a barrier candidate V ^ Θ \hat{V}_{\Theta} V ^ Θ , represented by a neural network with parameters Θ \Theta Θ , that
approximates the stationary value function Equation (152) , so that its predicted safe set S ^ Θ \hat{\mathcal{S}}_{\Theta} S ^ Θ approximates the maximal safe set S ⋆ \mathcal{S}^\star S ⋆ rather than a conservative subset of it,
satisfies the failure-set exclusion property by construction, so that S ^ Θ ⊆ C \hat{\mathcal{S}}_{\Theta} \subseteq\mathcal{C} S ^ Θ ⊆ C regardless of the learning error,
is trained without a grid-based PDE solver, without a training curriculum, and without a nominal policy, so that the offline stage does not inherit the dimensionality limit of § 5.6.3 , and
is differentiable wherever the constraint function is, and inexpensive enough for the CBF-QP Equation (2.34) to run at control rate.
The second and fourth requirements are the same as in Chapters 5 and 6, while the third is the specific demand of this chapter.
Standing assumptions. Three assumptions define the setting. First, the dynamics model Equation (150) and the constraint function c c c are known and are the same in data generation, training, and deployment. Second, the state space X \mathcal{X} X is a bounded box, and states outside it are not covered by any statement made here. Third, the accuracy of the learned barrier relative to the exact value function is assessed by the closed-loop validation protocol of § 10.1.5.2 , since no error bound is derived, and Section 7.6 discusses how such a bound could be obtained.
Vertex-Restricted Supervision and Physics-Informed Learning
The method first establishes the vertex property of the Hamiltonian and defines a discrete approximation of the vertex-restricted problem. It then constructs a finite search that produces labels, separates the resulting label errors, and specifies the residual model, the training objective, and the safety filter.
Vertex-Restricted Reachability
The stationary variational inequality Equation (47) for the undisturbed system Equation (150) reads
min { c ( x ) − V ∞ ( x ) , H ( x , ∇ x V ∞ ( x ) ) } = 0 , (153) \min\left\{c(x)-V_{\infty}(x),\ H\left(x,\nabla_x V_{\infty}(x)\right)\right\}=0, \tag*{(153)} min { c ( x ) − V ∞ ( x ) , H ( x , ∇ x V ∞ ( x ) ) } = 0 , (153)
with the Hamiltonian
H ( x , p ) = max u ∈ U p T ( f 0 ( x ) + g ( x ) u ) = p T f 0 ( x ) + max u ∈ U p T g ( x ) u . (154) H(x,p)=\max_{u\in\mathcal{U}}p^{\mathsf{T}}\left(f_0(x)+g(x)u\right)=p^{\mathsf{T}}f_0(x)+\max_{u\in\mathcal{U}}p^{\mathsf{T}}g(x)u. \tag*{(154)} H ( x , p ) = u ∈ U max p T ( f 0 ( x ) + g ( x ) u ) = p T f 0 ( x ) + u ∈ U max p T g ( x ) u . (154)
The second term is a linear function of u u u maximized over the compact convex polytope U \mathcal{U} U . By the fundamental theorem of linear programming, such a maximum is attained at a vertex of the polytope [169]. Consequently,
H ( x , p ) = max u ∈ V p T ( f 0 ( x ) + g ( x ) u ) , (155) H(x,p)=\max_{u\in\mathcal{V}}p^{\mathsf{T}}\left(f_0(x)+g(x)u\right), \tag*{(155)} H ( x , p ) = u ∈ V max p T ( f 0 ( x ) + g ( x ) u ) , (155)
and the variational inequality becomes
min { c ( x ) − V ∞ ( x ) , max u ∈ V ∇ x V ∞ ( x ) T ( f 0 ( x ) + g ( x ) u ) } = 0. (156) \min\left\{c(x)-V_{\infty}(x),\ \max_{u\in\mathcal{V}}\nabla_xV_{\infty}(x)^{\mathsf{T}}\left(f_0(x)+g(x)u\right)\right\}=0. \tag*{(156)} min { c ( x ) − V ∞ ( x ) , u ∈ V max ∇ x V ∞ ( x ) T ( f 0 ( x ) + g ( x ) u ) } = 0. (156)
Two consequences follow. The first is computational, since the inner maximization is now a maximum over M M M scalar values rather than an optimization problem, so the Hamiltonian can be evaluated exactly and at low cost at any state. The second concerns which inputs are relevant. Wherever the value function is differentiable, which is almost everywhere, a maximizer of the Hamiltonian can be chosen from V \mathcal{V} V . This statement is exact, but it holds for a fixed pair ( x , p ) (x,p) ( x , p ) and does not transfer by itself to a discrete-time construction in which one vertex input is held constant over a step of length Δ t \Delta t Δ t . The remainder of this subsection defines such a construction and states how closely it follows the continuous-time problem, and § 10.1.4.2 and § 10.1.4.3 build the label generator on it and separate the approximations it adds.
Equation (156) could be used on its own as a self-supervised training objective, following [167]. That approach is insufficient, because the stationary variational inequality does not determine its solution uniquely. Let a ≤ min x ∈ X c ( x ) a\leq\min_{x\in\mathcal{X}}c(x) a ≤ min x ∈ X c ( x ) and consider the constant candidate V ( x ) ≡ a V(x)\equiv a V ( x ) ≡ a in place of V ∞ V_{\infty} V ∞ . Its gradient vanishes, so the second term of Equation (156) is zero, and the first term c ( x ) − a c(x)-a c ( x ) − a is nonnegative by the choice of a a a . The minimum of the two is zero at every state, so every such constant satisfies the equation, although its nonnegative superlevel set is either empty or all of X \mathcal{X} X and carries no information. These constants are available to gradient-based training as flat optima, and the experiments of § 10.1.5.3 show that training frequently converges to them. Sparse supervision discourages these trivial solutions by anchoring the predicted values at selected states.
Discrete-time value function. Generating labels requires a computable quantity, which is obtained by discretizing the vertex-restricted problem Equation (156) in time. The order of the two steps matters. The restriction to vertices is made first, in continuous time, where the maximization inside the Hamiltonian is linear in the input and the restriction is exact, and only then are the dynamics discretized. The opposite order, which would restrict a full-control discrete-time Bellman operator to the vertices, is not exact, because the map u ↦ V ( F Δ ( x , u ) ) u \mapsto V(F_{\Delta}(x,u)) u ↦ V ( F Δ ( x , u )) is nonlinear in u u u . The quantity defined below approximates the vertex-restricted continuous-time problem, and not the discrete-time problem over the full control set.
For a step size Δ t > 0 \Delta t > 0 Δ t > 0 , let F Δ F_{\Delta} F Δ denote the forward-Euler map of the discrete-time model Equation (5) ,
x k + 1 = F Δ ( x k , u k ) = x k + Δ t ( f 0 ( x k ) + g ( x k ) u k ) . (157) x_{k+1} = F_{\Delta}(x_k,u_k) = x_k + \Delta t\left(f_0(x_k) + g(x_k)u_k\right). \tag*{(157)} x k + 1 = F Δ ( x k , u k ) = x k + Δ t ( f 0 ( x k ) + g ( x k ) u k ) . (157)
The vertex-restricted discrete-time value function V Δ t : X → R V_{\Delta t} : \mathcal{X} \to\mathbb{R} V Δ t : X → R is
V Δ t ( x ) : = sup { u k } k ≥ 0 ⊂ V inf k ≥ 0 c ( x k ) , x 0 = x , (158) V_{\Delta t}(x) := \sup_{\{u_k\}_{k\geq0}\subset\mathcal{V}} \inf_{k\geq0} c(x_k), \qquad x_0 = x, \tag*{(158)} V Δ t ( x ) := { u k } k ≥ 0 ⊂ V sup k ≥ 0 inf c ( x k ) , x 0 = x , (158)
where the state evolves according to Equation (157) . It is the infinite-horizon safety value of the Euler-discretized system when the input sequence is drawn from the vertices alone, and it satisfies the Bellman equation
V Δ t ( x ) = min { c ( x ) , max u ∈ V V Δ t ( F Δ ( x , u ) ) } . (159) V_{\Delta t}(x) = \min\left\{c(x), \max_{u\in\mathcal{V}} V_{\Delta t}\left(F_{\Delta}(x,u)\right)\right\}. \tag*{(159)} V Δ t ( x ) = min { c ( x ) , u ∈ V max V Δ t ( F Δ ( x , u ) ) } . (159)
The associated Bellman operator is not a contraction [86, 99], so the usual convergence guarantees of value iteration do not apply to Equation (159) . A discount factor restores contraction [86, 170], but it reintroduces an iteration over the whole state space, which the grid-based solver already performs. Instead, rearranging Equation (159) gives the equivalent form
min { c ( x ) − V Δ t ( x ) , max u ∈ V V Δ t ( F Δ ( x , u ) ) − V Δ t ( x ) Δ t } = 0 , (160) \min\left\{c(x)-V_{\Delta t}(x), \frac{\max_{u\in\mathcal{V}}V_{\Delta t}\left(F_{\Delta}(x,u)\right)-V_{\Delta t}(x)}{\Delta t}\right\}=0, \tag*{(160)} min { c ( x ) − V Δ t ( x ) , Δ t max u ∈ V V Δ t ( F Δ ( x , u ) ) − V Δ t ( x ) } = 0 , (160)
in which the second term is a finite-difference approximation of the Hamiltonian Equation (155) .
Local consistency. Safety value functions are in general nonsmooth, so the consistency of this normalized form with the continuous-time operator is verified against a smooth test function rather than against the value function itself. Let Y ⊆ X \mathcal{Y}\subseteq\mathcal{X} Y ⊆ X be a compact convex region that contains x x x and F Δ ( x , u ) F_{\Delta}(x,u) F Δ ( x , u ) for every u ∈ V u\in\mathcal{V} u ∈ V and every sufficiently small Δ t \Delta t Δ t , and let ψ ∈ C 1 , 1 ( Y ) \psi\in C^{1,1}(\mathcal{Y}) ψ ∈ C 1 , 1 ( Y ) have a gradient with Lipschitz constant L ∇ ψ L_{\nabla\psi} L ∇ ψ on Y \mathcal{Y} Y . A Taylor expansion of ψ ( F Δ ( x , u ) ) \psi(F_{\Delta}(x,u)) ψ ( F Δ ( x , u )) about x x x , followed by the maximum over the vertices and the vertex representation Equation (155) , bounds the local truncation error of the finite-difference term by
∣ max u ∈ V ψ ( F Δ ( x , u ) ) − ψ ( x ) Δ t − H ( x , ∇ x ψ ( x ) ) ∣ ≤ 1 2 L ∇ ψ max u ∈ V ∥ f 0 ( x ) + g ( x ) u ∥ 2 Δ t . (161) \left|\frac{\max_{u\in\mathcal{V}}\psi\left(F_{\Delta}(x,u)\right)-\psi(x)}{\Delta t}-H\left(x,\nabla_x\psi(x)\right)\right|
\leq\frac{1}{2}L_{\nabla\psi}\max_{u\in\mathcal{V}}\left\|f_0(x)+g(x)u\right\|^2\Delta t. \tag*{(161)} Δ t max u ∈ V ψ ( F Δ ( x , u ) ) − ψ ( x ) − H ( x , ∇ x ψ ( x ) ) ≤ 2 1 L ∇ ψ u ∈ V max ∥ f 0 ( x ) + g ( x ) u ∥ 2 Δ t . (161)
and substituting this bound into the discrete variational inequality Equation (160) gives
min { c ( x ) − ψ ( x ) , max u ∈ V ψ ( F Δ ( x , u ) ) − ψ ( x ) Δ t } = min { c ( x ) − ψ ( x ) , H ( x , ∇ x ψ ( x ) ) } + O ( Δ t ) . (162) \min\left\{c(x)-\psi(x),\frac{\max_{u\in\mathcal{V}}\psi\left(F_{\Delta}(x,u)\right)-\psi(x)}{\Delta t}\right\}=\min\left\{c(x)-\psi(x),H\left(x,\nabla_x\psi(x)\right)\right\}+O(\Delta t). \tag*{(162)} min { c ( x ) − ψ ( x ) , Δ t max u ∈ V ψ ( F Δ ( x , u ) ) − ψ ( x ) } = min { c ( x ) − ψ ( x ) , H ( x , ∇ x ψ ( x ) ) } + O ( Δ t ) . (162)
The derivation is given in Section B.1. The vertex-restricted Euler Bellman operator is a first-order consistent approximation of the continuous stationary operator Equation (153) , with an error of O ( Δ t 2 ) O(\Delta t^2) O ( Δ t 2 ) in the one-step Bellman expansion and of O ( Δ t ) O(\Delta t) O ( Δ t ) in its time-normalized form.
This calculation establishes local consistency only and is not a convergence proof for the infinite-horizon value function. Such a proof would additionally require well-posedness of the limiting viscosity problem, including a comparison principle and appropriate state-constraint conditions, together with an argument that selects the dynamic-programming solution among the possible stationary viscosity solutions. The result is used here to justify the local first-order behavior of the discretization, and § 10.1.4.3 separates the label errors that the finite search adds to it. On systems where a state component is clamped to the box limits after each Euler step, or where the quaternion is renormalized (Sections B.2 and 7.3), the calculation applies to the unmodified Euler map away from those limits.
Search-Based Label Generation
The infinite-horizon quantity Equation (158) is still not computable, and computing it at one state should not require computing it at every other state. The label generator resolves both points by truncating the horizon. For a horizon length K K K , define
V Δ t K ( x ) : = max u 0 , … , u K − 1 ∈ V min 0 ≤ k ≤ K c ( x k ) , x 0 = x . (163) V_{\Delta t}^{K}(x):=\max_{u_0,\ldots,u_{K-1}\in\mathcal{V}}\min_{0\leq k\leq K}c(x_k),\qquad x_0=x. \tag*{(163)} V Δ t K ( x ) := u 0 , … , u K − 1 ∈ V max 0 ≤ k ≤ K min c ( x k ) , x 0 = x . (163)
This is the central object of the method, and its feasible set is finite. There are M M M choices at each of K K K stages, hence M K M^K M K input sequences, and the maximization is a search over a tree of depth K K K and branching factor M M M rather than a continuous optimization problem.
Three properties make this search practical. First, Equation (163) depends only on the initial state x x x , so labels at different states are independent. Supervision states can be sampled sparsely from X \mathcal{X} X , and their number is chosen by the available budget instead of by a grid resolution that grows exponentially with n x n_x n x . Second, the tree can be explored for many initial states simultaneously, since at each depth all initial states, all retained partial trajectories, and all M M M vertices are expanded and scored in a single batched GPU operation. Third, for systems with few vertices and short horizons, the tree can be enumerated completely, which makes Equation (163) exact.
When M K M^K M K is too large for complete enumeration, a width-bounded search is used. Let V Δ t K , B ( x ) V_{\Delta t}^{K,B}(x) V Δ t K , B ( x ) denote the value returned by such a search with budget B B B . Since it optimizes over a subset of the input sequences,
V Δ t K , B ( x ) ≤ V Δ t K ( x ) , (164) V_{\Delta t}^{K,B}(x)\leq V_{\Delta t}^{K}(x), \tag*{(164)} V Δ t K , B ( x ) ≤ V Δ t K ( x ) , (164)
with equality whenever the retained subset contains an optimal sequence. The inequality is one-sided, because an incomplete search lowers the search value relative to a complete search for the same discretized finite-horizon problem. Whether the learned safe set becomes smaller as a result also depends on the horizon truncation and the learning error, which § 10.1.4.3 separates.
Scope of the vertex restriction. Restricting the search to vertices does not by itself improve the finite-horizon optimum, since Equation (163) is a constrained version of the same problem over the full control set. The benefit lies in the effectiveness of the search under a finite computational budget. A maximizer of the Hamiltonian can be chosen from V \mathcal{V} V at almost every state, so the tree search operates on a small set that already contains these inputs, while a sampling-based method such as MPPI uses much of its computational budget on interior inputs that are rarely optimal. This advantage relies on control-affine dynamics, a polytope input set, and a sufficiently small step size, and the approximation can become conservative or suboptimal for a large Δ t \Delta t Δ t , for a short horizon K K K , or for a small width B B B when M M M or K K K is large. The claim is not that vertex-restricted search always outperforms full-control optimization, but that it does so under the stated assumptions at a comparable budget, which § 10.1.5 tests.
Search variants. All search variants solve the same problem Equation (163) and differ only in which partial trajectories they retain, ranked by a common score. For a partial trajectory committed up to depth k k k , the running minimum
s k : = min 0 ≤ j ≤ k c ( x j ) (165) s_k := \min_{0 \le j \le k} c(x_j) \tag*{(165)} s k := 0 ≤ j ≤ k min c ( x j ) (165)
is nonincreasing in k k k , so s k s_k s k is an upper bound on the objective value of every extension of that trajectory to depth K K K . Three variants are used [171, 172, 173].
Beam search retains, after each expansion, the B B B partial trajectories with the largest score. At depth k k k , every retained trajectory is extended by every vertex, which produces at most B M BM B M candidates, the scores are updated through Equation (165) , and the best B B B candidates are kept. The label is the largest score in the final beam. The cost for N N N initial states is O ( N K B M ) O(NKBM) O ( N K B M ) transition evaluations, which is linear in each parameter.
Stochastic beam search addresses the tendency of deterministic selection to commit the beam to one locally promising branch early in the search. It draws B B B candidates without replacement with a probability that increases with the score, which preserves diversity. Four sampling rules are implemented. The first is a softmax over the scores with temperature T T T . The second is the Gumbel top-B B B rule, which adds independent Gumbel noise to the scaled scores and then selects the best B B B candidates [172]. The third is a rank-based weighting that is independent of the scale of the scores, and the fourth is an ε \varepsilon ε -greedy rule that replaces the deterministic selection by a uniform draw with probability ε \varepsilon ε . Deterministic beam search is recovered as T → 0 T \to0 T → 0 or ε → 0 \varepsilon\to0 ε → 0 .
Branch and bound uses the fact that s k s_k s k upper-bounds the value of every completion, so a candidate whose score does not exceed the best value found so far cannot improve the result and may be discarded. The implementation performs several passes over the same tree. The first pass runs without pruning and behaves like beam search, establishing an initial lower bound from the best leaf. Each subsequent pass masks out candidates whose score does not exceed the current bound before selecting the best B B B , which frees capacity in the beam for previously unexplored branches, and small tie-breaking noise on the selection scores diversifies which candidates survive across passes. Pruning never removes a completion that improves on the incumbent, so branch and bound returns a value at least as large as beam search for the same B B B , at the cost of the additional passes.
The choice between the variants depends on the width of the beam relative to the size of the tree. When M M M is small, the retained beam covers a large part of the tree at every depth, the discarded subtrees are unlikely to contain the optimum, and beam search is preferred for its simplicity and its deterministic labels. As M M M grows, the beam becomes narrow relative to the M k M^k M k nodes at depth k k k , and a deterministic selection is more likely to discard the optimal branch early. Part of the budget is then better spent on exploration, either by randomizing the selection or by running several pruned passes, at the cost of stochastic labels in the first case and of the additional passes in the second. The variant used for each system is listed in Chapter B.
Approximation Errors in the Labels
The label y = V Δ t K , B ( x ) y = V_{\Delta t}^{K,B}(x) y = V Δ t K , B ( x ) differs from the continuous infinite-horizon value V ∞ ( x ) V_{\infty}(x) V ∞ ( x ) for three separate reasons, and separating them clarifies which parameter controls which effect,
∣ V Δ t K , B ( x ) − V ∞ ( x ) ∣ ≤ ∣ V Δ t ( x ) − V ∞ ( x ) ∣ ⏟ discretization and vertex restriction + ∣ V Δ t K ( x ) − V Δ t ( x ) ∣ ⏟ horizon truncation + ∣ V Δ t K , B ( x ) − V Δ t K ( x ) ∣ ⏟ search truncation . (166) \left|V_{\Delta t}^{K,B}(x)-V_{\infty}(x)\right| \leq\underbrace{\left|V_{\Delta t}(x)-V_{\infty}(x)\right|}_{\text{discretization and vertex restriction}}+\underbrace{\left|V_{\Delta t}^{K}(x)-V_{\Delta t}(x)\right|}_{\text{horizon truncation}}+\underbrace{\left|V_{\Delta t}^{K,B}(x)-V_{\Delta t}^{K}(x)\right|}_{\text{search truncation}}. \tag*{(166)} V Δ t K , B ( x ) − V ∞ ( x ) ≤ discretization and vertex restriction ∣ V Δ t ( x ) − V ∞ ( x ) ∣ + horizon truncation V Δ t K ( x ) − V Δ t ( x ) + search truncation V Δ t K , B ( x ) − V Δ t K ( x ) . (166)
The first term collects two effects, the error of the forward-Euler step and the error of holding one vertex input constant over each interval of length Δ t \Delta t Δ t , since the vertex restriction is exact for the continuous-time Hamiltonian but need not remain exact once an input is held over a finite step. A smaller Δ t \Delta t Δ t reduces both effects. Equation (161) bounds the local truncation error of the Bellman operator by a term of order Δ t \Delta t Δ t , but that bound concerns one application of the operator to a smooth test function and does not by itself yield a rate for the difference of the two infinite-horizon value functions. First-order consistency is used only as an indication of how this term should behave as Δ t \Delta t Δ t decreases.
The second term is caused by truncating the horizon after K K K steps. The inequality V Δ t ( x ) ≤ V Δ t K ( x ) V_{\Delta t}(x) \leq V_{\Delta t}^{K}(x) V Δ t ( x ) ≤ V Δ t K ( x ) always holds, because the infinite-horizon minimum runs over more steps. The term vanishes if an optimal sequence of Equation (163) can be extended by further vertex inputs that keep c ( x k ) ≥ V Δ t K ( x ) c(x_k) \geq V_{\Delta t}^{K}(x) c ( x k ) ≥ V Δ t K ( x ) for all k > K k > K k > K , so that the safety level attained within the horizon can be maintained forever, which gives V Δ t ( x ) ≥ V Δ t K ( x ) V_{\Delta t}(x) \geq V_{\Delta t}^{K}(x) V Δ t ( x ) ≥ V Δ t K ( x ) and hence equality. Such a continuation requires a sufficiently long horizon and a terminal region in which admissible vertex inputs can maintain the attained safety level. If later violations are unavoidable, horizon truncation overestimates the infinite-horizon discrete value.
The third term vanishes under complete enumeration and can be reduced by a larger budget B B B or by the more thorough search variants of § 10.1.4.2 . The three terms interact, because a smaller Δ t \Delta t Δ t requires a larger K K K to cover the same time horizon, and a larger K K K requires a larger B B B to retain near-optimal sequences, which § 10.1.5.4 measures. The decomposition is a conceptual account and not a computable bound, since none of the three terms is available without the exact value function.
Network Architecture and Training
The learned barrier follows the residual parameterization of § 5.9.2 . Because the constraint function is fixed rather than observation dependent, it specializes to
V ^ Θ ( x ) : = c ( x ) − r ^ Θ ( x ) , r ^ Θ ( x ) ≥ 0 ∀ x ∈ X , (167) \widehat{V}_{\Theta}(x) := c(x)-\widehat{r}_{\Theta}(x), \qquad\widehat{r}_{\Theta}(x) \geq0 \quad\forall x \in\mathcal{X}, \tag*{(167)} V Θ ( x ) := c ( x ) − r Θ ( x ) , r Θ ( x ) ≥ 0 ∀ x ∈ X , (167)
with the predicted safe set
S ^ Θ : = { x ∈ X ∣ V ^ Θ ( x ) ≥ 0 } ⊆ C . (168) \widehat{\mathcal{S}}_{\Theta} := \left\{x \in\mathcal{X} \mid\widehat{V}_{\Theta}(x) \geq0\right\} \subseteq\mathcal{C}. \tag*{(168)} S Θ := { x ∈ X ∣ V Θ ( x ) ≥ 0 } ⊆ C . (168)
This is the same structural property as in Chapters 4 to 6, and it holds here for the same reason. In this chapter, the parameterization has a second effect that was not needed in the earlier chapters. It makes the trivial constant solutions of § 10.1.4.1 harder for the network to represent, because reproducing a constant V ^ Θ ≡ a \hat{V}_{\Theta} \equiv a V ^ Θ ≡ a requires the output r ^ Θ ( x ) = c ( x ) − a \hat{r}_{\Theta}(x) = c(x) - a r ^ Θ ( x ) = c ( x ) − a , which is a state-dependent function rather than a constant. § 10.1.5.5 measures the size of this effect.
The residual r ^ Θ \hat{r}_{\Theta} r ^ Θ is a multilayer perceptron with sinusoidal hidden activations [94] and a softplus output that enforces nonnegativity while remaining smooth. The assembled barrier inherits the nonsmooth points of the constraint function, such as the kink of an absolute value at zero. These points form sets of measure zero, and automatic differentiation returns an implementation-selected derivative there, as discussed for the interpolated SDF in Section 5.6. Non-periodic state components are rescaled linearly to [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] so that all inputs share a common scale, and every periodic component θ \theta θ is replaced by the pair ( cos θ , sin θ ) (\cos\theta,\sin\theta) ( cos θ , sin θ ) , which builds the periodicity into the representation rather than leaving it to be learned.
Training objective. The parameters are obtained by minimizing a convex combination of a physics-informed term and a data term,
L ( Θ ) = λ L P D E ( Θ ) + ( 1 − λ ) L d a t a ( Θ ) , λ ∈ [ 0 , 1 ] . (169) \mathcal{L}(\Theta) = \lambda\mathcal{L}_{\mathrm{PDE}}(\Theta) + (1-\lambda)\mathcal{L}_{\mathrm{data}}(\Theta), \qquad\lambda\in[0,1]. \tag*{(169)} L ( Θ ) = λ L PDE ( Θ ) + ( 1 − λ ) L data ( Θ ) , λ ∈ [ 0 , 1 ] . (169)
The physics-informed term penalizes pointwise violations of the stationary variational inequality Equation (156) at collocation states { x i } i = 1 N P D E \{x_i\}_{i=1}^{N_{\mathrm{PDE}}} { x i } i = 1 N PDE drawn uniformly from X \mathcal{X} X . Substituting the residual parameterization simplifies its first argument, because c ( x ) − V ^ Θ ( x ) = r ^ Θ ( x ) c(x)-\hat{V}_{\Theta}(x)=\hat{r}_{\Theta}(x) c ( x ) − V ^ Θ ( x ) = r ^ Θ ( x ) , which gives
L P D E ( Θ ) = 1 N P D E ∑ i = 1 N P D E min { r ^ Θ ( x i ) , H ( x i , ∇ x V ^ Θ ( x i ) ) } 2 . (170) \mathcal{L}_{\mathrm{PDE}}(\Theta) = \frac{1}{N_{\mathrm{PDE}}}\sum_{i=1}^{N_{\mathrm{PDE}}} \min\left\{\hat{r}_{\Theta}(x_i), H\left(x_i,\nabla_x\hat{V}_{\Theta}(x_i)\right)\right\}^{2}. \tag*{(170)} L PDE ( Θ ) = N PDE 1 i = 1 ∑ N PDE min { r ^ Θ ( x i ) , H ( x i , ∇ x V ^ Θ ( x i ) ) } 2 . (170)
The state gradient is obtained by automatic differentiation, and the Hamiltonian is evaluated exactly through Equation (155) as a maximum over the M M M vertices. The minimum in Equation (170) is not differentiable where its two arguments cross, a switching set that need not coincide with the safe-set boundary. A smooth minimum was also evaluated, but it produced no consistent difference and the exact minimum caused no training instability, so all reported results use the exact minimum. The data term is a mean squared error against the generated labels at supervision states { ( x j , y j ) } j = 1 N d a t a \{(x_j,y_j)\}_{j=1}^{N_{\mathrm{data}}} {( x j , y j ) } j = 1 N data , with y j = V Δ t K , B ( x j ) y_j=V_{\Delta t}^{K,B}(x_j) y j = V Δ t K , B ( x j ) ,
L d a t a ( Θ ) = 1 N d a t a ∑ j = 1 N d a t a ( c ( x j ) − r ^ Θ ( x j ) − y j ) 2 . (171) \mathcal{L}_{\mathrm{data}}(\Theta) = \frac{1}{N_{\mathrm{data}}}\sum_{j=1}^{N_{\mathrm{data}}}\left(c(x_j)-\hat{r}_{\Theta}(x_j)-y_j\right)^2. \tag*{(171)} L data ( Θ ) = N data 1 j = 1 ∑ N data ( c ( x j ) − r ^ Θ ( x j ) − y j ) 2 . (171)
The physics-informed term promotes local self-consistency at densely sampled states that carry no label, which allows the supervision to remain sparse, while the data term fixes the solution at nontrivial values and moves the optimization away from the flat optima of § 10.1.4.1 . The objective needs neither a curriculum over the horizon nor a nominal policy. The weight λ \lambda λ is chosen per system, and § 10.1.5.5 measures how sensitive the result is to this choice.
VertexCBF Safety Filter
The trained function is deployed as the barrier candidate of the CBF-QP filter of § 5.4.2 . For a nominal command u n o m u_{\mathrm{nom}} u nom supplied by an arbitrary controller, the filtered control solves
u ⋆ = arg min u ∈ U 1 2 ∥ u − u n o m ∥ 2 u^\star= \underset{u \in\mathcal{U}}{\operatorname{arg\,min}}\ \frac{1}{2}\lVert u-u_{\mathrm{nom}}\rVert^2 u ⋆ = u ∈ U arg min 2 1 ∥ u − u nom ∥ 2
s.t. L f 0 V ^ Θ ( x ) + L g V ^ Θ ( x ) u + α ( V ^ Θ ( x ) ) ≥ 0 , (172) \text{s.t.}\quad L_{f_0}\widehat{V}_{\Theta}(x) + L_g\widehat{V}_{\Theta}(x)u + \alpha\left(\widehat{V}_{\Theta}(x)\right) \ge0, \tag*{(172)} s.t. L f 0 V Θ ( x ) + L g V Θ ( x ) u + α ( V Θ ( x ) ) ≥ 0 , (172)
with the Lie derivatives Equation (27) evaluated by automatic differentiation of the network. The problem is a quadratic program with one barrier constraint and the polytope input constraint, so it has the same structure as the filters of Chapters 5 and 6. In this fixed-field formulation, the barrier is never replaced at runtime, so the observation-update questions of § 7.1.4.1 and § 8.3.3.5 do not arise. The hardware study in Section 7.5.6 instead uses observation-dependent composition and inherits the corresponding perception and update assumptions.
The exclusion Equation (168) holds by construction, the approximation of S ⋆ S^\star S ⋆ is measured rather than certified, and the CBF condition Equation (26) is assessed through the closed-loop behavior rather than verified analytically. As in the preceding chapters, the deployed QP relaxes the barrier constraint with a penalized slack variable. For these reasons, the closed-loop validation of § 10.1.5.2 is a necessary part of the method rather than an evaluation convenience, and Section 7.6 states the scope of the claims.
Experimental Evaluation
The evaluation tests performance across systems, the supervision source, search parameters, residual architecture, loss weight, and hardware deployment.1 Numerical experiments use one NVIDIA RTX 3090 GPU, as in Chapters 5 and 6. Chapter B gives the domains, constraints, search and training settings, validation protocol, and measured offline times.
Systems and Baselines
Systems. The method is evaluated on 15 systems, listed in Table 7.1 , whose state dimension ranges from 2 to 13 and whose input dimension ranges from 1 to 6. The set covers double integrators in one, two, and three dimensions, several ground-vehicle models, systems with unstable or underactuated dynamics such as the torque-limited inverted pendulum and the cart-pole, and higher-dimensional platforms, which are a three-degree-of-freedom manipulator, a landing rocket, a quadruped trunk, a six-degree-of-freedom underwater vehicle, and a quadrotor. A broad evaluation is necessary here, because learning-based barrier methods are strongly system dependent, and a method can succeed on one system and fail on another of similar dimension whose safety value function is more difficult. Numerical references are computed with the grid-based solver for the seven systems with at most four states, and the other benchmarks are assessed by rollout validation alone. Two systems connect this chapter to the rest of the dissertation. The Dubins car is the ground-robot model of Chapters 3 and 5. The relative unicycle poses the robot–pedestrian problem of Chapter 6 in relative coordinates, with a second-order robot and a constant-heading pedestrian, and Section 7.5.6 states how it differs from the model of that chapter.
Table 7.1. Validation results for the learned barriers on the 15 evaluated systems, comparing the three supervision settings of § 10.1.5.1 . Reported are the false-safe rate ρ F S \rho_{\mathrm{FS}} ρ FS , the false-unsafe rate ρ F U \rho_{\mathrm{FU}} ρ FU , and the effective safe volume η e f f \eta_{\mathrm{eff}} η eff of Equation (174) , as mean and standard deviation over five training seeds. A dash marks a setting whose predicted safe set was empty for every seed, for which the false-safe rate is undefined, and a missing standard deviation indicates that the false-safe rate is defined for a single seed only. Best mean values in each group are printed in bold. Settings with an empty predicted safe set are not ranked, because their false-unsafe rate reflects only that every state is predicted unsafe.
Baselines. The comparison isolates the effect of the supervision. All three settings use the same architecture, the same hyperparameters, the same training schedule, and the same validation protocol, and they differ only in the data term of Equation (169) .
Full-control data (FCD) generates labels by MPPI sampling over the full control set, following [163], with the same horizon length and step size as the tree search and with as many sampled trajectories as the beam width. Five MPPI iterations are run, and the best trajectory of each iteration seeds the next. This setting reproduces only the data-generation step of [163], and not its pretraining, curriculum, and iterative refinement, so the comparison isolates the effect of the supervision data.
The two data-generating settings share the horizon length K K K , the step size Δ t \Delta t Δ t , and the nominal sample count, since the number of MPPI trajectories equals the beam width. Their measured computation times are not equal, because five MPPI iterations over B B B trajectories and a tree that expands up to B M BM B M successors at each depth evaluate different numbers of transitions. The comparison thus varies the source of the inputs at a comparable nominal budget rather than at an equal computational cost. Every configuration is trained with five random seeds, and all metrics are reported as mean and standard deviation over the seeds.
Closed-Loop Validation
Because the learned barrier approximates the value function without a derived error bound, it is assessed empirically before it is used, and this subsection defines that assessment. For a trained barrier V ^ Θ \hat{V}_{\Theta} V ^ Θ , a set of N v a l i d N_{\mathrm{valid}} N valid initial states is drawn from the state-space box X \mathcal{X} X by stratified rejection sampling, so that roughly half of them lie in the predicted safe set S ^ Θ \hat{\mathcal{S}}_{\Theta} S ^ Θ and the other half lie outside it. Balancing the two strata reduces the variance of the metrics when the predicted safe set is much smaller than its complement. For the quadrotor, this sampling is uniform over the non-orientation coordinates and over unit quaternions rather than over a 13-dimensional box (Chapter B). From each initial state, the closed loop is simulated for a horizon T v a l i d T_{\mathrm{valid}} T valid under the Hamiltonian-maximizing policy
κ Θ ( x ) = arg max u ∈ V ∇ x V ^ Θ ( x ) T ( f 0 ( x ) + g ( x ) u ) , (173) \kappa_{\Theta}(x) = \mathop{\arg\max}_{u \in\mathcal{V}} \nabla_x \hat{V}_{\Theta}(x)^{\mathsf{T}}\left(f_0(x) + g(x)u\right), \tag*{(173)} κ Θ ( x ) = arg max u ∈ V ∇ x V ^ Θ ( x ) T ( f 0 ( x ) + g ( x ) u ) , (173)
which is the policy that the learned barrier itself prescribes and is computable exactly by Equation (155) . An initial state is called validated safe if the whole simulated trajectory remains in C \mathcal{C} C . Two properties separate this measurement from forward invariance. It is a finite-horizon property, so a violation that occurs after T v a l i d T_{\mathrm{valid}} T valid is not observed, and it is evaluated under the policy Equation (173) rather than under the slack-relaxed CBF-QP Equation (172) that is deployed. The protocol assesses the closed-loop behavior under the policy that the learned barrier itself prescribes, and it is not a statement about the deployed filter.
Three metrics are computed from these rollouts. The false-safe rate ρ F S \rho_{\mathrm{FS}} ρ FS is the fraction of states in S ^ Θ \hat{\mathcal{S}}_{\Theta} S ^ Θ whose trajectories leave C \mathcal{C} C , and it measures whether the predicted safe set is reliable. The false-unsafe rate ρ F U \rho_{\mathrm{FU}} ρ FU is the fraction of states outside S ^ Θ \hat{\mathcal{S}}_{\Theta} S ^ Θ whose trajectories remain in C \mathcal{C} C , and it measures conservatism. Because the rollouts follow the policy of the learned barrier, this rate is also low when that policy fails from most predicted-unsafe states, so a low value alone does not show that the predicted set is close to maximal. The effective safe volume
η e f f : = vol ( S ^ Θ ) vol ( X ) ( 1 − ρ F S ) (174) \eta_{\mathrm{eff}} := \frac{\operatorname{vol}(\hat{\mathcal{S}}_{\Theta})}{\operatorname{vol}(\mathcal{X})}\left(1-\rho_{\mathrm{FS}}\right) \tag*{(174)} η eff := vol ( X ) vol ( S ^ Θ ) ( 1 − ρ FS ) (174)
is the fraction of the sampled state space that the barrier both predicts and validates as safe over the rollout horizon. The volume ratio is a Monte Carlo estimate, obtained as the fraction of the uniform proposals of the rejection sampling at which V ^ Θ ≥ 0 \hat{V}_{\Theta} \ge0 V ^ Θ ≥ 0 . It measures the predicted-safe fraction of the chosen box and is comparable across the three supervision settings of one system, for which X \mathcal{X} X is identical, but not across systems. A useful barrier has a small ρ F S \rho_{\mathrm{FS}} ρ FS and a large η e f f \eta_{\mathrm{eff}} η eff . Reporting them together is essential, because a barrier with an empty predicted safe set leaves ρ F S \rho_{\mathrm{FS}} ρ FS undefined with η e f f = 0 \eta_{\mathrm{eff}}=0 η eff = 0 , and a barrier that predicts the whole box as safe achieves a large predicted volume with a large ρ F S \rho_{\mathrm{FS}} ρ FS . The false-unsafe rate is secondary and indicates how much safe behavior is rejected unnecessarily. Seeds with an empty predicted safe set are excluded from the average of ρ F S \rho_{\mathrm{FS}} ρ FS and contribute η e f f = 0 \eta_{\mathrm{eff}}=0 η eff = 0 .
Unlike the evaluations of the preceding chapters, this protocol requires no reference value function, so it applies to systems for which no tractable numerical reference exists, and it yields an empirical result on a finite sample that sample-based certification methods can later strengthen (Section 7.6).
Benchmark Results
Table 7.1 reports the validation results, and three findings follow from it.
The first finding concerns the physics-informed loss alone. Training without supervision is unreliable, and the state dimension does not predict on which systems it fails. It succeeds on the double integrators, whose value functions are simple, but it fails on the inverted pendulum, which has only two states, where it produces either an empty predicted safe set or one that is entirely unsafe. Similar failures appear on the cart-pole, the landing rocket, and the quadruped trunk. These outcomes are the trivial optima predicted in § 10.1.4.1 , and they confirm that the stationary variational inequality alone is not a sufficient training signal.
The second finding concerns the supervision source. Adding sampling-based supervision improves the result in several cases and reduces the false-safe rate on most of the higher-dimensional systems, but it is often either conservative or ineffective. On three systems, the vertical drone, the cart-pole, and the quadruped trunk, its predicted safe set collapsed to the empty set, which is safe but provides no usable safe set. On the inverted pendulum, it recovered only a small part of the safe set. On the landing rocket, more than half of the states it predicted safe produced a constraint violation under the validation policy, and on the relative unicycle its false-unsafe rate of 37.07% shows that many of the states it predicted unsafe could in fact be kept safe over the validation horizon. The proposed vertex-restricted supervision avoided both failure modes. Its mean false-safe rate over seeds is below 1.2% on every system, its false-unsafe rate is competitive, and it achieves the highest or tied-highest effective safe volume on all 15 systems. On the systems that all three settings solve well, such as the Dubins car and the double integrators, the differences are small, and the sampling-based supervision reaches a slightly lower false-safe rate on some of them.
The third finding concerns the systems on which the differences are largest. They are not the highest-dimensional ones but those with unstable or underactuated dynamics, the inverted pendulum, the cart-pole, the landing rocket, and the quadruped trunk. On these systems, safety depends on committing to an extreme input early, so the safe set has a thin, elongated shape that supervision from interior inputs does not reveal. This is the setting in which the vertex restriction matters most, and it is also the setting in which hand-designed barriers are hardest to construct.
Comparison with numerical references. The rollout metrics apply to every system, but they do not compare the predicted safe set with the maximal safe set directly. For the seven systems with at most four states, the grid-based solver of § 5.6.3 provides that reference, and Table 7.2 reports the intersection over union (IoU) between the predicted safe set and the numerical maximal safe set on the grid of the reference. The IoU penalizes a predicted safe set that is too large and one that is too small, so it complements ρ F S \rho_{\mathrm{FS}} ρ FS and η e f f \eta_{\mathrm{eff}} η eff , which separate the two effects. Vertex-restricted supervision reaches the highest IoU on five of the seven systems and remains within 0.3 percentage points of the best value on the other two. The three settings are nearly identical on the systems that all of them solve well, while the differences are large on the inverted pendulum, the vertical drone, and the cart-pole. There, the sampling-based supervision predicts no state as safe on the vertical drone and the cart-pole and only a small subset of the true safe set on the inverted pendulum, and the physics-informed loss alone recovers only a part of the true safe set. On these seven systems, the learned barriers agree with the numerical reference to between 93 % and 99.8 %, which is comparable to the accuracy that the preceding chapters report for their grid-supervised models.
Table 7.2. Intersection over union (%) between the predicted safe set S ^ Θ \hat{S}_{\Theta} S ^ Θ and the numerically computed maximal safe set, evaluated on the grid of the numerical solution for the seven systems with at most four states. Entries are mean and standard deviation over five training seeds.
Effect of the supervision source. The inverted pendulum shows why the three supervision settings produce such different results. It is chosen because its value function can be computed numerically and its complete state space can be plotted, while the effects shown here also occur in higher dimensions. Figure 7.1 compares the two data generators at the trajectory level. Sampling over the full control set fails from many initial states in the numerical safe set, because recovering the pendulum requires sustained maximal torque and a sampler rarely draws such a sequence. Vertex-restricted beam search keeps the pendulum safe from almost all of these states, and the resulting labels follow the true safety boundary.
Figure 7.2 shows the consequence for the trained barriers. The physics-informed loss alone collapses to a trivial constant solution with an empty predicted safe set, although the system has only two states, and the only seed that avoids this collapse yields a barrier that is unsafe everywhere it predicts safety (Table 7.1 ). Sampling-based supervision corrects the sign but leaves a strongly conservative barrier, because the labels systematically underestimate the achievable safety value. Vertex-restricted supervision approximately recovers the maximal safe set. The comparison supports the interpretation that the benefit comes from the vertex restriction rather than from the presence of supervision by itself.
Figure 7.2. Learned barriers V ^ Θ \hat{V}_{\Theta} V ^ Θ for the inverted pendulum under the three supervision settings, (a) no data (ND), (b) full-control data (FCD), and (c) vertex-restricted control data (VRCD), shown in the ( θ , ω ) (\theta,\omega) ( θ , ω ) plane with red shading marking the states predicted to be unsafe. The black lines mark the constraint boundary, the purple dashed lines the boundary of the numerically computed maximal safe set, and the green lines the boundary of the predicted safe set. The physics-informed loss alone (ND) collapses to a trivial constant solution with an empty predicted safe set. Full-control supervision (FCD) produces a barrier that is safe but strongly conservative. Vertex-restricted supervision (VRCD) approximately recovers the maximal safe set while keeping its predicted safe set inside the constraint set.
Search Parameters and Label Accuracy
The label quality is governed by the three parameters of Equation (166) , the beam width B B B , the horizon length K K K , and the step size Δ t \Delta t Δ t . This subsection measures their effect first on the inverted pendulum, whose numerically computed value function provides a reference, and then on a high-dimensional system, where no reference exists.
Beam width and horizon length. The sweep on the inverted pendulum covers all combinations of B ∈ { 50 , 200 , 500 , 800 , 1000 } B \in\{50, 200, 500, 800, 1000\} B ∈ { 50 , 200 , 500 , 800 , 1000 } , K ∈ { 5 , 10 , 20 , 30 , 40 } K \in\{5, 10, 20, 30, 40\} K ∈ { 5 , 10 , 20 , 30 , 40 } , and Δ t ∈ { 0.05 , 0.1 , 0.2 } \Delta t \in\{0.05, 0.1, 0.2\} Δ t ∈ { 0.05 , 0.1 , 0.2 } s. Figure 7.3 reports the mean squared error of the labels against the reference over a uniform lattice, and three trends are visible, each of which corresponds to one term of the decomposition. First, if the time horizon K Δ t K\Delta t K Δ t is too short to reveal an unavoidable violation, the error is large and the labels overestimate the safety value, which is the horizon-truncation term. Second, as K K K grows, the beam width must grow with it, because a deeper tree offers more opportunities for the beam to discard the branch that leads to the optimal sequence, which is the search-truncation term. Third, a larger step size covers the same time horizon with fewer stages and needs a smaller K K K , but increasing it further degrades the discretization itself, which is the first term and makes the choice of Δ t \Delta t Δ t a compromise. Figure 7.4 reports the corresponding generation time. It grows approximately in proportion to B K BK B K and is independent of Δ t \Delta t Δ t , which matches the complexity O ( N K B M ) O(NKBM) O ( N K B M ) of § 10.1.4.2 . Label quality is thus obtained at a predictable and linear cost, while the cost of a grid-based solution grows exponentially in the state dimension.
Figure 7.3. Mean squared error of the generated labels V Δ t K , B V_{\Delta t}^{K,B} V Δ t K , B against the numerically computed value function on the inverted pendulum over a uniform lattice of 100 × 100 100 \times100 100 × 100 states, as a function of the beam width B B B for the horizon lengths K K K and the step sizes (a) Δ t = 0.05 s \Delta t = 0.05\,\mathrm{s} Δ t = 0.05 s , (b) 0.1 s 0.1\,\mathrm{s} 0.1 s , and (c) 0.2 s 0.2\,\mathrm{s} 0.2 s .
Figure 7.4. Execution time of the vertex-restricted beam search on the inverted pendulum, as a function of the beam width B B B for the horizon lengths K K K . With a single input, the search tree has at most 2 k 2^k 2 k nodes at depth k k k , so the beam width takes effect only once the tree is wider than the beam, and for long horizons the runtime grows approximately in proportion to B K BK B K . It does not depend on the step size Δ t \Delta t Δ t .
Step size on a high-dimensional system. The same trade-off is examined on the underwater vehicle, which has twelve states and no numerical reference. The supervision data are regenerated for Δ t ∈ { 0.02 , 0.05 , 0.1 , 0.2 , 0.4 } s \Delta t \in\{0.02, 0.05, 0.1, 0.2, 0.4\}\,\mathrm{s} Δ t ∈ { 0.02 , 0.05 , 0.1 , 0.2 , 0.4 } s , and a model is trained from scratch for each value with three seeds. All other settings are those of Chapter B, including K = 40 K=40 K = 40 and B = 800 B=800 B = 800 , so the time horizon ranges from 0.8 s 0.8\,\mathrm{s} 0.8 s to 16 s 16\,\mathrm{s} 16 s while the search cost remains the same. Table 7.3 and Figure 7.5 report the result, in which the two extremes fail for different reasons. At Δ t = 0.02 s \Delta t=0.02\,\mathrm{s} Δ t = 0.02 s , the time horizon of 0.8 s 0.8\,\mathrm{s} 0.8 s is shorter than the braking time of the vehicle, so the labels do not detect later violations and the false-safe rate increases to 3.94 % 3.94\% 3.94% . At Δ t = 0.4 s \Delta t=0.4\,\mathrm{s} Δ t = 0.4 s , the discretization itself becomes inaccurate, the predicted safe set becomes visibly smaller, the false-unsafe rate increases to 7.02 % 7.02\% 7.02% , and the effective safe volume decreases to 0.317 0.317 0.317 . Between these extremes the method is stable, since for Δ t \Delta t Δ t between 0.05 s 0.05\,\mathrm{s} 0.05 s and 0.2 s 0.2\,\mathrm{s} 0.2 s the false-safe rate remains at or below 1.18 % 1.18\% 1.18% and the effective safe volume varies only between 0.348 0.348 0.348 and 0.356 0.356 0.356 , with a small spread over the seeds. The best result is obtained at Δ t = 0.1 s \Delta t = 0.1\,\mathrm{s} Δ t = 0.1 s , which is the value used in Table 7.1 . The resulting guideline is to choose Δ t \Delta t Δ t small enough for the Euler step to remain accurate and then to choose K K K so that K Δ t K\Delta t K Δ t covers the time the system needs to reach a state in which the attained safety level can be maintained, for example a stopped state. The beam width must then grow with K K K .
Table 7.3: Influence of the step size Δ t \Delta t Δ t on the six-degree-of-freedom underwater vehicle. The horizon length K = 40 K = 40 K = 40 and the beam width B = 800 B = 800 B = 800 are fixed, so the time horizon K Δ t K\Delta t K Δ t ranges from 0.8 s 0.8\,\mathrm{s} 0.8 s to 16 s 16\,\mathrm{s} 16 s . Entries are mean and standard deviation over three training seeds.
Table 7.3.
Figure 7.5. Slices of the learned barrier V ^ Θ \hat{V}_{\Theta} V ^ Θ for the six-degree-of-freedom underwater vehicle in the ( p y , p z ) (p_y,p_z) ( p y , p z ) plane, one for each step size of Table 7.3 , with red shading marking the states predicted to be unsafe. The black line is the constraint boundary and the green line is the boundary of the predicted safe set. The predicted safe set becomes visibly smaller at the largest step size.
Architecture and Training Ablations
Two ablations examine the two components that the training combines with the supervision, the residual parameterization and the physics-informed loss term.
Residual architecture. All three settings of Table 7.1 use the residual parameterization. To isolate its contribution, every experiment is repeated with a network that predicts the value function directly, by replacing the softplus output of the residual with a linear output. Architecture, hyperparameters, supervision data, and validation protocol are otherwise unchanged, and each configuration is again trained with five seeds, with the results reported in Table 7.4 .
Table 7.4. Validation results without the residual architecture, in which the network predicts the value function directly through a linear output instead of a nonnegative residual subtracted from c c c . All other settings and reporting conventions are those of Table 7.1 . A dash marks a predicted safe set that was empty for every seed.
The residual parameterization proves essential for the physics-informed loss alone. Without it, training converges to an empty predicted safe set on 14 of the 15 systems, so the false-safe rate is undefined, the effective safe volume is zero, and the large false-unsafe rates only reflect that every state is predicted unsafe. Only the manipulator retains a non-empty predicted safe set, with a high and strongly seed-dependent false-safe rate. This behavior is expected, because a sufficiently negative constant makes the loss Equation (170) vanish everywhere, and a direct network represents such a constant with constant outputs. The residual network, in contrast, would have to reproduce the shape of c c c , as anticipated in § 10.1.4.4 .
The supervised settings are considerably less sensitive, because the data term already fixes the solution at nontrivial values. Removing the residual parameterization nevertheless degrades most results. For vertex-restricted supervision, the false-safe rate increases on 13 of the 15 systems, most strongly on the cart-pole and the quadruped trunk, where it increases to 20.39 % and 15.62 % with a large spread across seeds. The effective safe volume does not increase on any system and decreases most on the cart-pole and the quadrotor. The two components are complementary. The residual parameterization reduced the tendency toward degenerate solutions in the evaluated settings and guarantees S ^ Θ ⊆ C \widehat{S}_{\Theta} \subseteq C S Θ ⊆ C by construction, while the supervision data determine how closely S ^ Θ \widehat{S}_{\Theta} S Θ approaches the maximal safe set.
Loss weight. The weight λ \lambda λ in Equation (169) balances the physics-informed term and the data term. It is varied on the inverted pendulum with every other setting of Chapter B unchanged and three seeds per value, where λ = 0 \lambda= 0 λ = 0 trains on the labels alone and λ = 1 \lambda= 1 λ = 1 is the physics-informed setting of Table 7.1 .
Figure 7.6 shows the result. The method is insensitive to λ \lambda λ over the whole range from 0 to 0.5. The effective safe volume remains between 20.2 % and 22.1 %, the false-safe rate remains below 0.3 %, and the error against the reference varies between 1.8 ⋅ 10 − 4 1.8 \cdot10^{-4} 1.8 ⋅ 1 0 − 4 and 7.8 ⋅ 10 − 4 7.8 \cdot10^{-4} 7.8 ⋅ 1 0 − 4 , with its minimum near λ = 0.1 \lambda= 0.1 λ = 0.1 . The behavior changes abruptly above λ = 0.5 \lambda= 0.5 λ = 0.5 .
Figure 7.6. Sensitivity to the weight λ \lambda λ of the physics-informed term on the inverted pendulum. (a) Validation metrics. (b) Mean squared error against the numerically computed value function. Curves are means over three seeds and the bands are one standard deviation. In the shaded region the predicted safe set is empty for λ = 0.7 \lambda= 0.7 λ = 0.7 , where η e f f \eta_{\mathrm{eff}} η eff is zero and ρ F S \rho_{\mathrm{FS}} ρ FS is undefined, and every state predicted safe is unsafe for λ ≥ 0.9 \lambda\ge0.9 λ ≥ 0.9 .
At λ = 0.7 \lambda= 0.7 λ = 0.7 the predicted safe set is empty for every seed, and at λ = 0.9 \lambda= 0.9 λ = 0.9 and λ = 1 \lambda= 1 λ = 1 it is non-empty but every state predicted safe is unsafe, while the error against the reference grows by more than two orders of magnitude. The data term is what keeps the optimization away from the trivial solutions of the physics-informed term, and a moderate weight on that term is enough to enforce local consistency without dominating the objective. The value λ = 0.2 \lambda= 0.2 λ = 0.2 used for this system lies inside the flat region, and λ \lambda λ was selected for the other systems in the same way, by choosing a value inside the range in which the validation metrics are flat. On four systems this value is zero, as Chapter B records.
Hardware Experiments
The final study asks whether a barrier trained by the proposed method operates on a physical robot under real perception. The platform, the task, and the deployment pipeline are those of § 8.4.1.5 , so the two chapters run the same composition and the same filter on the same robot. Object detection and tracking, localization, and the QP solution all run on the onboard computer. An MPC planner without safety constraints supplies the nominal command that drives the robot from its start position to its goal. The barrier is evaluated for the relative state between the robot and each tracked pedestrian, the pairwise values are aggregated into one composite constraint as in § 8.3.3.3 , and the time-varying CBF-QP filter Equation (6.18) modifies the nominal command, with α ( s ) = γ s \alpha(s) = \gamma s α ( s ) = γ s and γ = 2.8 \gamma= 2.8 γ = 2.8 . As in the preceding chapters, the constraint is relaxed by a penalized slack variable, so the QP always returns an input, even when the perception module reports a new pedestrian at a state where the hard constraint cannot be satisfied.
The barrier is the one trained for the relative unicycle in Table 7.1 , and its pairwise model differs from that of Chapter 6 in two respects. The robot is a dynamic unicycle with inputs ( a , ω ) (a,\omega) ( a , ω ) , so its speed is a state that the filter influences only through an acceleration limit, while Chapter 6 commands the speed directly. For this reason, the relative state has five components, the pedestrian position and heading in the robot frame, the robot speed, and the pedestrian speed. The pedestrian moves at a constant heading, while Chapter 6 treats its turning rate as a bounded adversarial disturbance and solves a two-player game.
The barrier deployed here assumes more about how the pedestrian moves, so the trials are a second navigation deployment that reuses the composition and the filter, and not a comparison of one barrier obtained from two supervision sources.
Ten trials were conducted in which one or two pedestrians deliberately crossed the path of the robot, and the robot avoided collision in all of them. Figure 7.7 shows a representative run and Figure 7.8 the corresponding view from the onboard computer. The filter departs from the nominal command only while a pedestrian is on an intercepting course. The barrier value remains close to zero during the encounter and becomes slightly negative for a short period while the pedestrians pass the robot. Possible causes include mismatch between the training model and the real system, estimation error, and sampled control. The barrier is learned for an ideal kinematic model, while the skid-steer robot slips during turns and its velocity controller has its own dynamics, the pedestrian states estimated from LiDAR and camera data are noisy and delayed, and the input is held constant between two QP solutions. To compensate, the robot and pedestrian radii used during training are 5 cm larger than the physical dimensions, so the predicted safe set is slightly smaller than the collision-free set of the real system and a small negative barrier value does not correspond to a collision. The study is a deployment demonstration rather than a controlled comparison, since it does not evaluate baselines under the same conditions. Its purpose is to establish that a grid-free barrier is deployable in the same pipeline, at the same rate, and on the same hardware as the barriers of the preceding chapters.
Figure 7.7. Hardware experiment with the delivery robot. (a) The recorded robot motion and the tracked pedestrians in the workspace, drawn as circles colored by time. Opaque circles mark the two encounters in which a pedestrian crosses the path of the robot. (b) The composite barrier value h ^ c n \hat{h}_{\mathrm{cn}} h ^ cn over the run, with the zero level marked by the dotted line. While no pedestrian is tracked, the barrier is undefined and its value is drawn at 3 m. (c), (d) The nominal and the filtered acceleration and turning-rate commands. The filter deviates from the nominal command only while a pedestrian is on an intercepting course, and the barrier value becomes slightly negative for a short period while the pedestrians pass the robot.
Figure 7.8. View from the onboard computer of the delivery robot during a trial, showing the front camera image, a positional slice of the learned barrier, and the output of the perception module.
Discussion
Across 15 systems with up to 13 states, vertex-restricted supervision produced low false-safe rates and the largest validated safe regions, while physics-informed training alone was unreliable and full-control sampling was often conservative or produced empty sets. These results support grid-free barrier learning within the following limits.
Discussion
Guarantee scope. Three kinds of statements are made about the method. The exclusion property Equation (168) holds by construction, and the vertex representation Equation (155) and the local consistency result Equation (162) are derived properties of the Hamiltonian and its discretization. The approximation of the maximal safe set and the closed-loop behavior are measured by the validation protocol of § 10.1.5.2 , because the consistency result is local and the label errors of Equation (166) are controlled by the search parameters rather than bounded in closed form. This measurement is the evidence that remains available for systems beyond the reach of numerical solvers, and sample-based certification methods such as scenario optimization or conformal prediction could convert it into a probabilistic statement with finite-sample coverage [166, 163]. Verification of the CBF condition Equation (26) on the learned field is the same step as for the barriers of Chapters 5 and 6.
Scalability of the data generation. The vertex restriction removes the exponential dependence of the grid on the state dimension, but it introduces a dependence on the number of input vertices. For box-shaped input limits, M = 2 n u M = 2^{n_u} M = 2 n u , so the branching factor grows exponentially with the input dimension. The tree search cost O ( N K B M ) O(NKBM) O ( N K B M ) is linear in M M M for a fixed beam width, but a larger M M M requires a larger beam to retain near-optimal sequences, so the effective cost grows faster than the stated complexity suggests. The evaluated systems reached n u = 6 n_u = 6 n u = 6 , which corresponds to 64 vertices and remained practical. Whole-body models of humanoid robots, with tens of actuated joints, would exceed this range, and for such systems the method is better applied to reduced-order models or to safety-critical subsystems, or extended with a search over a subset of the vertices, as Chapter 8 outlines. The combinatorial bottleneck thus shifts from the state dimension to the number of input vertices, while the state dimension still affects the evaluation cost and the learning difficulty.
Relation to the preceding chapters. The formulation has three restrictions. First, it requires control-affine dynamics with polytopic input constraints. The CBF-based methods of Chapters 5 and 6 already assume this structure, but the MPC methods of Chapters 3 and 4 do not assume it, so the search cannot supervise them in general. Second, it learns a fixed field, so the hardware study composes a relative-state field as in Chapter 6, while an ORN-CBF extension would generate labels for each conditioning input. Third, it models no disturbance, although a two-player extension is possible in principle for dynamics f 0 ( x ) + g ( x ) u + g d ( x ) d f_0(x)+g(x)u+g_d(x)d f 0 ( x ) + g ( x ) u + g d ( x ) d and polytopic input sets, since the control and disturbance optimizations separate and both attain their extrema at vertices. The branching factor of the resulting game tree is the product of the two vertex counts. Extending the search and analysis to the robust targets of Chapter 6 remains future work.
Choice of the search parameters and loss weight. The studies of § 10.1.5.4 give the same guidance on a system with a reference and on one without, and within the stated limits there is a broad range of values in which the result is stable. On a new system, however, none of the parameters can be verified against a reference, and the available check is the validation protocol itself. Labels that are too optimistic because of a short horizon increase the false-safe rate, and labels that are too conservative because of a coarse step or a narrow beam increase the false-unsafe rate. Parameter selection is thus an iteration between generation and validation rather than a direct computation, which is a practical limitation of the method. A similar remark applies to the loss weight, since the experiments establish different things about the two loss terms. The data term was necessary on the evaluated systems, since the physics-informed setting failed on many of them and, on the inverted pendulum, the result collapsed once the weight of the physics-informed term exceeded 0.5. The physics-informed term constrains the field at states that carry no label and permits a sparser set of supervision states, but four of the evaluated systems were trained on the labels alone, so its contribution depends on the system. Its weight did not require fine tuning within the flat region, but it remains a per-system choice, and a systematic study of its interaction with the number of supervision and collocation states remains to be done.
Summary
VertexCBF generates labels through GPU-parallel search over input vertices and trains a residual barrier with data and physics-informed losses. The Hamiltonian vertex property is exact, while the labels incur discretization, horizon, and search errors, and their generation avoids a state-space grid but still depends on the number of input vertices. Across 15 systems with 2–13 states and 1–6 inputs, vertex-restricted supervision achieved mean false-safe rates below 1.2% and reached the highest or tied-highest effective safe volume, with IoU against numerical safe sets between 93% and 99.8% on the seven reference systems. Ablations supported residual learning and showed stable results over tested ranges of step sizes and loss weights, and a composed relative-state barrier avoided collisions in all ten delivery-robot trials. These results answer question 4, since grid-free supervision extends the approach beyond the practical state dimensions of the earlier solvers, while finite-horizon rollout validation supplies empirical evidence where no numerical reference exists. Chapter 8 compares this contribution with the other four.
Conclusions and Future Work
This dissertation developed five methods that make reachability-based safety information available to robot controllers in unknown and dynamic environments. Neural implicit representations replace repeated online Hamilton–Jacobi (HJ) computation with fast value and gradient queries for model predictive control (MPC) and control barrier function (CBF) safety filters. For control-affine systems with polytopic input constraints, the fifth method replaces grid-based supervision with labels from a search over the input vertices, which extends the evaluated state dimensions beyond the practical range of grid-based solvers. This chapter first answers the research questions. It then compares the five methods, separates the safety properties that hold by theory or by construction from those that were demonstrated experimentally, and closes with an outlook.
Answers to the Research Questions
The introduction posed four research questions in Section 1.3. This section answers them in order, and the following two sections give the detailed comparison and the safety properties of the methods together with their assumptions.
Question 1. Real-time safety functions. Reachability-based safety functions can be made available in real time by solving the reachability problems offline and replacing the online computation with the evaluation of a network trained on their solutions. For the observation-conditioned methods, the hypernetwork factorization matches how optimization-based controllers use the function, since they process each observation once and then query the value and gradient many times. CN-CBF reaches the same goal without scene conditioning, because one pairwise model in relative coordinates can be evaluated in batches for any obstacle list. Through the MPC interface, the learned function enters as one scalar terminal constraint on the final predicted state. At the shortest evaluated horizon, the planners with this constraint achieved considerably higher success rates than the distance-based formulations. Through the safety-filter interface, the learned barriers ran in CBF-QP filters at several hundred hertz in the evaluated configurations, achieved higher success rates than the evaluated classical barriers, and matched or exceeded the success rates of the MPC planners. The experiments also provide evidence of generalization to new observations and environments, including out-of-domain obstacle geometry for ORN-CBF.
Question 2. Moving obstacles and changing obstacle counts. The dissertation developed two approaches. RNTC-MPC conditions the terminal constraint on the predicted obstacle geometry, and because its input consists of two SDF snapshots taken a fixed time apart, one trained model can be used with any prediction horizon that is at least as long as this time difference. CN-CBF makes each pairwise target stationary in relative coordinates and composes the learned pairwise barriers for a varying obstacle count. The smooth minimum underestimates the exact minimum by at most ln ( m ) / β \ln(m)/\beta ln ( m ) / β , and a newly detected obstacle can be added safely if the composite value had a sufficient margin before the update or if the new composite value is checked directly. The intersection of the pairwise safe sets can be larger than the true joint safe set when the maneuvers that avoid different obstacles conflict, which § 12.2.2 discusses. The direct comparison favored CN-CBF at every tested density, although the data do not establish how often such conflicting configurations occurred.
Question 3. Structural safety properties. The residual parameterization represents the learned safety function as a directly computed constraint function minus a nonnegative network output. The predicted safe set therefore excludes the represented failure set regardless of the approximation error of the network. Because the exact value function itself has this form, the parameterization does not restrict what the network can represent. It applies whether the constraint geometry is observed, predicted, or expressed in relative coordinates, and it is preserved under smooth composition (Equations (96) , (119) , (133) and (136) ). The structure also improved learning in the controlled ablations of Chapters 4 and 7. The remaining safety-relevant properties are either inherited from HJ theory or established empirically, as § 12.3 details. Verifying the conditions for closed-loop safety, recursive feasibility of the MPC problem and validity of the CBF condition, on the learned fields is the natural next step, and § 12.3 shows that the structural properties established here are what such a verification builds on.
Question 4. Scalable reachability supervision. Reachability supervision can be generated without a grid-based solver by exploiting the control-affine dynamics and polytopic input sets that the safety filters here already use. Because the Hamiltonian is maximized at a vertex, restricting the inner maximization to the vertices is exact in continuous time. Discretizing the trajectories then turns the label computation into a finite tree search over vertex inputs. The labels at different states are independent, and for a fixed beam width the number of dynamics evaluations grows linearly with the number of sampled states, the horizon, the beam width, and the number of vertices. Three qualifications accompany this answer. The vertex statement holds in continuous time, while the labels come from a finite Euler step over a truncated horizon with a bounded search width, and the relation between the two is established locally through the consistency result rather than through a convergence theorem. The results demonstrate scaling to 13 states empirically and not independence from the state dimension, and the exponential growth moves from the state dimension to the input dimension, because the number of vertices of a box-shaped input set doubles with every additional input. Where no numerical reference exists, the accuracy is assessed by closed-loop rollouts.
Comparison of the Five Methods
The five methods differ in three design choices, which Figure 8.1 summarizes. The first four combine a static or dynamic environment with an MPC or safety-filter interface, and the fifth changes the source of the supervision. Table 8.1 lists further properties of the five methods. The following subsections compare the controller interfaces, the safety representations and their training, and the sources of supervision, and the section closes with guidance for selecting a method. Wherever possible, the comparison draws on experiments in which the methods were tested on the same robots, in the same environments, and against the same baselines. ORN-CBF was compared with NTC-MPC in static environments, and CN-CBF with RNTC-MPC in pedestrian crowds. Direct-regression ablations isolate residual learning in § 6.2.5.2 , § 7.3.1 and § 10.1.5.5 , and VertexCBF varies the supervision source under one architecture and one validation protocol (§ 10.1.5.3 ).
Figure 8.1. The five methods organized by the design choices that separate them. The columns of the grid give the controller interface, its rows give the environment class for which the reachability targets are computed, and each box names the learned representation and its conditioning input. The band below the grid holds the third design choice, the source of the supervision, which VertexCBF generates from the vertex structure of the input set instead of taking it from a grid-based solver.
Table 8.1. Overview of the five methods, summarizing for each one the controller interface and setting, the learned representation, the source of the reachability supervision, and the computation performed online.
Controller Interfaces
The MPC terminal constraint restricts where the planned trajectory may end, which allows the planner to consider task progress, actuation limits, and safety beyond the horizon in one optimization. The constraint is enforced only once per planning cycle and only on the predicted final state, so its protection depends on the MPC problem remaining feasible from cycle to cycle and on the accuracy of the predicted trajectory and geometry. A CBF safety filter instead checks the applied input at the measured state at every control step. Because a QP with one constraint is considerably less expensive to solve than a nonlinear program (NLP) over a horizon, the filter runs at a much higher rate than the planner, and it can be combined with any nominal controller. Its advantage is that a valid barrier and a feasible filtered control directly imply invariance of the safe set, and its disadvantage is that it has no look-ahead and relies on the nominal controller for task progress.
Two studies compare the interfaces directly. In the static-environment study of § 7.3.1.3 , NTC-MPC, ORN-CBF, and the direct-regression variant ON-CBF were evaluated in the same experiment, and both filters achieved higher success rates than NTC-MPC at the three shorter horizons and similar rates at the longest one. The comparison does not isolate the interface completely, because ORN-CBF adds the residual parameterization and operates downstream of a separate planner. However, the ON-CBF method differs from NTC-MPC mainly in the interface, and it also outperformed NTC-MPC at the three shorter horizons. In the crowd study of § 8.4.1.3 , CN-CBF achieved higher success rates than RNTC-MPC at every density, although the two methods also differ in their scene representation. Both studies point in the same direction, but neither can attribute the difference to the interface alone. The quadrotor timeouts of § 7.3.1.4 illustrate the corresponding disadvantage of the filter, because a collision-free closed loop that makes no progress can arise when the nominal controller performs poorly, while the MPC interface resolves avoidance and task progress within one optimization, as the small lateral deviations of RNTC-MPC among pedestrians show. Neither interface is superior in every respect.
Safety Representations and Training
Direct and residual learning. Direct regression, as used in NTC-MPC, trains the network to reproduce the HJ value function itself, so a sufficiently large approximation error allows the model to classify a state inside an observed obstacle as safe. The residual parameterization introduced in Chapter 4 and reused by the three filtering methods exploits the HJ ordering Equation (44) and makes failure-set exclusion a property of the architecture rather than an outcome of training. The ablations show that the structure also simplifies learning, because the network represents only the dynamics-induced correction rather than the scene geometry. In the controlled comparison of § 6.2.5.2 , the residual models reached the validation safe-set intersection over union (IoU) of direct regression roughly five times faster and ended higher for every tested model size, and the closed-loop ablations of Chapters 4 and 5 are consistent with this advantage. Chapter 7 adds a second mechanism. Trained without the residual structure, the purely physics-informed objective collapsed to an empty predicted safe set on 14 of the 15 evaluated systems (§ 10.1.5.5 ). The reason is that any constant below the constraint function satisfies the stationary variational inequality, and a network without the residual structure can represent such a constant directly. The parameterization does not remove these solutions from the equation, but it makes them harder for gradient descent to reach. The property has two limits. It is one-sided, because V ^ ≤ c \hat{V} \le c V ^ ≤ c does not imply V ^ ≤ V ∞ \hat{V} \le V_{\infty} V ^ ≤ V ∞ , so a state outside the obstacles but inside the true backward reachable tube can still be predicted safe if the residual is too small there. It also holds only relative to the geometry supplied to the representation, so it protects against residual-regression errors but not against perception or prediction errors.
Conditioning and composition. Observation conditioning, used by the first three methods, encodes the entire local scene in one high-dimensional conditioning input, which a hypernetwork translates into a scene-specific safety function. Its advantage is its generality, since it handles obstacles of any shape that the sensing resolution and the training data cover. Its cost is that the training data must cover the expected scenes and that every training scene needs its own reachability solution, which for RNTC-MPC is a time-varying one. Composition, used by CN-CBF, replaces the scene by a list of robot–obstacle pairs in relative coordinates and rebuilds a scene-level barrier at runtime. Its offline stage consists of one stationary reachability solution and one training run per robot–obstacle class, independent of the scene distribution, which reduced the offline time from hours to minutes relative to RNTC-MPC (§ 8.4.1.2 ). Its limitation is structural. Each obstacle may be avoidable on its own while the maneuvers needed to avoid different obstacles conflict, so the intersection of the pairwise safe sets can be larger than the true joint safe set. One plausible explanation for the higher success rates of CN-CBF in the crowd comparison is that the more accurate pairwise approximation outweighed the composition error. VertexCBF needs no conditioning, because its constraint function is fixed, which allows its experiments to isolate the effect of the supervision. It is not by itself a method for unknown environments, but for control-affine systems with polytopic input constraints its supervision can be combined with either representation (§ 12.2.4 ).
Training objectives. The predicted safe set is the nonnegative superlevel set of the learned function, so its accuracy matters most near the zero level set, where a displaced boundary either admits unsafe states or restricts the controller unnecessarily. The radially weighted mean squared error (RWMSE) of § 6.1.4.3 assigns a larger weight to the squared error where the target is close to zero, and it improved the safe-set IoU and reduced the safety-critical misclassifications. The combined MSE–exponential (CME) loss of § 6.2.4.4 penalizes sign disagreement wherever it occurs, and its pointwise optimum preserves the zero level set of the target. In the ablation of § 6.2.5.2 , the network converged faster and reached a higher final IoU with CME than with plain MSE. The objective of Chapter 7 differs, because its physics-informed term penalizes violations of the stationary variational inequality at unlabeled states. The labels discourage the trivial solutions of this inequality, and the inequality propagates the label information to the unlabeled states, which allows sparse supervision. In the evaluated systems the labels were necessary (§ 10.1.5.5 ).
Supervision and Computational Requirements
The first four methods use grid-based HJ targets, which provide a numerical reference for learning under the chosen model. Storage and computation of these targets grow exponentially with the state dimension, which restricts grid-based solvers to roughly five or six state variables in practice, while the evaluated models have three to five. For control-affine dynamics with polytopic input sets, VertexCBF replaces the solver by labels obtained from a search over input sequences restricted to the vertices of the input polytope, together with a physics-informed loss. For a fixed beam width, the number of dynamics evaluations is then linear in the number of supervision states, the horizon length, the beam width, and the vertex count, and the supervision states can be sampled sparsely instead of covering a grid. The state dimension still affects the cost of every dynamics evaluation and the number of samples needed to cover the state space. Moreover, the number of vertices of a box-shaped input set grows exponentially with the number of inputs, so the exponential dependence is moved to the input dimension rather than removed. The two sources also have different error characteristics. The errors of the numerical target come from the grid resolution, the finite domain, and the convergence tolerance. The errors of the generated target come from the time discretization, the horizon, and the search width (Equation (166) ), and their size cannot be measured without a reference solution. For this reason, Chapter 7 assesses its barriers through the closed-loop protocol of § 10.1.5.2 .
Offline, the cost is determined by the number of reachability solutions that a method needs and by the cost of each solution, as listed in Table 8.1 , and the time-varying solutions of RNTC-MPC are the most expensive per target. For ORN-CBF, positional cropping reduced the training time by roughly an order of magnitude, because the network is trained only on the central part of the sensing window that the safety filter queries. Online, all methods query a compact network whose size is independent of the scene complexity, and the obstacle count enters only through the batched pairwise pass of CN-CBF. For the scene-conditioned methods, the perception, the SDF construction, the prediction, and the hypernetwork pass still have to run at the observation rate before the compact network can be queried. The model requirements also differ. The MPC methods need a dynamics model that can be discretized for the planner and used for the reachability targets in a consistent way. RNTC-MPC additionally needs an obstacle prediction that follows the same motion model as the training targets, of which the evaluated constant-velocity prediction is one instance. The filters need control-affine dynamics for the QP formulation. CN-CBF also needs relative dynamics that can be written in the relative state alone together with a bounded obstacle input model, and VertexCBF additionally needs a polytopic input set and, in the formulation developed here, no disturbance.
Method Selection
The comparison yields concrete guidance for assembling a navigation system. The supervision should be chosen first, because it determines which representations are available. For small state spaces, a grid-based solver provides both the targets and a numerical reference. With five or six states, the grid becomes very large, so a solution is feasible only for a small state domain or a coarse grid and can take a long time to compute. When grid-based computation is impractical, the grid-free supervision of Chapter 7 provides an alternative.
However, it is not a general replacement for grid-based solvers. It requires control-affine dynamics with polytopic input constraints, which the MPC methods of Part I do not assume in general. Its cost also grows with the number of reachability solutions that a method requires. NTC-MPC, RNTC-MPC, and ORN-CBF require one solution for every training observation, and generating grid-free labels for tens of thousands of observations is time-intensive for higher-dimensional models. CN-CBF requires only one solution per obstacle class, which makes grid-free supervision most practical for compositional methods, although the search must first be extended to bounded obstacle inputs (§ 12.4 ).
If collisions are to be avoided primarily with static geometry discovered at runtime, the observation-conditioned methods apply. ORN-CBF suits systems in which a safety filter can run at the control rate alongside an independent nominal controller, and NTC-MPC suits settings in which the reachability information must be integrated into an MPC planner.
If collisions are to be avoided primarily with moving agents, the choice depends on how well a simple model describes their motion. If the motion of each agent relative to the robot can be modeled by relative dynamics with bounded agent inputs, as for a mobile robot in open space or a vehicle on a highway, CN-CBF is the preferred method. It is simpler than RNTC-MPC and requires only one reachability solution per obstacle class offline and a single batched network pass over the observed obstacles online. It also achieved the highest success rates in the tested dense scenes. In most real environments, CN-CBF also requires an additional barrier for static geometry such as road boundaries, because it represents only obstacles of the modeled classes. ORN-CBF could provide this barrier within the same aggregation (§ 12.4 ). For more complex motion, such as that of road users at urban intersections, bounds on the agent inputs are either overly conservative or potentially unsafe, and the composite barrier may differ considerably from the true joint value function. In such settings, the approach of RNTC-MPC is more suitable, because it learns a time-varying HJ value function for the predicted geometry of all obstacles jointly.
This also applies to complex but predictable motion, such as several obstacles that move together or machine parts that follow a known cycle. Chapter 4 uses a constant-velocity model for simplicity, but any motion model or simulator that generates realistic obstacle trajectories can be used, provided that it supplies both the online prediction and the time-varying failure sets for the training targets.
Safety Properties and Assumptions
The safety-relevant properties of the five methods have different origins. Some follow from existing HJ theory, some are derived in this dissertation and hold by construction of the representations, and others are demonstrated experimentally under stated model and sensing assumptions. Separating them makes clear what the dissertation contributes and where existing verification methods could extend it.
Properties inherited from HJ theory. All five methods build on existing HJ reachability theory [72, 6]. Under the model, constraint, and horizon assumptions of Section 2.5, the nonnegative superlevel set of the exact value function is the maximal safe set. The grid-based and search-based targets approximate this value function, so this property carries over to the learned models only up to their approximation error.
Properties derived in this dissertation. These properties result from the design of the representations and training objectives developed here. The residual parameterization excludes the represented failure set from the predicted safe set for observed, predicted, and relative geometry (Equations (96) , (119) and (133) ), and the log-sum-exp composition preserves this property while its gap to the exact minimum is bounded by Equation (136) . The pointwise optimum of the CME loss preserves the sign of the target Equation (101) , so the loss is consistent with the goal of classifying states correctly as safe or unsafe. For VertexCBF, restricting the Hamiltonian to the vertices of a polytopic input set is exact for control-affine dynamics Equation (155) , and the Euler discretization of the resulting problem is first-order consistent Equation (162) . The finite search that produces the labels remains an approximation, whose three error terms Equation (166) are controlled by the step size, the horizon, and the beam width. At observation updates, the sensing inequalities Equations (117) and (147) guarantee sufficient separation from newly revealed obstacles for the exact targets under boundary-only appearance.
Model and sensing assumptions. The methods share a common set of assumptions. The dynamics model used for planning, filtering, and supervision is assumed accurate and the required state estimates are assumed available, so robot-model disturbances and estimation errors are not modeled explicitly, although inflation margins provide practical buffers in the hardware runs. Perception is assumed to deliver sufficiently accurate occupancy or obstacle-state estimates within the sensing range, with new information appearing only at the boundary of the sensing window, so an occlusion that reveals an obstacle directly next to the robot violates this assumption. The dynamic methods rely on their obstacle-motion models, the constant-velocity prediction of RNTC-MPC and the bounded-input class of CN-CBF, and the observed failures are consistent with violations of these models. The learned components assume that the deployment conditions remain within the training domains or that the model generalizes beyond them, which the out-of-domain experiments of Chapter 5 test with favorable results. Chapter 7 uses control-affine dynamics and a convex polytope input set, matching the CBF-QP formulation, and models no disturbance.
Conditions for closed-loop safety and experimental evidence. Classical MPC and CBF theory provides invariance of the predicted safe set under the conditions stated in Sections 3.4.4, 4.4.5, 5.4.4, 6.4.5 and 7.4.5, which are recursive feasibility of the MPC problem and a valid barrier with a feasible filtered control of CBF-QP. For the learned fields, the dissertation supports these conditions in two ways. The residual parameterization excludes one important class of learning errors by construction, and the boundary-aware losses concentrate the accuracy at the safe-set boundary. On this basis, the reported studies demonstrated collision avoidance in randomized simulations and on hardware, with the complete pipeline running onboard the delivery robot in all five studies. What separates this evidence from a formal closed-loop certificate is a verification step common to all learned safety functions. The predicted safe set would have to be certified as a subset of the exact safe set. Failure-set exclusion already secures one direction of this inclusion, while the other direction requires additional techniques, such as one-sided training objectives or reachability-based patching, which have not yet been combined with these representations. In addition, the barrier condition and the feasibility of the deployed QP would have to be verified on the learned field, for which robust CBF theory and neural-network verification offer suitable methods. The methods state their assumptions explicitly and provide the structural properties on which such a verification can build.
Outlook
Broader implications. Beyond the individual methods, the dissertation shows how learning and control theory can be combined in a safety-critical system. Reachability analysis defines the safe set, optimization-based control enforces it, and learning makes the offline reachability solutions available in real time as differentiable functions. The neural networks complement the control-theoretic framework rather than replace it. The same problem arises in other applications in which an autonomous system operates in unstructured space and the safe set depends on high-dimensional information available only at runtime. Examples include manipulation near people, legged locomotion over perceived terrain, and automated driving. These applications require their own models, constraint functions, and perception interfaces, but the offline–online pipeline, the hypernetwork factorization, the residual parameterization, and the boundary-aware losses should transfer whenever the safety condition can be determined offline. For applications with control-affine dynamics and polytopic input constraints, the grid-free supervision of Chapter 7 is relevant, because their models often have more states than grid-based solvers can handle.
Future research. Three directions follow most directly from the results. The first is certification. The structural properties established here narrow the certification of a learned safety function to one question, since the predicted safe set already excludes the failure set and what remains to be bounded is how far it may extend into the unsafe region. One-sided training objectives, error bounds subtracted from the learned value [148, 97], and reachability-based patching of the trained network [151] are candidate approaches. The closed-loop rollouts of the validation protocol also provide the data from which scenario optimization or conformal prediction compute margins with finite-sample coverage [166, [163]. The same methods could be applied to perception and prediction uncertainty, which can be propagated into the safety function by inflating the failure set with a calibrated estimation error, by replacing the nominal obstacle prediction with a distribution over futures, or by calibrating the disturbance set of CN-CBF from motion data [174].
The second direction is extending the methods to a wider range of systems and environments. On the supervision side, the grid-free labels of Chapter 7 could be extended to the two-player targets of Chapter 6, because control and disturbance both attain their extrema at vertices. Since CN-CBF requires only one set of labels per obstacle class, this extension would make grid-free supervision practical for higher-dimensional robot–obstacle models and would also allow grid-free and grid-based targets to be compared within the same method. For systems with many inputs, the number of vertices to be searched could be reduced by selecting a subset of vertices with the current value estimate. On the representation side, the ORN-CBF barrier could enter the CN-CBF aggregation as an additional argument, which would yield one barrier for mixed static and dynamic environments while preserving failure-set exclusion. A trainable aggregation could further correct the composition where pairwise reasoning is optimistic, and graph-structured barrier certificates suggest suitable architectures for it [175].
The third direction is integration into complete navigation systems. The methods implement the local planner and safety filter blocks of Figure 1.3 , and some of the failure modes observed in the experiments originate in two other blocks, global planning and motion prediction. Failures in which the robot entered a dead end that was not yet visible, or in which an occlusion revealed an obstacle at close range, originate in global planning. Avoiding them requires a global planner that uses the partial map to choose between locally equivalent directions and that treats unobserved regions as potentially occupied. The learned safety functions can support such a planner, because they can be evaluated at any candidate waypoint in real time and indicate whether the robot can remain collision-free from there. Collisions with pedestrians whose motion deviated from the constant-velocity model are failures of motion prediction. Since RNTC-MPC accepts any predicted obstacle geometry as input, a learned predictor [48] can replace its constant-velocity model, and interaction-aware models [51] can account for how pedestrians react to the robot.
Concluding remarks. HJ reachability analysis is one of the most comprehensive model-based frameworks for characterizing the states from which a robot can remain safe. This dissertation investigated how it can be transformed from an offline tool into an online safety representation for robot navigation in unknown and dynamic environments. The five methods show that this transformation is practical in the evaluated settings when learning and structure are combined. Networks trained offline on reachability solutions replace the expensive online computation. The residual parameterization ensures that approximation errors of these networks cannot place occupied states in the predicted safe set. The final method shows that, for control-affine systems with polytopic input constraints, the reachability targets themselves can be generated from the structure of the problem rather than solved on a grid. The methods state explicitly which properties hold by construction, which are inherited from HJ theory, and which are demonstrated experimentally, and this separation defines what a future certification has to establish. As mobile robots are deployed more widely in spaces shared with people, safety representations that are fast enough to react, structured enough to be analyzed, and explicit about their limits will be an important component of trustworthy autonomy.
Publications and Author Contributions
Chapters 3 to 7 are each based on one of the five peer-reviewed publications listed below. Parts of the text, figures, and tables of these chapters are adapted from the corresponding publication and were revised and extended for this dissertation. The author of this dissertation is the first author of all five publications, and the contributions of all authors are stated below each publication.
Chapter 3, NTC-MPC. Bojan Derajić, Mohamed-Khalil Bouzidi, Sebastian Bernhard, and Wolfgang Hönig. “Learning Maximal Safe Sets Using Hypernetworks for MPC-Based Local Trajectory Planning in Unknown Environments”. In: IEEE Robotics and Automation Letters 10.9 (2025), pp. 8842–8849. DOI: 10.1109/LRA.2025.3589151
Author contributions. Bojan Derajić developed the concept and the method, implemented the method, designed and conducted the experiments, analyzed the results, and wrote the manuscript. Mohamed-Khalil Bouzidi contributed to the discussions of the method and the experiments and revised the manuscript. Sebastian Bernhard and Wolfgang Hönig supervised the work and revised the manuscript.
Chapter 4, RNTC-MPC. Bojan Derajić, Mohamed-Khalil Bouzidi, Sebastian Bernhard, and Wolfgang Hönig. “Residual Neural Terminal Constraint for MPC-Based Collision Avoidance in Dynamic Environments”. In: Conference on Robot Learning (CoRL) . vol. 305. Proceedings of Machine Learning Research. PMLR, 2025, pp. 1452–1469
Author contributions. Bojan Derajić developed the concept and the method, implemented the method, designed and conducted the experiments, analyzed the results, and wrote the manuscript. Mohamed-Khalil Bouzidi contributed to the discussions of the method and the experiments and revised the manuscript. Sebastian Bernhard and Wolfgang Hönig supervised the work and revised the manuscript.
Chapter 5, ORN-CBF. Bojan Derajić, Sebastian Bernhard, and Wolfgang Hönig. “ORN-CBF: Learning Observation-Conditioned Residual Neural Control Barrier Functions via Hypernetworks”. In: IEEE International Conference on Robotics and Automation (ICRA) . 2026, pp. 13185–13192. DOI: 10.1109/ICRA57385.2026.11695745
Author contributions. Bojan Derajić developed the concept and the method, implemented the method, designed and conducted the experiments, analyzed the results, and wrote the manuscript. Sebastian Bernhard and Wolfgang Hönig supervised the work and revised the manuscript.
Chapter 6, CN-CBF. Bojan Derajić, Sebastian Bernhard, and Wolfgang Hönig. “CN-CBF: Composite Neural Control Barrier Function for Robot Navigation in Dynamic Environments”. In: IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) . 2026. arXiv: 2603.06921 [cs.RO]
Author contributions. Bojan Derajić developed the concept and the method, implemented the method, designed and conducted the experiments, analyzed the results, and wrote the manuscript. Sebastian Bernhard and Wolfgang Hönig supervised the work and revised the manuscript.
Chapter 7, VertexCBF. Bojan Derajić, Sebastian Bernhard, and Wolfgang Hönig. “VertexCBF: Improving Neural Control Barrier Functions via Vertex-Restricted Control Search”. In: Conference on Robot Learning (CoRL) . 2026. arXiv: 2609.12831 [cs.RO]
Author contributions. Bojan Derajić developed the concept and the method, implemented the method, designed and conducted the experiments, analyzed the results, and wrote the manuscript. Sebastian Bernhard and Wolfgang Hönig supervised the work and revised the manuscript.
Supporting Details for VertexCBF
This appendix collects the derivation of the consistency result of § 10.1.4.1 and the experimental configuration of Chapter 7. The configuration part records the domains, constraints, dynamics, search settings, network architectures, training schedules, and validation settings for the 15 VertexCBF systems, followed by the hardware configuration. Values follow the underlying publication [104], and the reported offline times were measured on one NVIDIA RTX 3090 GPU.1
Three conventions apply to the configuration tables of Sections B.2 and B.4 to B.6. The systems appear in the order of Table 7.1 , that is by increasing state dimension. Angles are given in radians, lengths in meters, and times in seconds unless stated otherwise. Every configuration listed here is shared by the three supervision settings of § 10.1.5.1 , since those settings differ only in the data term of Equation (169) . The label generator is not run by the no data setting and is replaced by MPPI sampling in the full-control data setting, at the same horizon length, step size, and nominal sample count. The loss weight λ \lambda λ listed in Table B.4 is the value used by the two supervised settings, while the no data setting has no data term and corresponds to λ = 1 \lambda= 1 λ = 1 .
Consistency of the Discretization
This section derives the truncation bound Equation (161) and the consistency statement Equation (162) . Let Y ⊂ X \mathcal{Y} \subset\mathcal{X} Y ⊂ X be a compact convex region that contains x x x and F Δ ( x , u ) F_\Delta(x,u) F Δ ( x , u ) for every u ∈ V u \in\mathcal{V} u ∈ V and every sufficiently small Δ t \Delta t Δ t , and let ψ ∈ C 1 , 1 ( Y ) \psi\in C^{1,1}(\mathcal{Y}) ψ ∈ C 1 , 1 ( Y ) have a gradient with Lipschitz constant L ∇ ψ L_{\nabla\psi} L ∇ ψ on Y \mathcal{Y} Y . The function ψ \psi ψ serves as a smooth local substitute for the value function, which is in general nonsmooth. For any vertex u ∈ V u \in\mathcal{V} u ∈ V , Taylor’s theorem applied to ψ \psi ψ along the Euler step Equation (157) gives
ψ ( F Δ ( x , u ) ) = ψ ( x ) + Δ t ∇ x ψ ( x ) T ( f 0 ( x ) + g ( x ) u ) + R Δ t ( x , u ) , (175) \psi\left(F_\Delta(x,u)\right) = \psi(x) + \Delta t \nabla_x\psi(x)^\mathsf{T}\left(f_0(x) + g(x)u\right) + R_{\Delta t}(x,u), \tag*{(175)} ψ ( F Δ ( x , u ) ) = ψ ( x ) + Δ t ∇ x ψ ( x ) T ( f 0 ( x ) + g ( x ) u ) + R Δ t ( x , u ) , (175)
with a remainder bounded by
∣ R Δ t ( x , u ) ∣ ≤ 1 2 L ∇ ψ ∥ f 0 ( x ) + g ( x ) u ∥ 2 Δ t 2 , (176) \left|R_{\Delta t}(x,u)\right| \le\tfrac{1}{2}L_{\nabla\psi}\left\|f_0(x) + g(x)u\right\|^2\Delta t^2, \tag*{(176)} ∣ R Δ t ( x , u ) ∣ ≤ 2 1 L ∇ ψ ∥ f 0 ( x ) + g ( x ) u ∥ 2 Δ t 2 , (176)
because the increment of the Euler step has norm Δ t ∥ f 0 ( x ) + g ( x ) u ∥ \Delta t\left\|f_0(x) + g(x)u\right\| Δ t ∥ f 0 ( x ) + g ( x ) u ∥ and the segment between x x x and F Δ ( x , u ) F_\Delta(x,u) F Δ ( x , u ) lies in Y \mathcal{Y} Y by convexity. Taking the maximum over the vertices on both sides of Equation (B.1), dividing by Δ t \Delta t Δ t , and using the vertex representation Equation (155) of the Hamiltonian yields
max u ∈ V ψ ( F Δ ( x , u ) ) − ψ ( x ) Δ t = H ( x , ∇ x ψ ( x ) ) + O ( Δ t ) , (177) \frac{\max_{u\in\mathcal{V}}\psi\left(F_\Delta(x,u)\right)-\psi(x)}{\Delta t} = H\left(x,\nabla_x\psi(x)\right) + O(\Delta t), \tag*{(177)} Δ t max u ∈ V ψ ( F Δ ( x , u ) ) − ψ ( x ) = H ( x , ∇ x ψ ( x ) ) + O ( Δ t ) , (177)
where the maximum of a sum is bounded by the maximum of the linear term plus the maximum of the remainder, so the difference between the left-hand side and the Hamiltonian is bounded by the maximum over the vertices of ∣ R Δ t ( x , u ) ∣ / Δ t |R_{\Delta t}(x,u)|/\Delta t ∣ R Δ t ( x , u ) ∣/Δ t . Inserting Equation (B.2) gives the explicit bound Equation (161) . Substituting Equation (B.3) for the second argument of the discrete variational inequality Equation (160) and using that the minimum of two arguments is Lipschitz continuous with constant one in each argument gives Equation (162) . The one-step Bellman expansion Equation (B.1) has error O ( Δ t 2 ) O(\Delta t^2) O ( Δ t 2 ) , and its time-normalized form has error O ( Δ t ) O(\Delta t) O ( Δ t ) , which is the first-order consistency stated in § 10.1.4.1 .
The calculation concerns the unmodified Euler map. On the systems where the implementation clamps a state component to its box limits after each step or renormalizes the quaternion (Sections B.2 and 7.3), the transition differs from Equation (157) at those limits, and the statement applies to states whose Euler successors remain inside the box.
Systems, State Domains, and Constraints
Table B.1 lists the state box X \mathcal{X} X and the input polytope U \mathcal{U} U of each system. Every input set is a box, so the vertex count is M = 2 n u M = 2^{n_u} M = 2 n u throughout, ranging from M = 2 M = 2 M = 2 for the single-input systems to M = 64 M = 64 M = 64 for the underwater vehicle. Since X \mathcal{X} X is the domain over which the predicted-safe volume of Equation (174) is measured, the reported η e f f \eta_{\mathrm{eff}} η eff values are comparable across the three supervision settings of one system but not across systems. For the quadrotor, the four quaternion components of X \mathcal{X} X are not sampled or integrated as an independent box. The non-quaternion coordinates are sampled uniformly from their bounds and the orientation is sampled uniformly over unit quaternions, and the trainer, beam search, and validator all renormalize the quaternion to the unit sphere after every Euler step. Its effective safe volume therefore denotes probability under this sampling distribution rather than a fraction of 13-dimensional box volume, and the four quaternion components remain a valid state representation without being four independent physical coordinates.
Table B.2 gives the constraint function c c c of each system and its parameters. The constraint functions take four forms. For seven systems, the constraint function is the Euclidean distance to a circular, spherical, or cylindrical obstacle. For three systems, it is the signed distance to an interval that bounds one state component. For four systems, it is a smooth minimum of several such terms,
c ( x ) = − 1 α log ∑ i e − α d i ( x ) , (178) c(x) = -\frac{1}{\alpha}\log\sum_i e^{-\alpha d_i(x)}, \tag*{(178)} c ( x ) = − α 1 log i ∑ e − α d i ( x ) , (178)
which under-approximates min i d i ( x ) \min_i d_i(x) min i d i ( x ) by at most ln ( n ) / α \ln(n)/\alpha ln ( n ) / α for n n n terms and is the same construction that § 8.3.3.3 uses for the composition over obstacles. For the landing rocket, the constraint function is a smooth funnel that couples the lateral position to the altitude and penalizes speed and tilt. Every constraint function is evaluated in closed form at runtime, which the residual parameterization Equation (167) requires.
Benchmark Dynamics
The following equations specify the continuous-time models of the 15 benchmark systems of [104]. They use the state and input order of Table B.1. The scalar g 0 g_0 g 0 denotes the
Benchmark Dynamics
Table B.1. State box X \mathcal{X} X and input box U \mathcal{U} U for the 15 evaluated systems, together with the model parameters. All input sets are boxes, so the vertex count is M = 2 n u M=2^{n_u} M = 2 n u .
gravitational acceleration, listed as g g g in that table. All models are affine in the stated inputs, as Equation (150) requires. The label generator integrates every model with the forward-Euler map Equation (157) , and the validation rollouts integrate the same models with the smaller step sizes of Table B.5. Periodic angles enter the residual network as the pair ( cos θ , sin θ ) (\cos\theta,\sin\theta) ( cos θ , sin θ ) , as stated in § 10.1.4.4 .
Inverted pendulum. For pole angle θ \theta θ measured from upright, angular velocity ω \omega ω , and input torque τ \tau τ ,
θ ˙ = ω , ω ˙ = g 0 l sin θ + τ m l 2 . (179) \dot{\theta}=\omega,\qquad\dot{\omega}=\frac{g_0}{l}\sin\theta+\frac{\tau}{ml^2}. \tag*{(179)} θ ˙ = ω , ω ˙ = l g 0 sin θ + m l 2 τ . (179)
Double integrators in one, two, and three dimensions. For p , v , a ∈ R d p,v,a\in\mathbb{R}^d p , v , a ∈ R d , with d ∈ { 1 , 2 , 3 } d\in\{1,2,3\} d ∈ { 1 , 2 , 3 } , the state is x = ( p T , v T ) T x=(p^\mathsf{T},v^\mathsf{T})^\mathsf{T} x = ( p T , v T ) T , the input is a a a , and
p ˙ = v , v ˙ = a . (180) \dot{p}=v,\qquad\dot{v}=a. \tag*{(180)} p ˙ = v , v ˙ = a . (180)
The one-dimensional benchmark uses a position band. The two- and three-dimensional benchmarks use circular and spherical obstacles, respectively.
Supporting Details for VertexCBF
Table B.2. Constraint function c c c of each system and its parameters. The smooth minimum is Equation (B.4), and α \alpha α is its sharpness parameter.
Vertical drone. This two-state model describes altitude z z z and vertical velocity v z v_z v z , with a scalar actuator input a a a ,
z ˙ = v z , v ˙ z = − g 0 + K a . (181) \dot{z}=v_z,\qquad\dot{v}_z=-g_0+Ka. \tag*{(181)} z ˙ = v z , v ˙ z = − g 0 + K a . (181)
The signed input interval in Table B.1 defines an idealized vertical-actuation model. It is not a model of individual nonnegative rotor thrusts.
Dubins car. For position ( p x , p y ) (p_x,p_y) ( p x , p y ) , heading θ \theta θ , fixed speed v v v , and turning-rate input ω \omega ω ,
p ˙ x = v cos θ , p ˙ y = v sin θ , θ ˙ = ω . (182) \dot{p}_x=v\cos\theta,\qquad\dot{p}_y=v\sin\theta,\qquad\dot{\theta}=\omega. \tag*{(182)} p ˙ x = v cos θ , p ˙ y = v sin θ , θ ˙ = ω . (182)
Kinematic bicycle. The state is x = ( p x , p y , ψ , v ) T x=(p_x,p_y,\psi,v)^{\mathsf{T}} x = ( p x , p y , ψ , v ) T . The input is u = ( s δ , a ) T u=(s_\delta,a)^{\mathsf{T}} u = ( s δ , a ) T , where s δ = tan δ s_\delta=\tan\delta s δ = tan δ and δ \delta δ is the steering angle. For wheelbase L L L ,
p ˙ x = v cos ψ , p ˙ y = v sin ψ , ψ ˙ = v L s δ , v ˙ = a . (183) \dot{p}_x=v\cos\psi,\qquad\dot{p}_y=v\sin\psi,\qquad\dot{\psi}=\frac{v}{L}s_\delta,\qquad\dot{v}=a. \tag*{(183)} p ˙ x = v cos ψ , p ˙ y = v sin ψ , ψ ˙ = L v s δ , v ˙ = a . (183)
The transformed steering input makes the model control affine.
Cart-pole. The state is x = ( p , θ , v , ω ) T x=(p,\theta,v,\omega)^{\mathsf{T}} x = ( p , θ , v , ω ) T , where θ \theta θ is measured from upright. The input is the horizontal cart force F F F . Define D ( θ ) = m c + m p sin 2 θ D(\theta)=m_c+m_p\sin^2\theta D ( θ ) = m c + m p sin 2 θ . Then
p ˙ = v , θ ˙ = ω , (184) \dot{p}=v,\qquad\dot{\theta}=\omega, \tag*{(184)} p ˙ = v , θ ˙ = ω , (184)
v ˙ = F + m p sin θ ( l ω 2 − g 0 cos θ ) D ( θ ) , (185) \dot{v}=\frac{F+m_p\sin\theta\left(l\omega^2-g_0\cos\theta\right)}{D(\theta)}, \tag*{(185)} v ˙ = D ( θ ) F + m p sin θ ( l ω 2 − g 0 cos θ ) , (185)
ω ˙ = ( m c + m p ) g 0 sin θ − m p l ω 2 cos θ sin θ − F cos θ l D ( θ ) . (186) \dot{\omega}=\frac{(m_c+m_p)g_0\sin\theta-m_p l\omega^2\cos\theta\sin\theta-F\cos\theta}{lD(\theta)}. \tag*{(186)} ω ˙ = l D ( θ ) ( m c + m p ) g 0 sin θ − m p l ω 2 cos θ sin θ − F cos θ . (186)
Dynamic unicycle. For x = ( p x , p y , θ , v , ω ) T x = (p_x,p_y,\theta,v,\omega)^\mathsf{T} x = ( p x , p y , θ , v , ω ) T and acceleration inputs u = ( a , α ) T u = (a,\alpha)^\mathsf{T} u = ( a , α ) T ,
p ˙ x = v cos θ , p ˙ y = v sin θ , θ ˙ = ω , v ˙ = a , ω ˙ = α . (187) \dot{p}_x = v\cos\theta,\qquad\dot{p}_y = v\sin\theta,\qquad\dot{\theta} = \omega,\qquad\dot{v} = a,\qquad\dot{\omega} = \alpha. \tag*{(187)} p ˙ x = v cos θ , p ˙ y = v sin θ , θ ˙ = ω , v ˙ = a , ω ˙ = α . (187)
Relative unicycle. The state is x = ( p x , p y , ψ , v r , v p ) T x = (p_x,p_y,\psi,v_r,v_p)^\mathsf{T} x = ( p x , p y , ψ , v r , v p ) T . The position is that of the obstacle in the robot frame, and ψ \psi ψ is the obstacle heading relative to the robot. The inputs are robot acceleration a a a and turning rate ω \omega ω . A constant-speed, constant-heading obstacle gives
p ˙ x = v p cos ψ − v r + ω p y , p ˙ y = v p sin ψ − ω p x , (188) \dot{p}_x = v_p\cos\psi- v_r + \omega p_y,\qquad\dot{p}_y = v_p\sin\psi- \omega p_x, \tag*{(188)} p ˙ x = v p cos ψ − v r + ω p y , p ˙ y = v p sin ψ − ω p x , (188)
ψ ˙ = − ω , v ˙ r = a , v ˙ p = 0. (189) \dot{\psi} = -\omega,\qquad\dot{v}_r = a,\qquad\dot{v}_p = 0. \tag*{(189)} ψ ˙ = − ω , v ˙ r = a , v ˙ p = 0. (189)
The obstacle speed is a state parameter, not an adversarial input. This differs from the game formulation in Chapter 6.
Three-degree-of-freedom manipulator. The arm has a yaw joint and two pitch joints. Its two moving links have lengths l 1 , l 2 l_1,l_2 l 1 , l 2 , point masses m 1 , m 2 m_1,m_2 m 1 , m 2 , and center-of-mass distances l c 1 , l c 2 l_{c1},l_{c2} l c 1 , l c 2 . Let q = ( q 1 , q 2 , q 3 ) T q = (q_1,q_2,q_3)^\mathsf{T} q = ( q 1 , q 2 , q 3 ) T , with state x = ( q T , q ˙ T ) T x = (q^\mathsf{T},\dot{q}^\mathsf{T})^\mathsf{T} x = ( q T , q ˙ T ) T and torque input τ \tau τ . The link endpoints are
P 0 = 0 , (190) P_0 = 0, \tag*{(190)} P 0 = 0 , (190)
P 1 = l 1 ( cos q 1 cos q 2 , sin q 1 cos q 2 , sin q 2 ) T , (191) P_1 = l_1(\cos q_1\cos q_2,\ \sin q_1\cos q_2,\ \sin q_2)^\mathsf{T}, \tag*{(191)} P 1 = l 1 ( cos q 1 cos q 2 , sin q 1 cos q 2 , sin q 2 ) T , (191)
P 2 = P 1 + l 2 ( cos q 1 cos ( q 2 + q 3 ) , sin q 1 cos ( q 2 + q 3 ) , sin ( q 2 + q 3 ) ) T . (192) P_2 = P_1 + l_2(\cos q_1\cos(q_2+q_3),\ \sin q_1\cos(q_2+q_3),\ \sin(q_2+q_3))^\mathsf{T}. \tag*{(192)} P 2 = P 1 + l 2 ( cos q 1 cos ( q 2 + q 3 ) , sin q 1 cos ( q 2 + q 3 ) , sin ( q 2 + q 3 ) ) T . (192)
These endpoints define the link segments used in the collision constraint. The joint dynamics are
q ¨ = M ( q ) − 1 ( τ − b ( q , q ˙ ) − G ( q ) ) . (193) \ddot{q} = M(q)^{-1}\bigl(\tau- b(q,\dot{q}) - G(q)\bigr). \tag*{(193)} q ¨ = M ( q ) − 1 ( τ − b ( q , q ˙ ) − G ( q ) ) . (193)
Writing r c = l 1 cos q 2 + l c 2 cos ( q 2 + q 3 ) r_c = l_1\cos q_2 + l_{c2}\cos(q_2+q_3) r c = l 1 cos q 2 + l c 2 cos ( q 2 + q 3 ) , the inertia matrix is
M ( q ) = [ M 11 0 0 0 M 22 M 23 0 M 23 M 33 ] , (194) M(q) =
\begin{bmatrix}
M_{11} & 0 & 0 \\
0 & M_{22} & M_{23} \\
0 & M_{23} & M_{33}
\end{bmatrix}, \tag*{(194)} M ( q ) = M 11 0 0 0 M 22 M 23 0 M 23 M 33 , (194)
with
M 11 = m 1 l c 1 2 cos 2 q 2 + m 2 r c 2 + I 1 , (195) M_{11} = m_1l_{c1}^{2}\cos^{2}q_2 + m_2r_c^{2} + I_1, \tag*{(195)} M 11 = m 1 l c 1 2 cos 2 q 2 + m 2 r c 2 + I 1 , (195)
M 22 = m 1 l c 1 2 + m 2 ( l 1 2 + l c 2 2 + 2 l 1 l c 2 cos q 3 ) + I 2 , (196) M_{22} = m_1l_{c1}^{2} + m_2(l_1^{2} + l_{c2}^{2} + 2l_1l_{c2}\cos q_3) + I_2, \tag*{(196)} M 22 = m 1 l c 1 2 + m 2 ( l 1 2 + l c 2 2 + 2 l 1 l c 2 cos q 3 ) + I 2 , (196)
M 23 = m 2 ( l c 2 2 + l 1 l c 2 cos q 3 ) , M 33 = m 2 l c 2 2 + I 3 . (197) M_{23} = m_2(l_{c2}^{2} + l_1l_{c2}\cos q_3),\qquad M_{33} = m_2l_{c2}^{2} + I_3. \tag*{(197)} M 23 = m 2 ( l c 2 2 + l 1 l c 2 cos q 3 ) , M 33 = m 2 l c 2 2 + I 3 . (197)
The Coriolis and centrifugal vector is specified by
b i ( q , q ˙ ) = 1 2 ∑ j , k = 1 3 ( ∂ M i j ∂ q k + ∂ M i k ∂ q j − ∂ M j k ∂ q i ) q ˙ j q ˙ k . (198) b_i(q,\dot{q}) = \frac{1}{2}\sum_{j,k=1}^{3}\left(\frac{\partial M_{ij}}{\partial q_k} + \frac{\partial M_{ik}}{\partial q_j} - \frac{\partial M_{jk}}{\partial q_i}\right)\dot{q}_j\dot{q}_k. \tag*{(198)} b i ( q , q ˙ ) = 2 1 j , k = 1 ∑ 3 ( ∂ q k ∂ M ij + ∂ q j ∂ M ik − ∂ q i ∂ M j k ) q ˙ j q ˙ k . (198)
The gravity terms are
G 1 = 0 , (199) G_1 = 0, \tag*{(199)} G 1 = 0 , (199)
G 2 = g 0 [ ( m 1 l c 1 + m 2 l 1 ) cos q 2 + m 2 l c 2 cos ( q 2 + q 3 ) ] , (200) G_2 = g_0\left[(m_1l_{c1}+m_2l_1)\cos q_2 + m_2l_{c2}\cos(q_2+q_3)\right], \tag*{(200)} G 2 = g 0 [ ( m 1 l c 1 + m 2 l 1 ) cos q 2 + m 2 l c 2 cos ( q 2 + q 3 ) ] , (200)
G 3 = m 2 g 0 l c 2 cos ( q 2 + q 3 ) . (201) G_3 = m_2g_0l_{c2}\cos(q_2+q_3). \tag*{(201)} G 3 = m 2 g 0 l c 2 cos ( q 2 + q 3 ) . (201)
The block structure of M M M does not remove the velocity coupling in b b b .
Landing rocket. The state is x = ( p x , p z , v x , v z , θ , ω , m ) T x=(p_x,p_z,v_x,v_z,\theta,\omega,m)^{\mathsf{T}} x = ( p x , p z , v x , v z , θ , ω , m ) T . The inputs are thrust T T T and torque τ \tau τ . For inertia I I I and mass-flow coefficient α m \alpha_m α m ,
p ˙ x = v x , p ˙ z = v z (202) \dot{p}_x=v_x,\qquad\dot{p}_z=v_z \tag*{(202)} p ˙ x = v x , p ˙ z = v z (202)
v ˙ x = − T m sin θ , v ˙ z = − g 0 + T m cos θ (203) \dot{v}_x=-\frac{T}{m}\sin\theta,\qquad\dot{v}_z=-g_0+\frac{T}{m}\cos\theta \tag*{(203)} v ˙ x = − m T sin θ , v ˙ z = − g 0 + m T cos θ (203)
θ ˙ = ω , ω ˙ = τ I , m ˙ = − α m T . (204) \dot{\theta}=\omega,\qquad\dot{\omega}=\frac{\tau}{I},\qquad\dot{m}=-\alpha_m T. \tag*{(204)} θ ˙ = ω , ω ˙ = I τ , m ˙ = − α m T . (204)
The coefficient α m \alpha_m α m is listed as α \alpha α in Table B.1. The differential equation requires m > 0 m>0 m > 0 . The benchmark constraint describes a landing funnel, but the model has no touchdown event or fuel-exhaustion mode.
Quadruped trunk. This reduced model represents trunk motion under four body-normal forces F 1 , … , F 4 F_1,\ldots,F_4 F 1 , … , F 4 . It does not model leg motion, changes in contact, or a walking gait. The state is x = ( p z , ϕ , θ , v x , v y , v z , p , q , r ) T x=(p_z,\phi,\theta,v_x,v_y,v_z,p,q,r)^{\mathsf{T}} x = ( p z , ϕ , θ , v x , v y , v z , p , q , r ) T , where ( p , q , r ) (p,q,r) ( p , q , r ) are body angular rates. Let F Σ = ∑ i F i F_\Sigma=\sum_i F_i F Σ = ∑ i F i . Then
p ˙ z = v z (205) \dot{p}_z=v_z \tag*{(205)} p ˙ z = v z (205)
ϕ ˙ = p + sin ϕ tan θ q + cos ϕ tan θ r (206) \dot{\phi}=p+\sin\phi\tan\theta\,q+\cos\phi\tan\theta\,r \tag*{(206)} ϕ ˙ = p + sin ϕ tan θ q + cos ϕ tan θ r (206)
θ ˙ = cos ϕ q − sin ϕ r (207) \dot{\theta}=\cos\phi\,q-\sin\phi\,r \tag*{(207)} θ ˙ = cos ϕ q − sin ϕ r (207)
v ˙ x = F Σ m sin θ cos ϕ , v ˙ y = − F Σ m sin ϕ (208) \dot{v}_x=\frac{F_\Sigma}{m}\sin\theta\cos\phi,\qquad\dot{v}_y=-\frac{F_\Sigma}{m}\sin\phi \tag*{(208)} v ˙ x = m F Σ sin θ cos ϕ , v ˙ y = − m F Σ sin ϕ (208)
v ˙ z = − g 0 + F Σ m cos θ cos ϕ (209) \dot{v}_z=-g_0+\frac{F_\Sigma}{m}\cos\theta\cos\phi \tag*{(209)} v ˙ z = − g 0 + m F Σ cos θ cos ϕ (209)
I x p ˙ = − ( I z − I y ) q r + b ( F 1 − F 2 + F 3 − F 4 ) (210) I_x\dot{p}=-(I_z-I_y)qr+b(F_1-F_2+F_3-F_4) \tag*{(210)} I x p ˙ = − ( I z − I y ) q r + b ( F 1 − F 2 + F 3 − F 4 ) (210)
I y q ˙ = − ( I x − I z ) p r + a ( − F 1 − F 2 + F 3 + F 4 ) (211) I_y\dot{q}=-(I_x-I_z)pr+a(-F_1-F_2+F_3+F_4) \tag*{(211)} I y q ˙ = − ( I x − I z ) p r + a ( − F 1 − F 2 + F 3 + F 4 ) (211)
I z r ˙ = − ( I y − I x ) p q . (212) I_z\dot{r}=-(I_y-I_x)pq. \tag*{(212)} I z r ˙ = − ( I y − I x ) pq . (212)
The translational equations use the zero-yaw rotation, while yaw rate is retained through gyroscopic coupling. This is a reduced benchmark assumption. Euler-angle kinematics require cos θ ≠ 0 \cos\theta\ne0 cos θ = 0 .
Underwater vehicle. The state is x = ( p x , p y , p z , ϕ , θ , ψ , u b , v b , w b , p , q , r ) T x=(p_x,p_y,p_z,\phi,\theta,\psi,u_b,v_b,w_b,p,q,r)^{\mathsf{T}} x = ( p x , p y , p z , ϕ , θ , ψ , u b , v b , w b , p , q , r ) T . Let v b v e c = ( u b , v b , w b ) T v_b^{\mathrm{vec}}=(u_b,v_b,w_b)^{\mathsf{T}} v b vec = ( u b , v b , w b ) T , ω = ( p , q , r ) T \omega=(p,q,r)^{\mathsf{T}} ω = ( p , q , r ) T , and ν = ( ( v b v e c ) T , ω T ) T \nu=((v_b^{\mathrm{vec}})^{\mathsf{T}},\omega^{\mathsf{T}})^{\mathsf{T}} ν = (( v b vec ) T , ω T ) T . The inputs are body forces F = ( F x , F y , F z ) T F=(F_x,F_y,F_z)^{\mathsf{T}} F = ( F x , F y , F z ) T and moments τ = ( τ x , τ y , τ z ) T \tau=(\tau_x,\tau_y,\tau_z)^{\mathsf{T}} τ = ( τ x , τ y , τ z ) T . In a world frame with upward z z z ,
p ˙ v e c = R z ( ψ ) R y ( θ ) R x ( ϕ ) v b v e c , (213) \dot{p}^{\mathrm{vec}}=R_z(\psi)R_y(\theta)R_x(\phi)v_b^{\mathrm{vec}}, \tag*{(213)} p ˙ vec = R z ( ψ ) R y ( θ ) R x ( ϕ ) v b vec , (213)
\begin{bmatrix}\dot{\phi}\\\dot{\theta}\\\dot{\psi}\end{bmatrix}
=
\begin{bmatrix}
1 & \sin\phi\tan\theta& \cos\phi\tan\theta\\
0 & \cos\phi& -\sin\phi\\
0 & \sin\phi/\cos\theta& \cos\phi/\cos\theta
\end{bmatrix}\omega. \tag*{(214)}\end{bmatrix}
Here R x , R y , R z R_x,R_y,R_z R x , R y , R z are right-handed rotations about their indicated axes. Define D i ( ν i ) = ( d i ℓ + d i q ∣ ν i ∣ ) ν i D_i(\nu_i)=(d_i^\ell+d_i^q|\nu_i|)\nu_i D i ( ν i ) = ( d i ℓ + d i q ∣ ν i ∣ ) ν i , and let D v , D ω D_v,D_\omega D v , D ω collect its first and last three entries. For I = diag ( I x , I y , I z ) I=\operatorname{diag}(I_x,I_y,I_z) I = diag ( I x , I y , I z ) and buoyancy B = m t g 0 B=m_tg_0 B = m t g 0 ,
m t v ˙ b v e c = F − m t ω × v b v e c − D v , (215) m_t\dot{v}_b^{\mathrm{vec}}=F-m_t\omega\times v_b^{\mathrm{vec}}-D_v, \tag*{(215)} m t v ˙ b vec = F − m t ω × v b vec − D v , (215)
I ω ˙ = τ − ω × ( I ω ) − D ω − h c b B [ cos θ sin ϕ sin θ 0 ] . (216) I\dot{\omega}=\tau-\omega\times(I\omega)-D_\omega-h_{\mathrm{cb}}B
\begin{bmatrix}
\cos\theta\sin\phi\\
\sin\theta\\
0
\end{bmatrix}. \tag*{(216)} I ω ˙ = τ − ω × ( I ω ) − D ω − h cb B cos θ sin ϕ sin θ 0 . (216)
The published damping vectors are d ℓ = ( 3 , 3 , 3 , 0.3 , 0.5 , 0.5 ) d^\ell= (3, 3, 3, 0.3, 0.5, 0.5) d ℓ = ( 3 , 3 , 3 , 0.3 , 0.5 , 0.5 ) and d q = ( 5 , 5 , 5 , 0.3 , 1 , 1 ) d^q = (5, 5, 5, 0.3, 1, 1) d q = ( 5 , 5 , 5 , 0.3 , 1 , 1 ) . Their entries use the corresponding SI force and moment units. The model assumes neutral buoyancy, isotropic translational mass, and principal-axis inertia. It excludes the Euler-angle singularity cos θ = 0 \cos\theta= 0 cos θ = 0 .
Quadrotor. The state is x = ( p ⊤ , q ⊤ , v ⊤ , ω ⊤ ) ⊤ x = (p^{\top}, q^{\top}, v^{\top}, \omega^{\top})^{\top} x = ( p ⊤ , q ⊤ , v ⊤ , ω ⊤ ) ⊤ , with scalar-first unit quaternion q = ( q w , q x , q y , q z ) ⊤ q = (q_w, q_x, q_y, q_z)^{\top} q = ( q w , q x , q y , q z ) ⊤ . The inputs are total thrust F F F and the three angular-acceleration contributions ( α x , α y , α z ) (\alpha_x, \alpha_y, \alpha_z) ( α x , α y , α z ) . Define
R ( q ) e 3 = [ 2 ( q w q y + q x q z ) 2 ( − q w q x + q y q z ) 1 − 2 ( q x 2 + q y 2 ) ] (217) R(q)e_3 =
\begin{bmatrix}
2(q_wq_y + q_xq_z) \\
2(-q_wq_x + q_yq_z) \\
1 - 2(q_x^2 + q_y^2)
\end{bmatrix} \tag*{(217)} R ( q ) e 3 = 2 ( q w q y + q x q z ) 2 ( − q w q x + q y q z ) 1 − 2 ( q x 2 + q y 2 ) (217)
The dynamics are
p ˙ = v , v ˙ = − g 0 e 3 + C T F m R ( q ) e 3 (218) \dot{p} = v, \qquad\dot{v} = -g_0e_3 + \frac{C_TF}{m}R(q)e_3 \tag*{(218)} p ˙ = v , v ˙ = − g 0 e 3 + m C T F R ( q ) e 3 (218)
q ˙ = 1 2 [ − q x − q y − q z q w − q z q y q z q w − q x − q y q x q w ] ω (219) \dot{q} = \frac{1}{2}
\begin{bmatrix}
-q_x & -q_y & -q_z \\
q_w & -q_z & q_y \\
q_z & q_w & -q_x \\
-q_y & q_x & q_w
\end{bmatrix}
\omega \tag*{(219)} q ˙ = 2 1 − q x q w q z − q y − q y − q z q w q x − q z q y − q x q w ω (219)
ω ˙ x = α x − 5 9 ω y ω z , ω ˙ y = α y + 5 9 ω x ω z , ω ˙ z = α z . (220) \dot{\omega}_x = \alpha_x - \frac{5}{9}\omega_y\omega_z, \qquad
\dot{\omega}_y = \alpha_y + \frac{5}{9}\omega_x\omega_z, \qquad
\dot{\omega}_z = \alpha_z. \tag*{(220)} ω ˙ x = α x − 9 5 ω y ω z , ω ˙ y = α y + 9 5 ω x ω z , ω ˙ z = α z . (220)
The angular inputs describe the controlled contributions after inertia scaling. The full angular acceleration also includes the displayed gyroscopic terms. The benchmark uses independent bounds on total thrust and these inputs, without a rotor-allocation constraint.
Label-Generation Settings
Table B.3 gives the settings of the finite-horizon tree search of § 10.1.4.2 . The columns correspond to the three terms of the error decomposition Equation (166) . The step size Δ t \Delta t Δ t and the horizon length K K K determine the first two terms, and the time horizon K Δ t K\Delta t K Δ t is listed separately because it is the quantity that must be long enough for an unavoidable violation to appear. The beam width B B B and the search variant determine the search-truncation term. No system was solved by complete enumeration, so Equation (164) applies throughout, and every label is a lower bound on the finite-horizon vertex-restricted value.
The supervision states { x j } j = 1 N d a t a \{x_j\}_{j=1}^{N_{\mathrm{data}}} { x j } j = 1 N data are drawn uniformly from X \mathcal{X} X , except on the three two-dimensional systems, where a regular lattice was used because it also serves the visualizations of Figure 7.2 and Figure 7.3 . The generation time T d a t a T_{\mathrm{data}} T data covers all supervision states, which are processed in GPU batches.
Two observations follow from the table and support the discussion of § 10.1.5.4 . The first is that the generation time is not ordered by state dimension. The quadruped trunk, with nine states, is the most expensive entry after the underwater vehicle, and the 13-state quadrotor is cheaper than the 6-state manipulator. The cost is driven by the product N d a t a K B M N_{\mathrm{data}}KBM N data K B M of § 10.1.4.2 , in which the vertex count M = 2 n u M = 2^{n_u} M = 2 n u enters through the input dimension. The second is that the beam width can be reduced to control the cost of a large vertex count. Several systems with n u ≤ 3 n_u \le3 n u ≤ 3 use B = 1000 B = 1000 B = 1000 , compared with B = 800 B = 800 B = 800 for the underwater vehicle and B = 150 B = 150 B = 150 for the quadrotor. This is the practical form of the trade-off described in Section 7.6.
Table B.3. Label-generation settings. N d a t a N_{\mathrm{data}} N data is the number of supervision states, K K K the horizon length in steps, Δ t \Delta t Δ t the step size, K Δ t K\Delta t K Δ t the resulting time horizon, and B B B the beam width. T d a t a T_{\mathrm{data}} T data is the wall-clock time for the whole batch. “Extra” lists the parameters of the stochastic and branch-and-bound variants of § 10.1.4.2 .
Network Architecture and Training Settings
Table B.4 gives the network and the training schedule. All systems share the residual parameterization Equation (167) , sinusoidal hidden activations, a softplus output, the Adam optimizer, an initial learning rate of 10 − 3 10^{-3} 1 0 − 3 , and 10 000 epochs. They differ in the width and depth of the residual network, in the epoch at which the learning rate is reduced by a factor of ten, in the number of collocation states N P D E N_{\mathrm{PDE}} N PDE , and in the loss weight λ \lambda λ of Equation (169) . Collocation states are drawn uniformly from X \mathcal{X} X and are independent of the supervision states, which is why N P D E N_{\mathrm{PDE}} N PDE and N d a t a N_{\mathrm{data}} N data differ on most systems. The queried networks are small, between about 3000 and 70 000 parameters, which allows the CBF-QP to evaluate the barrier and its gradient at 250 Hz.
Two kinds of entry in the λ \lambda λ column require comment. The entry “norm.” marks the two runs in which λ \lambda λ was not chosen by hand. Both loss terms are evaluated over one epoch, and the two measured magnitudes are then used as fixed scale factors for the remainder of training, to balance their loss scales. Equal loss scales do not necessarily imply equal gradient magnitudes. The four entries with λ = 0 \lambda= 0 λ = 0 mark the systems on which the reported models were trained on the data term alone, which are the cart-pole, the manipulator, the quadruped trunk, and the underwater vehicle. This does not affect the comparison of Table 7.1 , since the two supervised settings share the listed λ \lambda λ within each system and the third setting has no data term at all. The remaining values were selected per system inside the range in which the validation metrics are flat, as § 10.1.5.5 describes for the inverted pendulum.
Validation Settings
Table B.5 gives the settings of the protocol of § 10.1.5.2 . Initial states are drawn from X \mathcal{X} X by stratified rejection sampling so that roughly half lie in S O \mathcal{S}_{\mathrm{O}} S O , and each is simulated for the horizon T v a l i d T_{\mathrm{valid}} T valid under the Hamiltonian-maximizing policy Equation (173) . The trajectory
Validation Settings
Table B.4. Architecture and training configuration. “Hidden” lists the hidden-layer widths of the residual network r ^ Θ \hat{r}_{\Theta} r ^ Θ , all with sinusoidal activations, and β \beta β is the softplus sharpness. N P D E N_{\mathrm{PDE}} N PDE is the number of collocation states, and λ \lambda λ is the weight of the physics-informed term in Equation (169) . All runs use Adam, an initial learning rate of 10 − 3 10^{-3} 1 0 − 3 , and 10 000 epochs, with the learning rate reduced by a factor of ten at the listed epoch.
is integrated at the listed step size, which is between five and twenty-five times smaller than the step size used for label generation. The reported metrics are means and standard deviations over the training seeds.
Estimating the predicted-safe volume. The ratio vol ( S ^ Θ ) / vol ( X ) \operatorname{vol}(\hat{\mathcal{S}}_{\Theta})/\operatorname{vol}(\mathcal{X}) vol ( S ^ Θ ) / vol ( X ) in Equation (174) is a Monte Carlo estimate and not a geometric computation. The stratified rejection sampling that produces the validation states draws uniform proposals from the box X \mathcal{X} X and classifies each by the sign of V ^ Θ \hat{V}_{\Theta} V ^ Θ , so the acceptance rate of the predicted-safe stratum is the required fraction and the estimate is available at no additional cost. For the quadrotor, the proposals instead come from the product sampling of Section B.2. The number of proposals is at least N v a l i d N_{\mathrm{valid}} N valid , so the standard error of the estimate is below 0.4 percentage points for the smallest batch in Table B.5 and below 0.05 percentage points for the largest. Two consequences follow. The ratio is a fraction of the chosen box rather than an intrinsic quantity, so changing the box changes the ratio without changing the barrier, which partly explains the small values of the underactuated systems. The factor 1 − ρ F S 1-\rho_{\mathrm{FS}} 1 − ρ FS is measured only over the finite horizon T v a l i d T_{\mathrm{valid}} T valid , so η e f f \eta_{\mathrm{eff}} η eff inherits the finite-horizon caveat stated in § 10.1.5.2 .
Learned barriers. Figure B.1 shows a two-dimensional slice of the learned barrier for every system, obtained with vertex-restricted supervision. The plotted model is the first of the five seeded runs that enter Table 7.1 . Each slice plots the barrier over two state components and fixes the remaining ones. The Dubins car is shown at θ = − 0.84 \theta=-0.84 θ = − 0.84 , the 2D double integrator at ( v x , v y ) = ( 2 , 1 ) (v_x,v_y)=(2,1) ( v x , v y ) = ( 2 , 1 ) , the kinematic bicycle at ψ = 0 \psi=0 ψ = 0 and v = 20 v=20 v = 20 , the cart-pole at p ˙ = θ ˙ = 0 \dot{p}=\dot{\theta}=0 p ˙ = θ ˙ = 0 , and the dynamic unicycle at θ = 0 \theta=0 θ = 0 , v = 2 v=2 v = 2 , and ω = 0 \omega=0 ω = 0 . The relative unicycle is shown at ψ = π \psi=\pi ψ = π and v r = v p = 1 v_r=v_p=1 v r = v p = 1 , the 3D double integrator at p z = 0 p_z=0 p z = 0 and v = ( 2 , 2 , 0 ) v=(2,2,0) v = ( 2 , 2 , 0 ) , the manipulator at q 1 = 0.25 q_1=0.25 q 1 = 0.25 and q ˙ = ( 0 , − 5 , 0 ) \dot{q}=(0,-5,0) q ˙ = ( 0 , − 5 , 0 ) , and the landing rocket at v = ( 1 , − 6 ) v=(1,-6) v = ( 1 , − 6 ) , θ = − 0.2 \theta=-0.2 θ = − 0.2 , ω = 0 \omega=0 ω = 0 , and m = 0.9 m=0.9 m = 0.9 . The quadruped trunk is shown at p z = 0.3 p_z=0.3 p z = 0.3 , $v=0, and ( p , q , r ) = ( − 4 , − 4 , 0 ) (p,q,r)=(-4,-4,0) ( p , q , r ) = ( − 4 , − 4 , 0 ) , the underwater vehicle at p x = 0 p_x=0 p x = 0 , ( ϕ , θ , ψ ) = ( 0 , − 1 , 1 ) (\phi,\theta,\psi)=(0,-1,1) ( ϕ , θ , ψ ) = ( 0 , − 1 , 1 ) , and ν = ( 1.8 , 0 , − 1.8 , 0 , 0 , 0 ) \nu=(1.8,0,-1.8,0,0,0) ν = ( 1.8 , 0 , − 1.8 , 0 , 0 , 0 ) , and the quadrotor at p z = 0 p_z=0 p z = 0 , q = ( 0 , 0 , 0 , 1 ) q=(0,0,0,1) q = ( 0 , 0 , 0 , 1 ) (a yaw of π \pi π under the scalar-first convention), v = ( 4 , 0 , 0 ) v=(4,0,0) v = ( 4 , 0 , 0 ) , and ω = 0 \omega=0 ω = 0 . The black line is the constraint boundary, the green line is the boundary of the predicted safe set, and the orange dash-dotted line is the boundary of the set that the rollouts of § 10.1.5.2 validate as safe within the slice. The proximity of the last two lines is the visual counterpart of the low false-safe and false-unsafe rates in Table 7.1 , and the predicted safe set lies inside the constraint set on every slice, as Equation (168) requires.
Table B.5. Validation configuration. N v a l i d N_{\mathrm{valid}} N valid is the number of sampled initial states, T v a l i d T_{\mathrm{valid}} T valid the rollout horizon, and Δ t v a l i d \Delta t_{\mathrm{valid}} Δ t valid the step size of the rollouts. The last column is the wall-clock time of the whole validation batch.
Hardware Deployment
The hardware study of § 10.1.5.6 deploys the relative-unicycle barrier without retraining, so its offline configuration is the relative-unicycle row of every table in this appendix. That subsection describes the platform, the filter, and the composition, and it states how the deployed pairwise model differs from the one used in Chapter 6. Two quantities of the deployed model are given here. The robot and obstacle radii are r r = r o = 0.5 r_r=r_o=0.5 r r = r o = 0.5 m, which is 5 cm more than the physical dimensions of the robot and of a pedestrian, and their sum plays the role of R min R_{\min} R m i n in Chapter 6. The pedestrian speed v p v_p v p is carried as a state over [ 0 , 1.5 ] [0,1.5] [ 0 , 1.5 ] m s− 1 ^{-1} − 1 rather than fixed at deployment.
Hardware Deployment
Figure B.1. Two-dimensional slices of the learned barriers V ^ Θ \hat{V}_{\Theta} V ^ Θ for the 15 evaluated systems under vertex-restricted supervision (first seed), in the order of Table 7.1 , with red shading marking the states predicted to be unsafe. The black line is the constraint boundary, the green line the boundary of the predicted safe set, the orange dash-dotted line the boundary of the set that the rollouts of § 10.1.5.2 validate as safe within the slice, and the purple dashed line the boundary of the numerically computed maximal safe set where a numerical solution is available.
Bibliography
Bibliography