Submitted:
19 November 2026
Posted:
20 November 2026
You are already at the latest version
Abstract
The Model Predictive Path Integral (MPPI) controller shipped with ROS 2 Nav2 can stall in local minima in narrow, crowded, dynamic spaces, and its critics avoid collisions only through soft costs, with no formal safety guarantee. Several works outside Nav2 address both; we know of no public Nav2 controller plugin that combines local-minima escape with a barrier-based safety filter. This system paper presents Safe-Escape MPPI (SE-MPPI), a Nav2 plugin that adds online escape to MPPI and a control-barrier-function (CBF) safety filter for tracked dynamic obstacles, coordinated by a gain schedule. In a pre-registered live campaign (one simulated host, six repetitions per cell, no real robot, one post hoc amendment to its crash-stop rule, after which all s4 SE-MPPI trials ran), SE-MPPI without recoveries reached the goal in 5 of 6 on s1 (Wilson 95% interval [0.44, 0.97]) and 5 of 6 on the held-out s4, which lies outside the development family; stock without recoveries in 0 of 6 on each (Fisher exact \( p \) = 0.0152 for each). With Nav2's default recovery tree, on s1, stock 0 of 6 and SE-MPPI 3 of 6 (\( p \) = 0.1818, descriptive). s1 is the development scenario; s4 carries the claim. A third pocket, s3, a near-twin of a development geometry, gave 4 of 6 against 0 of 6 (\( p \) = 0.0606, not significant). In a randomized, paired 1,200-trial benchmark on a Python 2D mirror, not on the Nav2 controller itself, escape raises success on the static U-trap family from 0% to 80%; the escape—safety coordination matches an independent escape+CBF stack there, so we claim it only as a mechanism. By a standard argument for time-varying gains, the gain schedule keeps the look-ahead point's safe set forward invariant, but the guarantee is conditional: it covers only a look-ahead point and the tracked dynamic obstacles, assumes a Carathéodory closed-loop solution along which the barrier \( h_j \) is absolutely continuous and that the barrier inequality holds between control updates, and requires a slack-free quadratic program. A first version reached the goal in none of its 44 valid live trials; we report the four defects that we identify as the cause (one inferred, not logged), and four additions to the advised design: two were worked on until the development geometries passed (needed together in the sweeps) and two are safeguards for other configurations; with all four switched off, mirror U-trap success is 58%. Deployment warnings are in in Section 7.
Keywords:
model predictive control
; control barrier functions
; collision avoidance
; local-minima escape
; motion and path planning
; autonomous navigation
; ROS 2 Nav2
1. Introduction
Autonomous mobile robots increasingly operate in cluttered, dynamic indoor environments – warehouses, hospitals, service floors – where the local controller must be simultaneously fast, non-conservative, and safe. Within the ROS 2 Nav2 ecosystem, the MPPI controller (nav2_mppi_controller) [1] is a widely used high-performance option: it supports differential, omnidirectional, and Ackermann robots and works by sampling batch_size rollouts, scoring them with a bank of critics, and combining them with an information-theoretic softmax [2].
Two weaknesses, however, recur exactly in the environments that matter most:
- Local-minima entrapment. A finite prediction horizon (by default ) and zero-mean Gaussian sampling cause the robot to stall or oscillate in non-convex traps. Within the MPPI critic set, Nav2’s mitigations (PreferForwardCritic, TwirlingCritic) are always-on cost shaping that neither detects entrapment nor steers an escape. At the stack level, Nav2 does detect a stall: the controller server’s progress checker reports a failure when the robot has not moved a set distance within a set time, and the default behavior tree then clears the costmaps and runs generic recoveries such as spinning, waiting, and backing up [1,3,4]. These recoveries are not directed toward an opening. In the MPPI literature, one line of work reshapes the sampling distribution all the time, in part to reduce entrapment [5,6,7] and in part for other aims [8,9]; another adds guidance: GP-MPPI recommends a free-space subgoal from a learned navigability surface [10], and repulsive-potential augmentation adds an artificial potential field to the MPPI cost [11]. Some methods gate the escape on a detected stall: DRPA-MPPI switches the repulsive cost on when it detects entrapment [12], and MA-MPPI switches to memory-based potential fields when the state stagnates [13]. None of these carries a safety certificate.
- No formal safety. In Nav2 MPPI, avoidance is encoded as soft costs (ObstaclesCritic, CostCritic); there is no forward-invariance guarantee, and crucially no prediction of dynamic-obstacle motion – the costmap is a present-time snapshot and collision_monitor is purely reactive. CBF–MPPI fusions supply safety [14,15,16,17,18], but none of them detects entrapment or adds an escape mechanism (GS-MPPI counters the myopic behavior often associated with CBFs through long-term performance terms), and none ships as a Nav2 controller. Among CBF integrations with Nav2 that we could verify, the Nav2 documentation describes inserting a third-party product, the 3Laws Supervisor, which its vendor describes as based on CBFs, into the command chain after the controller [19,20]; it is a separate node rather than a controller plugin, and neither source describes a mechanism for escaping local minima.
These weaknesses also interact: being conservative for safety invites entrapment, and escaping aggressively invites collision. Several works outside Nav2 and MPPI address both at once, among them model predictive control that escapes local minima while keeping a safe backup trajectory [21], gap-based local planners with provable collision-free properties [22,23,24], and modulated CBF filters [25] that reduce or eliminate, among moving obstacles, the spurious equilibria that CBF quadratic programs (QPs) can introduce [26], with concurrent extensions [27,28]. In SE-MPPI, the entrapment detector is driven by progress along a per-task anchor path and runs inside the controller rather than at the stack level; Appendix B keeps a standalone 2D illustration of the design stage. This is a system contribution, and we state it as such.
Contributions.
- C1 (system). A public Nav2 local-controller plugin that combines online local-minima detection-and-escape with a CBF safety filter for tracked dynamic obstacles, packaged as a nav2_core::Controller plus a pluginlib MPPI critic. Each ingredient has precedent: gated repulsion in DRPA-MPPI [12], free-space subgoal and gap guidance in GP-MPPI [10] and gap-based planners [22,23], CBF filtering of MPPI commands [16], and a supervisor for Nav2 that its vendor describes as CBF-based [19,20]. What is new is their integration inside one Nav2 controller; to our knowledge no public controller plugin already provides it.
- C2 (repair and live evidence). The first version of the plugin did not reach the goal in a live simulated stack. We name the four defects behind that (Section 6.1), describe the repaired controller that ships (Section 4), disclose the four additions to the advised escape (two needed together for the development sweeps to pass, ablated jointly; two safeguards for other configurations), and test it in a pre-registered live campaign on one simulated host, with one post hoc amendment to its crash-stop rule after which all s4 SE-MPPI trials ran (Section 6.5). The campaign supports a narrow claim: the repaired controller without Nav2 recoveries reached the goal in 5 of 6 trials on the development pocket and in 5 of 6 on a held-out pocket outside the development family, where stock MPPI reached it in none.
- C3 (algorithm). An entrapment-gated gain schedule: a rule that raises the CBF class- gain on detected entrapment and drops it back on an imminent time-to-collision (TTC). Online adaptation of CBF gains is established, including selecting class- parameters to reduce predicted deadlock [29] and letting MPPI optimize a barrier-rate parameter [15]; our rule is a simpler, rule-based two-level instance whose specific elements are its trigger and its TTC override. Its invariance property (Section 4.6) is a known result for time-varying class- terms [30,31], which we restate as a conditional lemma: it covers the look-ahead point and the tracked dynamic obstacles, assumes the barrier inequality holds between samples, assumes a Carathéodory closed-loop solution along which is absolutely continuous, and requires a slack-free QP. In our 2D benchmark the schedule is empirically indistinguishable from an independent escape+CBF stack (Section 6.4.1), and the live campaign does not test it: its pockets contain no moving body (Section 6.5.1 reports the phantom obstacles and forced stops that occurred nevertheless, which were not a designed test of the coordination).
- C4 (dynamic safety). Integration of a look-ahead-point CBF safety filter for a differential-drive robot, fed by a costmap-based dynamic-obstacle tracker, as a QP at the controller’s output. The live campaign ran it with the occupancy-based static/dynamic classification, the horizon prediction and the conformal margin at their code defaults (on); the 2D mirror has none of the three (Section 4.7).
- C5 (reproducibility). An open Apache-2.0 implementation,1 a Python 2D mirror of the shipped algorithm with a randomized -trial benchmark and paired significance tests, a headless closed-loop development test with a written family rule, and the frozen, hash-checked pre-registration of the live campaign with its amendments.
Fusing CBFs with MPPI is not new, and neither is gated escape, online adaptation of the CBF gain, or treating escape and safety together; the paper is best read as a system report on putting these pieces into one Nav2 controller, on what went wrong the first time, and on a small pre-registered live test of the repaired version. The live claim is limited to what the pre-registered branch wording allows (Section 6.5): counts out of six, Fisher exact p values and Wilson intervals, on one simulated host. In the 2D mirror of the shipped algorithm the escape layer is the measured effect on the trap families (Section 6.4). The escape–safety coordination (C3) has the conditional invariance property of Section 4.6 yet, in the regime we could test, is empirically indistinguishable from an independent escape+CBF stack. We ran no real robot, no third-party escape baseline, and no full-scale physics benchmark (Section 7).
2. Related Work
MPPI and local controllers. Nav2 MPPI [1,2], TEB [32], DWB (a Nav2 DWA-family planner) [33], and Regulated Pure Pursuit [34] are the standard deployable local planners. MPPI’s critic-plugin interface (mppi::critics::CriticFunction) exposes per-rollout trajectories, the reference path, the goal, collision flags, and the furthest-reached path index – i.e., the signals needed for entrapment detection are already available, and a custom critic can be inserted without forking the optimizer. Around the controller, Nav2 already handles stalls at the stack level: the controller server runs a progress checker, by default SimpleProgressChecker, which reports a failure when the robot has not moved a set radius within a set time allowance, and the default behavior tree answers with costmap clearing, spinning, waiting, and backing up [3,4]. SE-MPPI’s detector differs in that it runs inside the controller on progress along the path and steers the escape instead of triggering generic recoveries; the two mechanisms can coexist. Local-minima escape. Most MPPI variants that bear on local minima are always-on changes of the sampling distribution: log-MPPI [5] and Biased-MPPI [6] name entrapment as a motivation and learned sampling distributions [7] mention poor local optima, whereas Tsallis-divergence MPC [8] and SVG-MPPI [9] change the distribution for other reasons. Others add guidance. GP-MPPI learns a sparse-Gaussian-process model of the navigable space around the robot and recommends a free-space subgoal to the local MPPI planner, which lets the robot escape local minima without a global map [10]. LME selects escape subgoals from local observations with interpretable heuristics and hands them to an arbitrary local planner, a dynamic-window planner or a learned policy in its experiments [35]. Fuke et al. add a repulsive artificial potential to MPPI to avoid local minima without global path guidance [11], and their DRPA-MPPI detects potential entrapment on the predicted trajectories and only then switches to a cost with repulsion away from the local minimum [12]. MA-MPPI also detects stagnation, when the variance of recent states falls below a threshold, and then switches to memory-based potential fields that push the sampler out of the local optimum; it is evaluated on simulated control and aerial-vehicle tasks, not in a navigation stack [13]. DRPA-MPPI is the closest detect-and-switch method and GP-MPPI the closest subgoal method; neither has a CBF or other formal safety layer, and neither is Nav2-integrated. SE-MPPI combines both ideas in a simpler form, a path-progress stall detector gating a classical repulsive potential [36] and a ray-cast gap bearing, and its safety filter runs alongside the escape rather than gating it. Gap-based local planners are closer still to the overall architecture. Potential Gap combines gap-based local navigation with artificial potential fields and restores provable collision-free properties for realistic robot models [22]; Safer Gap adds nonlinear model predictive control with keyhole zeroing-barrier-function constraints and a point-wise optimization-based safety filter as the final layer [23]; and Dynamic Gap extends provably collision-free gap-based navigation to dynamic environments by modeling how gaps evolve over time [24]. Relative to this line, SE-MPPI uses a gap only as a gated escape heuristic inside MPPI, and its barrier covers only tracked dynamic obstacles.
Escape and safety together. Several works treat entrapment and safety jointly. Soloperto et al. optimize an exploration trajectory together with a safe backup trajectory in a model predictive controller and prove convergence, feasibility, and constraint satisfaction under partially unknown constraints [21]. The modulated CBF-QP of Xue and Figueroa reduces or eliminates, in dynamic environments, the spurious equilibria that CBF-QP filters create [26], and was tested on Ridgeback and Fetch robots [25]. Concurrent work adds learned predictive barriers for moving concave obstacles to this filter [27], and pairs a mixed-integer MPC planner with a Minkowski-difference CBF filter to mitigate the local-minimum behavior of reactive CBF navigation in U-shaped and maze-like environments [28]. These methods mitigate or avoid minima inside the planner or the barrier itself, whereas SE-MPPI leaves the barrier unchanged and escapes through the MPPI cost. None of them is packaged as a Nav2 controller.
CBF × MPPI safety. Three fusion styles exist as research code: CBF conditions in the rollout cost or the sampling (Shield-MPPI [14], which adds a local repair step, and BR-MPPI [15], which imposes the CBF condition as an equality with a parametric linear class- function, augments the state with its parameter, and lets MPPI optimize the parameter’s rate as an extra input), an output CBF-QP filter on the MPPI command (SCBF-MPPI [16], built on the CBFKit toolbox [37]), and per-rollout safety filtering that makes every sample provably safe (GS-MPPI [18], DualGuard [17], which also filters the final command). For dynamic obstacles, DPCBF [38] uses a parabolic safe set that is less conservative than collision-cone barriers but is QP-only and not embedded in MPPI. Our filter builds on the classical CBF-QP [39,40]. None of these works ships as a Nav2 controller (CBFKit connects to ROS through its own wrapper module, not through Nav2’s controller interface), and none detects entrapment or adds an escape mechanism, although GS-MPPI counters the myopic behavior often associated with CBFs through long-term performance terms [18]. Among Nav2 integrations of a CBF that we could verify, the official documentation describes inserting the third-party 3Laws Supervisor, which its vendor describes as based on CBFs, between the velocity smoother and the collision monitor [19,20]; it acts on the controller’s output as a separate node, and neither source describes a local-minimum escape mechanism. SE-MPPI instead places its filter inside the controller and couples it to the escape layer through its gain.
Online adaptation of the CBF gain. Time-varying and adapted class- terms are well studied. Adaptive CBFs multiply the class- functions by time-varying penalty functions and prove forward invariance of the safe set [30]; optimal-decay CBF-QPs optimize the decay rate point-wise in time to keep the QP feasible [41]; and rate-tunable CBFs adapt the class- functions online and derive conditions under which multiple constraints can share the control input [31]. Closest to our trigger, Kim, Kee, and Panagou adapt the parameters of input-constrained CBFs online with a learned ensemble model and select, among the candidates that pass their uncertainty and risk checks, the class- parameters with the minimum predicted deadlock time [29]; BR-MPPI lets MPPI optimize the rate of the class- parameter as an extra control input [15]. Concurrent work switches nominal objectives when CBF and control-Lyapunov constraints conflict, to reduce slowdowns and deadlocks [42], and schedules the gain of a frontier barrier on an occupancy grid by how well the map is explored [43]. SE-MPPI’s coordinator is a rule-based, two-level instance of this idea, triggered by the entrapment flag and overridden by time-to-collision, and its invariance property (Section 4.6) follows the same argument as the relative-degree-one case of the adaptive-CBF result [30], there stated for Lipschitz controllers.
Conformal prediction for safe control (background, not claimed). The released controller carries an online conformal margin that inflates the CBF effective radius under prediction uncertainty; this is an implementation detail deferred to follow-up work (Section 7, SE-Predict) and is not a contribution of this paper. That margin draws on the established line of conformal-prediction-for-safe-control work [44,45,46,47,48]; the claims of this paper (C1–C4) stand without it. The live campaign ran with the margin enabled (Section 4.7).
Positioning.Table 1 places the reviewed systems against four factors: (a) shipping as a Nav2 controller plugin, (b) online local-minimum escape or avoidance, (c) an explicit run-time safety constraint, filter or backup, and (d) online adaptation of the class- gain. No reviewed system holds all four, but several hold two, fully or in part: stock Nav2 pairs its controller plugins with stack-level stall recovery, gap-based planners, backup-trajectory MPC and modulated CBFs combine local-minimum handling with a safety layer, and adaptive-gain CBFs and BR-MPPI pair a barrier with gain adaptation, with deadlock-aware adaptation also holding the second factor in part. The delta of SE-MPPI is therefore the conjunction inside one Nav2 controller plugin, not any single element. Its own marks are not all full: its barrier covers only tracked dynamic obstacles, and its escape is demonstrated live only in simulation, on one host, with six repetitions per cell, and in the Python 2D mirror. Its gain rule differs from prior gain adaptation mainly in its trigger, and, as Section 6.4.1 shows, we could not measure an outcome benefit from it.
3. Problem Formulation
Consider a differential-drive robot with pose and control , tracking a global path produced by a Nav2 global planner, amid static structure and a set of dynamic obstacles o with position , radius , and (estimated) velocity . Let r be the radius of the disc that stands for the robot in the barrier (by default the circumscribed radius of the costmap footprint) and m a safety margin. We want a control policy that (G1) makes monotone progress along – i.e., does not stall in a local minimum – and (G2) keeps the robot clear of the obstacles in through a barrier whose forward invariance holds under stated conditions, while (G3) running as a Nav2 controller at Hz on CPU.
The tension: G1 may require maneuvers that approach obstacles (to round a trap), whereas a naive safety filter for G2 forbids exactly those maneuvers. SE-MPPI’s coordinator (Section 4.6) couples the escape layer for G1 and the barrier for G2 through the barrier gain.
4. Method: SE-MPPI
This section describes the controller that ships, tagged campaign2-controller. The first version of the plugin differed in four points that Section 6.1 names; the escape described here also contains four additions to the design we advised ourselves, which Section 4.4 lists.
4.1. Overview
SE-MPPI subclasses the stock MPPIController, reusing its optimizer for the nominal command, then post-processes that command each cycle:
- Entrapment detection from progress along a per-task anchor path (single source of truth, shared with the critic).
- Escape: while entrapped, the controller hands MPPI a short escape path to a waypoint in an opening, and an EscapeCritic adds a distance-field repulsion cost to the rollouts.
- Dynamic-obstacle tracking from the local costmap.
- Coordination: resolve the CBF gain from entrapment and TTC.
- CBF safety filter: project the nominal onto the CBF-safe set via a small QP.
The escape and safety layers thus act at complementary points – sampling-time shaping of the path and the costs, and output-time projection – unified by a shared entrapment signal and the coordinated gain.
Figure 1 summarizes the resulting data flow.
4.2. Entrapment Detection (Single Source of Truth)
Progress on an anchor path. Progress is the arc length along a per-task anchor path, the first plan of the task. The nearest-index progress of the first version, re-anchored on every replan, let one path cell of motion along a fresh replan count as progress; Nav2’s behavior tree replans every second, so this ended every escape within seconds (Section 6.1). A progress event now needs m of arc length beyond the best so far. A replan to the same goal (same frame, and an endpoint within two cells of the local costmap, m here, of the previous endpoint) is only a candidate: it becomes the anchor, and counts as an event, once the signed advance along the chain of candidates reaches m. Entrapment is declared when no event occurs for control cycles (3 s at 10 Hz; in the live campaign the loop was paced by the wall clock, Section 6.5) and is suppressed within a goal tolerance of m. The window counts control cycles, not seconds: at the 20 Hz of the released parameter file the same 30 cycles are s. The movement watchdog (3 s) and the re-selection period (15 s) of Section 4.3 are also converted to cycles at the configured controller frequency, so all three stretch in wall time when the loop misses its rate. The escape is decided at the start of a cycle from the detector state at the end of the previous cycle, a lag of one cycle. The controller publishes the detector state to the EscapeCritic through a shared atomic flag in a registry keyed by the controller name. The critic scores the rollouts before the detector of the current cycle runs, so the critic and the escape path act on the previous cycle’s state, while the coordinator uses the state of the current cycle. Escape and safety therefore agree on whether the robot is trapped up to one cycle: on the cycle in which entrapment begins or ends, the gain already follows the new state and the repulsion and the escape path still follow the old one. The mirror has the same split.
No valid control. When every rollout collides, the optimizer throws NoValidControl. The controller catches it, runs the progress update and the detector as on a normal cycle, and rethrows. This update acts only if the controller server tolerates the failure. With Nav2’s default failure_tolerance of 0 the server rethrows, publishes zero velocity and calls reset() on every controller, which clears the detector in the same cycle; the live campaign of Section 6.5 runs with this default, so the update did not act there (Section 7).
Reverse speed. The parameter file keeps vx_min at m/s. With the robot cannot stop or back off, so the escape cannot act; the controller logs a warning, and the campaign driver refuses such a parameter file.
4.3. Escape (Detect-And-Switch)
While the robot is entrapped, the controller applies three rules. Table 2 lists the values.
(1) Opening selection. The controller casts 36 rays over the local costmap out to a sensing horizon of m (or the costmap edge). Among the rays that reach the horizon, whose free length (to the first cell with cost at least 253, the inscribed band, not the wall, or to the first unknown cell) is at least m, and that do not lead to an avoided place (Section 4.4), it takes the ray closest to the goal bearing. If there is none, it takes the longest ray whose free length is at least m and that does not lead to an avoided place. Both uses of the m threshold are part of addition (d) (Section 4.4); the advice had no threshold on the longest-ray fallback. If excluding rays leaves nothing, it repeats the choice without the avoid list. A hysteresis of rad keeps the previous bearing unless a new ray is closer to the goal bearing by more than that. The horizon test matters: from the mouth of a pocket the ray back into the pocket is longer than the rays along the walls, so a plain longest-ray rule re-enters the pocket.
(2) Escape path. The waypoint lies on the selected bearing at m, with c the free length of the ray and r the radius of the CBF disc (se_cbf_robot_radius; its default 0 takes the circumscribed radius that the costmap reports for the footprint). The campaign file does not set it, and every live launch logged robot_radius=0.234 at configure, for a footprint built from robot_radius m, so m live. A deployer who sets the CBF radius therefore also moves the escape waypoint (see the box in Section 7). The waypoint is taken only if that distance is at least m. Four escape-rule values are compiled constants, not YAML values: the floor of m, the margin of m in the waypoint distance, the size 6 of the failed list (below) and the same-goal test of Section 4.2 (two costmap cells). If no ray is usable when the escape starts, MPPI keeps the behavior-tree path; if none is usable at a re-selection, MPPI keeps the previous escape path. In both cases the selection runs again in every cycle, and the repulsion stays on while the robot is entrapped. The mirror does the same. The cap of m is inactive while the sensing horizon m is at most m, as here: the longest hop is m. The controller builds a path from the robot to the waypoint and hands it to MPPI through MPPIController::setPlan, before the optimizer call; the goal, alignment and path-following critics then pull the rollouts toward the waypoint. The path of the behavior tree stays in the controller for progress and for the near-goal test, and MPPI receives it again when the escape ends. Nav2’s controller server checks goal arrival against its own copy of the behavior-tree path, so the substitution cannot fake a goal. The path is published on a topic of its own for logging.
(3) Hops. The waypoint stays frozen until the robot is within m of it, 15 s have passed, the robot has moved less than m in 3 s, or the straight line to it is blocked. Each new selection is a hop. A waypoint that was not reached is remembered as failed for the episode. As the code reads, the waypoint is appended to the failed list in every cycle in which a re-selection fires, also when the selection is then not taken (no usable ray, or a waypoint closer than m), so the six entries can hold copies of one waypoint. The mirror has the same quirk. We did not remove the duplicates and did not measure their effect; the campaign ran with them.
End of the escape. Entrapment, and with it the escape and its avoid lists, ends at the first progress event ( m beyond the best arc length on the anchor, or an adoption). The controller then clears the escape state and hands MPPI the behavior-tree path again. All escape memory (anchor path, detector, stall pose, avoid and failed lists, obstacle tracks) lives for one task. A plan that arrives after the control loop has been idle for more than se_task_idle_threshold (compiled default s, not set in the campaign file; measured on a steady clock and raised to at least three control periods) starts a new task, and Jazzy’s controller server calls reset() at the end of every FollowPath goal; both clear this memory. Under a recovery tree, each recovery therefore restarts the escape from scratch. Campaign 2 did not exercise this: no SE trial invoked a recovery or had a progress failure.
Repulsion cost. The EscapeCritic keeps the distance-field repulsive cost of the classical form [36], for , with (the compiled default apf_eta; the campaign file does not set it) and m (apf_influence_dist). Here d is the Dijkstra distance (8-connected grid) to the nearest cell with cost at least 253 (the inscribed band, which lies one robot radius from the wall, not the wall; unknown space is not an obstacle), clamped below at half a cell ( m). The cost of a rollout is the mean of U over its steps that lie on the map (steps off the map are skipped). It keeps rollouts off the trapping surface during the turn. No weight multiplies it: repulsion_weight ( in the parameter file) is unused while use_apf is true (its default). The comment that says so is in the released parameter file, not in the campaign parameter file. The critic’s own gap-bearing cost, which rewards rollout endpoints that head toward the selected opening and is a form of the free-space subgoal and gap guidance of GP-MPPI [10] and Potential Gap [22], is off in the shipped configuration (gap_weight 0) and kept only for ablation. The first version relied on that cost and selected a sideways opening instead of routing out of the pocket (Section 6.1). Because the escape is active only when entrapped, free-space behavior is unchanged (detect-and-switch, not always-on, as in DRPA-MPPI [12]).
4.4. Additions to the Advised Design
The design we advised ourselves before writing code contained the rules above except four additions. We found (a) and (b) needed together for the development sweeps of a family of pockets to pass (Section 6.3): the measured ablation below switches them off jointly, and we ran no ablation of either one alone. That ablation is confounded with the position of a geometry in the sweep process: run alone, geometries passed more often without the additions than in the sweeps (below), so it does not show that (a) and (b) are necessary in general. The reason given for each below rests on development observations, not on a separate measurement. The floor (c) and the threshold (d) are safeguards for other configurations; under the shipped parameters (c) never acts and (d) never acts on horizon rays. We accepted all four as the shipped algorithm; every statement in this paper about SE-MPPI is a statement about the controller with them.
- (a)
- Avoid lists. The selection excludes rays that lead to the pose where entrapment was declared ( m), to the origins of the last three hops, and to failed waypoints ( m, at most six remembered). An avoided place counts only if it is ahead of the ray (less than off), farther from the robot than its radius, not more than that radius beyond the end of the ray, and the ray passes within that radius of it. From the mouth of a pocket the ray back to the stall pose reaches the horizon and is closest to the goal bearing; without the exclusion the robot re-enters. Without the hop origins a rotated pocket made the selection swing between two places.
- (b)
- Movement watchdog. A re-selection when the robot has moved less than m in 3 s. On one development geometry MPPI stood still in front of a gap that a binary cost threshold called free but whose inflation cost was about 160; the advised 15 s period is too slow for Nav2’s 10 s progress checker.
- (c)
- Waypoint floor. A candidate waypoint closer than m is not taken. Inert here: a selected ray has a free length of at least m, so the waypoint is at least m away.
- (d)
- Clearance threshold. The m threshold on the free length of a ray applies to the horizon candidates and to the longest-ray fallback; the advice had no threshold on the fallback. On horizon rays it is inert here: the local costmap is 3 m wide and re-centres on the robot at its 5 Hz update, so a ray that reaches the horizon or the costmap edge is at least about m long (shortest logged live: m). On the fallback it excludes rays shorter than m. The fallback never fired live: all 188 hops logged in campaign 2 (evidence trials included) took a horizon ray, so (d) did not act in any live trial. The mirror’s switch for the additions removes the threshold from both places. Restoring it on the fallback in the advised arm changed no outcome on the U-trap family (29 of 50, no seed differs; experiments/results_2d_v2_advised/FALLBACK_THRESHOLD.md).
Measured ablation. We switched off (a) and (b) through their parameters (both avoid radii m, stall time s). The floor (c) and the threshold (d) have no parameter, so the ablation leaves them on; (c) does not act under these parameters, and (d) acts only on the fallback. The failed-waypoint list keeps recording waypoints, but it excludes rays with the hop radius, which is m here, so it excludes none and (a) is off as a whole (see Section 7). The test is the headless sweep of Section 6.3 over the 56 valid development geometries, one run each. MPPI’s noise cannot be seeded from the test, so each sweep is one process and the sweeps are independent. Table 3 gives the count per sweep. Without the additions the three archived confirmation sweeps pass 14 to 18 of 56, and an earlier, unarchived implementer sweep passed 19; with them 55 or 56 of 56. The additions were worked on until the development family passed, so the 56 of 56 is a development result and not a test result.
The two sweeps with 55 of 56 each had one geometry in which the robot never entered the pocket, so the run did not test a trap. With the additions the three confirmation sweeps passed 167 of 168 runs, and all 168 reached the goal; without them the three passed 48 of 168. No run had a contact or a NoValidControl throw. A geometry’s outcome without the additions depends on its position in the sweep process: on a subset of four geometries, 3 processes per arm, the runs without the additions passed 8 of 12 when run alone and 4 of 12 in the sweeps, and with the additions 12 of 12 in both. Without the additions the primary geometry w22_d13_r30_a10 passed 0 of 3 runs in the review. We therefore report counts per sweep and do not give a rate.
4.5. CBF Safety Filter (Dynamic Obstacles)
To make the barrier relative-degree one in for a unicycle, safety is enforced on a look-ahead point , which is fully actuated by through the Jacobian
For each obstacle o with and effective radius :
The continuous-time CBF condition [39,40], enforced once per control cycle, is linear in u. We solve a small QP (OSQP) [49] that minimizes
subject to the per-obstacle CBF rows (relaxed by a single slack for feasibility) and the input box limits. Obstacles are pruned to the nearest 20 (a compiled cap) by clearance (surface gap), not center distance. If the QP can only stay safe by relaxing the barrier () or fails, the controller sets the linear velocity to zero at its output (forward or reverse; the controller’s log calls it the forward velocity; the velocity smoother limits the change in the command sent to the base, see Section 6.5.1) while keeping the QP’s turn (or, on solver failure, the box-clamped nominal turn) – stop rather than drive into an imminent collision. Static structure is intentionally excluded from the CBF (handled by the MPPI obstacle critic and costmap inflation); only obstacles that are moving and small enough to be a movable body are admitted (a track must pass the occupancy-persistence veto is_dynamic, move at least m/s and have a radius of at most m), which we found essential in a real costmap (Section 6.2).
Because this condition is checked once per control cycle (a sampled-data CBF), strict between-sample forward invariance would require a sampled-data margin tightening R by an term; in practice the obstacle-radius margin m absorbs this gap, and we report the empirical safety rate rather than claim continuous-time invariance between samples.
4.6. Escape–Safety Coordination: Gain Scheduling Under a Conditional Invariance Lemma
The coordinator resolves the gain:
with , where TTC is the minimum time-to-collision over tracked obstacles under the current command.2 Raising relaxes the constraint – permitting the robot to approach an obstacle faster, as an escape maneuver requires – while the TTC override snaps the gain back to (safety first) when a dynamic obstacle is imminent. The next result states that, under explicit conditions, this schedule does not by itself give up forward invariance. It is a known property of CBFs with time-varying class- terms and follows the same argument as the relative-degree-one case of the invariance result for adaptive CBFs with time-varying penalty functions [30], which is stated there for Lipschitz-continuous controllers, whereas our switched gain yields a discontinuous command; related time-varying and optimized decay rates appear in [41] and [31]. We restate it with the standard integrating-factor proof for completeness and claim no new mathematics.
Proposition (invariance under a time-varying gain; after [30]).Fix an obstacle j, suppose the safety-filter QP is feasible without slack throughout the interval considered (the shared ), suppose the closed-loop solution is a Carathéodory solution along which is absolutely continuous (the switched command is discontinuous, so this is a hypothesis, not a consequence), and assume the continuous-time inequality holds for almost every – an assumption between samples, since discrete-instant QP feasibility does not by itself imply the intersample inequality (the sampled-data caveat of Section 4.5). Let beanymeasurable, positive, bounded gain schedule – in particular the coordinator’s piecewise-constant switching between and (Eq. 4) and its TTC override. If , then for all – the look-ahead point P does not enter obstacle j’s inflated disc, as modeled (body safety approximate; see Section 7).
Proof. Define the integrating factor , finite and strictly positive because . Then, almost everywhere,
so is non-decreasing, hence . Since , for all t. ▪
Positivity and boundedness are stronger than the argument needs: a nonnegative, locally integrable already makes finite and positive. We keep the stronger hypothesis because it matches the schedule of Eq. (4).
Corollary. Under the slack-free and between-sample conditions of the Proposition and its hypothesis of a Carathéodory closed-loop solution along which is absolutely continuous, forward invariance of holds for every positive, bounded gain schedule – in particular for the coordinator’s switching between and , and for the TTC override that drops back to . If these conditions hold for every row, is invariant; the argument is per-obstacle and gain-agnostic, so sharing a single across rows is immaterial to the invariance statement itself.
Under these conditions, raising therefore does not permit ; it only weakens the lower bound on , letting the robot approach faster (bolder detours) inside the same set. This is the design rationale for gating the escape gain by the entrapment signal instead of adding it on top of the CBF filter: in this idealized setting, the gain trades caution for maneuverability without giving up invariance. The benchmark does not show that this gating changes outcomes (Section 6.4.1). The guarantee is narrow. It concerns the look-ahead point, not the robot body; it covers only the tracked dynamic obstacles under the constant-velocity model, not static structure; it applies to an obstacle only while that obstacle stays in the tracked, unpruned set (an obstacle that slows below the speed threshold for dynamic obstacles, merges into a cluster too large to be a movable body, or is pruned beyond the nearest few by clearance leaves the QP); it assumes a Carathéodory closed-loop solution along which is absolutely continuous and the continuous-time inequality between samples; and it requires , so it does not cover any cycle in which the QP uses slack. Because the slack is shared, one imminent obstacle can momentarily loosen the margin on every other obstacle in the same QP solve, so we report slack usage empirically: in the 2D benchmark of Section 6.4 the QP never engages slack on the mover-free families, and uses nonzero slack in 26–35 of 50 narrow-dynamic trials (max ) and 47–48 of 50 dynamic-family trials (max ) per CBF-carrying config (Section 6.4.1). In cycles with the brake of Section 4.5 sets the linear velocity of the QP command to zero (at the controller output, for one cycle; the velocity smoother limits the change in the command sent to the base), and bounded-prediction-error robustness is the subject of follow-up work (Section 7).
4.7. Dynamic-Obstacle Tracking
The tracker clusters costmap cells at or above the inscribed-obstacle cost (253) and matches clusters to persistent tracks greedily, nearest track first, in cluster order; each track is matched to at most one current cluster within a gate, so two clusters cannot inherit one track’s velocity, and a track survives up to 3 unmatched frames (se_track_max_missed). A split or merge can still shift the centroid of the matched cluster and so produce a phantom velocity (Section 6.5.1). The tracker estimates a clamped constant velocity. The controller stamps each costmap frame with the node clock in the control cycle that first sees a changed grid, not with the costmap’s update time; with the local costmap at 5 Hz and the controller at 10 Hz in the campaign, the time step of the velocity estimate is rounded to control cycles, and on a robot the costmap latency adds to this jitter. Its output feeds the coordinator (TTC) and the CBF filter. The constant-velocity model is a deliberate, replaceable baseline (Section 7).
Configuration that ran live. The campaign parameter file does not set se_classify_static, se_predict_horizon or se_conformal. Their code defaults are true, so every live SE trial ran with the occupancy-based static/dynamic classification (the is_dynamic veto above), the horizon prediction and the online conformal margin on. The 2D mirror has none of the three. The statements of this paper about the tracker and the CBF filter hold for this configuration only. A cell counts as static only after se_static_min_frames (10, the code default, not set in the campaign file) tracker frames of occupancy, so newly seen structure, such as a wall entering the rolling window, is a dynamic candidate during that period. We state this as a code fact; we did not establish that it caused the phantom admissions of Section 6.5.1.
6. Experiments
Four kinds of evidence support this paper, and they ran on different things. Table 4 lists which build of the MPPI library each used. The reason it matters is a defect in some distributed nav2_mppi_controller binaries (Section 6.1).
6.1. Live History: Campaign 1 and the Four Defects
A pre-registered live re-run (campaign 1) drove the U-pocket testbed in 48 registered trials at a real-time factor between and : 4 on an affected build and 44 valid trials on the correct build. None reached the goal: the 44 valid trials ended in 42 timeouts and 2 aborted goals, 13 of them with an escape episode. An earlier version of this paper reported similar July 2026 runs, also with no goal reached, and attributed that to the host (a real-time factor of to and phantom costmap cells from transform smear); we withdraw that attribution. The raw files, the analysis and the root-cause note are in experiments/results_pilot_rerun/. The note names four defects of the controller and its parameter file, which act in this order.
- Forward-only speed range. The pilot’s vx_min was , so the robot could not stop or back off. In the 20 valid trials with that setting it crept into the back wall; the chassis touched the wall in 14 of them. Once all rollouts collide the optimizer throws NoValidControl every cycle.
- Detector skipped on a throw. The first version updated its entrapment detector only after the optimizer call returned, so it never saw a stall that ended in a throw.
- Progress re-anchored on every replan. A replan to the same goal re-anchored the furthest-reached path index, so one cell of motion (2.5 cm) along the new path counted as progress. All 70 closed escape episodes of the parameter set that allowed reversing ended at path index 1 or 2, at a median of 3.1 s.
- Escape did not route out. In that parameter set, seven episodes of 24 to 83 s occurred in 5 of the 6 SE-MPPI trials, and the robot stayed within 0.34 m of its stopping point. The gap selection was not logged. From the pocket geometry and the observed heading we infer that it chose a sideways opening and rocked in place; this inference is not a measurement, and the repaired controller logs every selection.
None of the four exists in the Python 2D mirror of the first version, which used distance-to-goal progress, a clearance of m on a m window and a subgoal that replaced the goal. The benchmark result of the first version, kept in Appendix B, therefore described an idealized design and not the plugin.
A defective distributed binary. Some distributed builds of nav2_mppi_controller negate cosine and sine in the batch rollout integration for part of the heading range, so the optimizer scores its samples at mirrored positions; a controller built on them commands motion away from the goal for some headings. The upstream report (RoboStack/ros-jazzy#290) names the interaction of fast-math with xsimd’s use of signed zeros as the suspected cause and was closed on 2026-10-10. The plugin carries a check, check_mppi_rollout, that compares rollout points of the library it loads with the closed form at a tolerance of 1 mm, and SafeEscapeController refuses to configure on a library that fails it. The check guards only SafeEscapeController: any other controller that loads the same library is unguarded. Run check_mppi_rollout on every target install (the apt binaries are untested), and never set se_enforce_rollout_check to false on a moving robot. The July 2026 runs used an affected build; whether that decided their outcome is not established. We did not use any result obtained on an affected build in the claims below.
6.2. Deployment Faults
Three integration faults surfaced in the live stack that the in-process unit tests did not catch, each reported as a deployment lesson:
- Static walls in the CBF. Feeding every inscribed-cost cluster (including static walls) into the CBF makes the barrier infeasible everywhere and freezes the robot. Scoping the CBF to clusters that the tracker classifies as dynamic (Section 4.5) stopped the wall freeze; it did not stop phantom admissions, which occurred in most live SE-MPPI trials (Section 6.5.1).
- Compute budget. The per-cycle budget must be matched to the host (horizon preserved, rate and batch reduced). The comment in the campaign parameter file records what happened on this host otherwise: the 20 Hz, 56-step, batch-2000 configuration ran at about 5 Hz, stalled the controller server’s executor past the 4 s lifecycle bond, and the lifecycle manager tore the whole stack down. With the stock bringup the bond timeout cannot be set from the parameter file. The released defaults (20 Hz, 56 steps, batch 1000) were not evaluated. Deployment warning: see the box in Section 7.
- xtensor ABI mismatch. The installed libmppi_controller.so is compiled with XTENSOR_USE_ XSIMD + AVX2 (an xsimd::aligned_allocator element type), whereas our plugin compiled xtensor with the default std::allocator. Because CriticData’s tensors cross the pluginlib boundary by reference, the first EscapeCritic write to data.costs was an ODR violation that segfaulted the entire Nav2 process on the first live escape injection (3/3 reproducible). The in-process unit tests never caught it, because they compile every translation unit with one consistent flag set. Fixed by compiling the critic against the installed headers’ flags (per-target, since a global AVX2 flip breaks the separately built OSQP–Eigen boundary); a regression test replays the injection path with live tensor shapes (test_escape_injection_live_shapes.cpp), and scripts/check_simd_abi.py checks the storage type in CI.
6.3. Headless Closed-Loop Development Test
Before any further live trial we built a headless closed-loop test that would have caught defects 2 to 4. It runs the real optimizer (batch 600, 28 steps, ) and the controller on a lifecycle node with a drawn costmap, integrates the commands on a unicycle at the control period, replans a straight path from the robot every s as the behavior tree does, and emulates the controller server by catching NoValidControl and applying zero velocity. It is the development loop for the escape.
Robot radius in the rig. The controller in the rig took its robot radius, m (logged as robot_radius=0.114 in every controller start line of the confirmation sweep logs, which lie outside the repository; per-log counts in experiments/campaign2/sweeps/robot_radius_lines.txt), from the default footprint of Costmap2DROS, which the rig does not set. The rig’s drawn costmap and its contact model use m; the live controller used m (Section 4.3). The radius enters the waypoint distance and the CBF disc, so for the same ray the waypoint of the rig lies m farther out than the live one. We did not change the rig.
Family rule. The test pockets are generated from a written rule, fixed in a committed file before the first run (test/deployment/UTRAP_DEV_GEOMETRIES.md). A pocket has width m, depth m, rotation and symmetric or asymmetric side walls (top wall at of the bottom wall): combinations. A combination is valid only if the straight start–goal path enters the mouth, start and goal are at least m from every wall, the straight line is blocked, and the pocket is not the live development scenario. The generator finds 56 valid geometries. Two primary geometries, outside the grid, gate the test (w22_d13_r30_a10 and w16_d15_r-15_a6). A run passes if the robot enters the pocket, leaves it within 60 s, reaches within m of the goal within 150 s, and has no wall contact and no NoValidControl throw. The development scenario s1_utrap is excluded from the family, and a guard test fails if the name of a held-out world appears in the repository outside the campaign directory.
Result and its status. The shipped controller passes 55 or 56 of the 56 valid geometries per sweep, and without additions (a) and (b) 14 to 18 in the three archived confirmation sweeps (19 in an earlier, unarchived sweep; Table 3). The additions were worked on until this family passed, so the family is a development set, not a test set. In addition to the family, the additions were developed on static gap tests at the stall pose of the live development scenario s1_utrap; that is a use of a live scenario in the design of a parameter, and the reason s1_utrap is a development scenario and not a test.
The twin of s3. The held-out campaign pocket s3_ctrap was specified before the tuning and authored by a separately prompted coding assistant from the geometry alone; it was not driven live and not run headless. It is not outside the family: reflected about it matches the family member w22_d15_r-25_a6 to within m in width, m in depth and in the wall ratio. The additions were worked on until that twin passed in the sweeps; run alone with the additions off, the twin also passed 3 of 3 (PREREG.md), so it is not evidence that the additions were needed for it. We therefore do not use s3 as the test of transfer; Section 6.5 uses a second held-out pocket that lies outside the family.
6.4. Randomized Benchmark on a Python 2D Mirror
Every quantitative result in this section comes from a Python 2D mirror, not from the Nav2 controller. The mirror re-implements the controller’s primitives in NumPy and OSQP [49]: the MPPI sampler, a repulsion of the same form with other parameters (Appendix), the ray cast, the look-ahead-point CBF-QP, the coordination with TTC override, and, in the version used here, the shipped escape: progress on an anchor path with simulated one-second straight replans, the horizon-ray selection with hysteresis, the frozen-waypoint hops, the one-cycle lag, and a zero-command mode when every rollout collides. The mirror keeps running after such a cycle, as a controller server with a failure tolerance of would, not as the campaign’s tolerance of 0; in the shipped arm one F trial on dynamic (a success) and one on narrowdyn (a collision) passed through such cycles, and no utrap trial did. A flag switches the four additions of Section 4.4 on (the shipped algorithm, variant v2) or off (the design as advised, variant v2_advised). A test calls the C++ selection, ray cast, progress chain and detector through a shim and compares them with the mirror; the hop state machine and the one-cycle lag were checked by reading only. The mirror still differs from the controller in the ways the Appendix lists: it computes geometry analytically against circular obstacles, gives the CBF and the TTC the true obstacle states, and uses its own cost. It does not run Nav2’s progress checker or behavior tree, so it is a controller-level benchmark. We re-ran the full benchmark, with the same families, seeds, configs and budget as the design-stage benchmark of Appendix B, on this mirror, so that the paper’s numbers describe the algorithm that ships.
Setup. Four seed-deterministic scenario families exercise the two weaknesses and their conjunction: utrap (a finite U/C pocket with the goal behind the back wall – a static local minimum), clutter (a random field of 5–9 circular obstacles with a guaranteed footprint-clear path), dynamic (1–2 pedestrian-like crossing movers timed to reach the robot’s path), and narrowdyn (the utrap pocket plus movers sweeping the pocket mouth during the escape window). Six configs toggle the mechanisms: A stock (no escape/CBF), C escape only, D CBF only, E escape+CBF with (independent), F full SE-MPPI ( + TTC override, coordinated), and F− (F with the gap search off). C and F− exist only in the mirror: the Nav2 overlays of the same names in experiments/configs/ablations.yaml (C_escape_detect, F_minus_gap) do not reproduce them under the shipped controller, which clears the shared entrapment flag while se_enabled is false and keeps its own opening search when the critic’s gap search is off; no Nav2 result for them is reported. Config A is stock MPPI without Nav2’s progress checker and behavior-tree recoveries [3,4], so it is a controller-level baseline, not the full Nav2 stack. Each family is a pure function of an integer seed, so every config is evaluated on an identical scenario set, as the paired McNemar design requires: paired trials per arm, 40 s sim budget each; these are 200 seeded worlds, each run under all six configs, so the trials are paired rather than independent. Success carries a Wilson 95% CI [50]; the primary test is McNemar’s [51] on paired outcomes; continuous metrics use the Mann–Whitney U test [52] with Cliff’s [53], an unpaired comparison that ignores the pairing, with time-to-goal and path length taken over successful trials only, so we read these as descriptive; all p-values are Holm–Bonferroni-corrected [54] within each family. The two arms (shipped v2, advised v2_advised) are 1,200 trials each, run at the commit named in the Appendix, with 6 workers.
The escape layer is the measured effect on the trap families. On both trap families the effect survives Holm correction (Table 7; per-config success rates in Table 5): success rises from (stock A, CBF-only D, and no-gap F− all time out in the pocket) to on utrap (40/50 discordant pairs, ) and to 60– on narrowdyn (30/50 discordant for F, ). F− scores on both trap families, as expected by construction: with the opening search off, the escape has no path to follow. Table 6 gives the headline of this section: with the four additions the U-trap success is (40 of 50), and without them (29 of 50). On narrowdyn the arms give and . Without the additions the escape still lifts U-trap success from to ; the additions raise it to . Paired by seed, 11 U-trap seeds succeed only with the additions and none only without them; on narrowdyn the split is 10 and 2. We ran no test between the arms, so this comparison is descriptive. The U-trap number is lower than that of the design-stage benchmark of Appendix B, and we report the lower number. On clutter the shipped escape raises success from to (0/10 discordant pairs, Holm-adjusted ), at the cost of about s longer average time-to-goal over successful trials; in the advised arm the gain is smaller (, not significant after Holm). On the pure-dynamic family, which contains no trap, the escape is neutral (stock→F: 0/2, ). Figure 2 gives the full per-family picture.
Table 5.
Randomized benchmark on the Python 2D mirror of the shipped algorithm (not the Nav2 controller): success rate in % (Wilson 95% CI), per cell, shipped arm v2. Configs A, D and F− do not use the opening selection or the hops (F− keeps detection and repulsion), so they are the same as in the advised arm.
Table 5.
Randomized benchmark on the Python 2D mirror of the shipped algorithm (not the Nav2 controller): success rate in % (Wilson 95% CI), per cell, shipped arm v2. Configs A, D and F− do not use the opening selection or the hops (F− keeps detection and repulsion), so they are the same as in the advised arm.
| Config | U-trap | Clutter | Dynamic | Narrow-dyn |
|---|---|---|---|---|
| A stock | 0 [0,7] | 52 [39,65] | 80 [67,89] | 0 [0,7] |
| C escape | 80 [67,89] | 72 [58,83] | 80 [67,89] | 72 [58,83] |
| D CBF | 0 [0,7] | 52 [39,65] | 82 [69,90] | 0 [0,7] |
| E indep. | 80 [67,89] | 72 [58,83] | 84 [71,92] | 60 [46,72] |
| F SE-MPPI | 80 [67,89] | 72 [58,83] | 84 [71,92] | 60 [46,72] |
| F− no-gap | 0 [0,7] | 52 [39,65] | 84 [71,92] | 0 [0,7] |
Table 6.
F (SE-MPPI) success in % (Wilson 95% CI) in the two arms of the re-run: shipped algorithm (v2) and the design as advised, without the four additions (v2_advised); per cell.
Table 6.
F (SE-MPPI) success in % (Wilson 95% CI) in the two arms of the re-run: shipped algorithm (v2) and the design as advised, without the four additions (v2_advised); per cell.
| Arm | U-trap | Clutter | Dynamic | Narrow-dyn |
|---|---|---|---|---|
| v2 (shipped) | 80 [67,89] | 72 [58,83] | 84 [71,92] | 60 [46,72] |
| v2_advised | 58 [44,71] | 62 [48,74] | 84 [71,92] | 44 [31,58] |
Table 7.
Key paired contrasts (McNemar, Holm-adjusted; discordant pairs, b = baseline wins, c = F wins), Python 2D mirror, shipped arm. The escape contrast is decisive on the trap families; the coordination contrast (E→F) is null everywhere.
Table 7.
Key paired contrasts (McNemar, Holm-adjusted; discordant pairs, b = baseline wins, c = F wins), Python 2D mirror, shipped arm. The escape contrast is decisive on the trap families; the coordination contrast (E→F) is null everywhere.
| Escape (stock→F) | Coord. (E→F) | |||
|---|---|---|---|---|
| Family | ||||
| U-trap | 0/40 | * | 0/0 | 1 |
| Clutter | 0/10 | * | 0/0 | 1 |
| Dynamic | 0/2 | 1 | 0/0 | 1 |
| Narrow-dyn | 0/30 | * | 0/0 | 1 |
6.4.1. Escape–Safety Coordination Is Null in This Regime
The load-bearing contrast for the C3 contribution is E (independent) vs. F (coordinated): identical mechanisms differing only in whether the CBF gain is coordinated with the escape phase. Across all 200 paired scenarios this contrast is null (Table 7, Figure 3): the discordant counts are in every family, McNemar , and every continuous effect size is . The same holds in the advised arm ( in every family, ). The gain does engage as designed ( during escape, TTC override active). The committed per-trial slack telemetry (slack_max in trials.csv; per-config rates in stats.json and tables.md) locates where the barrier actually works. On the mover-free families (utrap, clutter) the dynamic-obstacle CBF sees no obstacles at all: slack is zero in every trial, E and F issue identical commands, and the null there is structural. On narrowdyn the barrier does engage and even relaxes – the QP uses nonzero slack in trials for E and F ( for D and F−; max slack ) – and on dynamic in 47– trials (max ), yet the E-vs-F contrast stays null. The correct reading is that the outcomes are insensitive to the schedule: where the barrier is quiescent the two configs coincide exactly, and where it is active the base and escape gains admit escape maneuvers whose outcomes are indistinguishable at . In this 2D benchmark the coordination produces no measurable outcome difference over independent escape+CBF. The result is consistent with, and delimits, the Proposition of Section 4.6: coordination is a mechanism with a conditional invariance property, not, in these scenarios, an outcome improvement. An outcome-level benefit would require a regime where the choice of changes which escape maneuvers are admitted at outcome-deciding moments – faster or persistent movers, tighter margins, a dynamic gap the escape route must thread while the barrier is live; this generator’s pedestrian-like movers produce barrier engagement but not that sensitivity. The live campaign cannot test it either, because its pockets contain no dynamic obstacle. Constructing and measuring that regime is future work (Section 7).
Two CBF observations bear on Section 7. Against body-grazing crossers (dynamic) the look-ahead-point filter leaves the collision rate essentially unchanged (; descriptive – the committed analysis carries no paired collision-outcome test). And in the cramped narrowdyn pocket the CBF configs show a higher collision rate than their no-CBF counterparts (, descriptive) and cost 12 pp success (; success McNemar F vs. C: , raw , Holm-adj. – directionally consistent though not significant after correction at ).
6.5. Pre-Registered Live Campaign 2
Question. Does the repaired controller escape a pocket live, in a full ROS 2 Jazzy + Nav2 + Gazebo stack? The pre-registration (experiments/campaign2/PREREG.md) was frozen on 2026-10-18, before any counted trial, with the controller, the parameter file, the worlds, the plan and the analysis code listed with their sha256 in a manifest and marked by the local tag campaign2-controller. Every trial records the commit, the build stamp, the hashes and the installed libraries; the driver refuses a trial whose installed files differ from the frozen ones.
Design. The testbed is a walled arena. The start is and the goal in every scenario. The localization map is an empty box, so the pocket is absent from the planner’s map: the global planner draws a straight path into the pocket, and only the controller can get the robot out. Four scenarios:
- s1_utrap: a pocket m wide and m deep; the development scenario.
- s3_ctrap: a three-wall pocket with an oblique back wall, m wide and m deep, rotated . Held out in a limited sense: not driven live, not run headless, authored by a separately prompted coding assistant that saw only the geometric specification, but it has a near mirror twin in the development family (Section 6.3). Reported, not decision-bearing.
- s4_ltrap: an L-shaped dead end (Figure 4). The author specified it before anything was run on it; a separately prompted coding assistant that saw only the geometric specification, and not the controller, the family rule, the tuning or the campaign-1 analysis, wrote the world. The specifier (the author) knew the design, so only the world file was authored blind. Its corridor is m deep against m for s1_utrap, the deepest development pocket: m, 11 percent deeper, and it has a closed bent leg, a shape the family does not contain. It lies inside the family’s span in width ( m) and rotation (). It also fails the family’s rule V1 (the straight line enters the corridor with a margin of m, not m). It carries the claim of transfer.
- s0_open: the testbed without the pocket; a control for false escapes and for the health of the stack.
Four configurations cross the controller with the behavior tree: C1, stock MPPI with Nav2’s default recovery tree; C2, SE-MPPI with that tree; C3, stock MPPI with a replanning-only tree in which the first FollowPath failure ends the goal and the progress-checker allowance is 30 s; C4, SE-MPPI with that tree. Stock MPPI in C1 and C3 is the SafeEscapeController plugin with se_enabled false and without EscapeCritic in the critics list: it passes the MPPI command through unchanged and still enforces the rollout check; it is not a separate stock plugin. The parameter file is the campaign-1 file with reversing allowed (vx_min ), Nav2’s default failure_tolerance of 0 and progress checker ( m in 10 s), and the MPPI block unchanged (10 Hz, 28 steps, , batch 1500, inflation m). C1 and C2 run on s0, s1 and s3; C3 and C4 on all four; six repetitions per cell. Trials ran in a pre-registered fixed order, not a random one: the cell order rotates by one position per repetition in Phase A and by two in Phase B (plan.py). In Phase A the order on s1 was C4, C3; C3, C4; C4, C3 for repetitions 0 to 2, then C4 alone for repetitions 3 to 5. The plan has 88 trials: Phase A (the gate: C4 on s1 six times and C3 on s1 three times, 9 trials) and Phase B (79 trials, which include 4 uncounted evidence trials and the 12 trials on s4). The driver refuses Phase B and every trial on s3 and s4 until Phase A is complete and its gate has not fired. If C4 on s1 reaches the goal in 1 of 6 or fewer, the campaign stops. A trial starts only when the one-minute load average is below at two checks 30 s apart and the busy CPU over those 30 s is below core, and it is valid if the foreign CPU averages at most core and stays at most cores in every 30 s window.
Host and tolerances. Every trial ran on one workstation, under WSL2, with an AMD Ryzen 5 5500GT (12 threads) and simulated time (use_sim_time). The control loop was paced by the wall clock, not by simulated time: over the 46 SE-MPPI trials the controller ran to cycles per wall-clock second and to per simulated second (post hoc, experiments/campaign2/CBF_ADMISSIONS.md). Each rate divides the cycles between the first and the last 1 Hz diagnostics message with a nonzero cycle count by the time between them. The loop stops when the goal ends, inside the last one-second interval, so that interval usually holds fewer than ten cycles and both rates are biased low, most in short trials; the lowest values () come from four s0_open trials. This is a property of the estimate, not a measured slowdown of the loop. The timers that count cycles (the stall window, the watchdog and the re-selection period) were therefore wall-clock durations, a few percent shorter in simulated time. On a robot the two clocks coincide. Over all 88 trials the stack used to cores on average per trial, the peak one-minute load average was to , and the lowest real-time factor over a 10 s window was ( in the SE-MPPI pocket trials; same file, inputs from results.json.gz); only the 12 C1 pocket trials logged missed control cycles (2 to 5 each). The parameter file loosens tolerances for the lag of the simulated transform tree: transform_tolerance s on the controller, the costmaps, the behavior server and the collision monitor ( s for AMCL). It sets source_timeout of the collision monitor to s for a different reason, which its comment records: on this host the scan lagged simulated time by more than 1 s under load, and at s the monitor declared the source invalid and set cmd_vel to zero in the middle of an escape. Campaign 2 did not measure scan age, which is also the input of the costmaps and the tracker. The collision monitor stayed in the command chain (cmd_vel_smoothed to cmd_vel); its log in the 88 trials holds no line above INFO level (CBF_ADMISSIONS.md). Do not copy these values to a robot, and measure the sensor latency on the target. The only collision_monitor polygon is disabled (enabled: False), so the live results had no active collision_monitor zone. It was disabled in the earlier smoke tests because its approach polygon (time_before_collision s) slowed the robot almost to a stop in the narrow testbed rooms (RUN.md). No escape, live or headless, ran with an active approach polygon. Deployment warning: see the box in Section 7. The MPPI cost critic ran with consider_footprint false, a point robot behind an inflation radius of m, at least the m radius of the circular simulated robot; a robot with a non-circular footprint needs consider_footprint true and its own validation.
Success criterion. A trial reached the goal if the Gazebo ground-truth position of the robot is within m of the goal at the end of the drive and the chassis never touched a wall (distance at least m in every sample). Nav2’s own SUCCEEDED is recorded and not used.
Analysis and decision rule. Counts per cell with Wilson 95% intervals; two-sided Fisher exact tests [55] for C4 against C3 (s1, s3, s4 separately), C2 against C1 (s1, s3), and C4 on s3 and on s4 each against C4 on s1 (transfer): seven contrasts at a level of , no correction, no pooling over scenarios. Only two of them decide the branch, each once. The hypothesis on a pocket is yes if and only if the Fisher p of C4 against C3 on it is below and C4 reached the goal more often. The branch demonstrated requires yes on s1 and yes on s4; s3 does not change the branch; no on s1 is not demonstrated whatever s4 shows. Requiring both s1 and s4 to be yes is an intersection-union test, so the probability of the branch demonstrated is at most without a correction whenever at least one of the two pockets has no effect. Because s1 is a development scenario, its yes is not confirmatory, and the evidence of transfer is the s4 contrast alone (). With six trials a cell, C4 at 5 of 6 against C3 at 0 of 6 gives and 4 of 6 gives . The comparison of C2 with C1, the control, the transfer contrasts and all time comparisons are descriptive. The wording for each branch was copied before the trials from the design advice into the pre-registration.
Amendments and deviations. Every amendment is dated in the pre-registration. We list them all, because one was written after counted trials had run.
- Amendment 1 (2026-10-18, before any trial). The author accepted additions (a) to (d) as the shipped algorithm and added s4_ltrap, with C3 and C4 on it, because s3_ctrap has a twin in the development family; the plan grew from 76 to 88 trials and the decision rule moved the claim of transfer to s4.
- Driver import failure (2026-10-22, before any trial). The first start of Phase A ended at once with an AttributeError: the driver imported the analysis script of campaign 1 instead of its own. No simulator or trial ran. Amendment 2 fixed the import by file path and added a regression test; the analysis rules, plan, worlds, controller and thresholds did not change.
- Provenance refusal (2026-10-22, after the first counted trial). After the first trial (C4 on s1, repetition 0) the provenance check refused the next one, because Python had written a bytecode cache into the installed, frozen launch directory. The author deleted the cache and made the directory read-only. No frozen file, code, parameter or environment variable changed, and the trial stayed counted, because it ran on a verified install.
- Amendment 3 (2026-10-22), post hoc. The stopping rule for a controller crash fired after the counted trial s4_ltrap C3 repetition 0 (Section 6.5.1). The amendment was written after the rule had fired and changes how the rule reads the evidence: a launched process that exits with a non-teardown code is a teardown crash, reported and not stopping the campaign, only if the process itself logged the termination signal inside the teardown window and before the launch logged its death; every other death stays a controller crash. Without the amendment the registered rule would have stopped the campaign at that point, and the remaining trials would not have run under it. It also departs from the rule “no source change after trial 1”: the analyzer, the driver’s two teardown time stamps, the provenance module and the manifest module changed; the controller, plan, worlds and parameters did not. The tag moved with it, so trials recorded before it carry the earlier freeze identity, which the analysis accepts for exactly that earlier set. It was written after 16 counted trials, all at the tag commit 012f4f1. At that point the author knew these outcomes: on s1, C4 complete at 5 of 6, C3 failed in repetitions 0 to 2, C1 0 of 1 and C2 0 of 1; on s3, C1 0 of 1, C2 1 of 1, C3 0 of 1 and C4 1 of 1; on s4, C3 0 of 1 (the crash trial). No C4 trial on s4 had run. All six C4 trials on s4 and C3 repetitions 1 to 5 on s4 ran after the amendment, so the s4 contrast exists only under the amended rule. The registered rule required stopping the campaign or restarting it as attempt 2; we did neither. From 012f4f1 to 6a50723, the diff of analyze.py touches the classification of crashes, the identity check that accepts the earlier trials, one recorded start time and the report sections; it does not touch the outcome logic (reached, contact, cells, contrasts, decision).
6.5.1. Results
All 88 trials ran and were valid; no attempt was invalidated by host load. The whole-drive real-time factor was between and . Table 8 gives the counts, and Table 9 the contrasts. No trial had a wall contact. SE-MPPI logged an escape in every pocket trial of C2 and C4 before the chassis left the pocket polygon, and no pocket trial reached the goal without an escape; the SE trials had no optimizer failure, no missed control cycle and invoked no recovery.
The pre-registered rule selects the branch demonstrated: C4 against C3 is yes on s1 and yes on s4. The pre-registered wording for that branch, copied from the design advice and quoted here verbatim, is:
“SE-MPPI without recoveries reached the goal in k of 6 on s1 and k’ of 6 on the held-out s3; stock without recoveries in 0 of 6; with Nav2’s default recovery tree, stock m of 6 and SE-MPPI m’ of 6”, Fisher exact p per contrast, counts and Wilson intervals only, “on one simulated host”. s1 is the development scenario; s3 carries the claim. Section 4.4 and the abstract’s “no live run has yet reached its goal” are replaced; the pilot’s host attribution is withdrawn (campaign 1: RTF 0.96).
The pre-registration says to read “the held-out s3” and “s3 carries the claim” as s4_ltrap, and as the count of C4 on s4 (amendment 1). Filled with the counts of Table 8: SE-MPPI without recoveries reached the goal in 5 of 6 on s1 and 5 of 6 on the held-out s4; stock without recoveries in 0 of 6; with Nav2’s default recovery tree, stock 0 of 6 and SE-MPPI 3 of 6, on one simulated host (the two counts under the default tree are on s1). The Fisher exact p values are in Table 9, and the Wilson intervals in Table 8. s1 is the development scenario; s4 carries the claim. The earlier statement that no live run has reached its goal is replaced, and the host attribution of the July runs is withdrawn (campaign 1: real-time factor between and ).
Reading, and what it does not show. The two contrasts that decide the branch have each, with five of six against zero of six. A single failure more in the SE cell would have given and no claim, so the result is as narrow as six repetitions allow, and the Wilson interval of 5 of 6 is . Three results are not significant and are not claims of effect: C4 against C3 on s3 (4 of 6 against 0 of 6, ; the pre-registered rule marks this “no”, and the pre-registered sentence requires that both be reported); C2 against C1 on s1 (3 of 6 against 0 of 6, ) and on s3 (2 of 6 against 0 of 6, ). In particular the live data do not show that SE-MPPI helps inside Nav2’s default recovery tree beyond what six trials can resolve: the direction is favourable and the intervals overlap. Forced stops without a moving body. No pocket held a moving body, yet the brake fallback of Section 4.5 (linear velocity, forward or reverse, set to zero at the controller output for one control cycle of about s) fired in at least 16 of the 18 SE pocket trials on s3 and s4 (all 12 on s3, 4 of 6 on s4). After the velocity smoother (20 Hz, maximum deceleration m/s2, from the committed YAML) the command sent to the base drops by at most about m/s per braked cycle, so the smoother’s deceleration limit and rate bound the effect of the brake on the command (the smoother runs open loop and the base speed was not measured here; braked cycles in a row add up). The QP failure counter is 0 in all 88 trials, so every forced stop was a brake on barrier slack, not on a solver failure. The counts come from the last diagnostics message of each trial, which the controller publishes once per wall-clock second, so stops in the final second are missing and the counts are lower bounds. The count of forced-stop cycles at the last diagnostics message of each trial was, per repetition: s3 C2 ; s3 C4 ; s4 C4 ; and zero in every s1 trial and on s0_open. The filter returns the nominal command unchanged when the tracker admits no obstacle, so a forced stop means that the tracker admitted phantom obstacles: costmap clusters that passed the is_dynamic veto, the speed threshold and the radius limit of m. Admissions were not limited to pockets. The diagnostics field cbf_obstacles, the number of obstacles passed to the CBF in the last control cycle before the message (sampled once per wall-clock second, so the counts are lower bounds), was above zero in at least one sample in 42 of 46 SE-MPPI trials (evidence trials included), among them 8 of 12 on s0_open, with at most 2 obstacles in a sample; forced stops occurred only on s3 and s4 (post hoc, experiments/campaign2/CBF_ADMISSIONS.md, from the raw archive). An admitted obstacle that needs no slack can still change the QP’s without a stop; no diagnostic records whether it did, so we do not know how often the CBF altered commands. This was not a designed test of the coordination, and we did not test whether the stops or the admissions changed any outcome. Deployment warning: see the box in Section 7. On the trap-free control s0_open all 24 trials reached the goal and SE-MPPI logged no escape. The transfer contrasts are descriptive: C4 reached the goal in the same number of trials on s4 as on s1 (5 of 6), but its median wall-clock time to goal over reached trials (the registered measure) was s on s4 against s on s1 (exact Mann–Whitney , descriptive); in simulated time the medians are s and s.
Trials that Nav2 called successful but did not reach the goal. Of the 88 trials, 13 are counted NOT_REACHED_ABORTED although Nav2 reported SUCCEEDED: 11 registered trials (3 of C2 and 1 of C4 on s1, 4 of C2 and 2 of C4 on s3, 1 of C4 on s4) and the 2 evidence trials. In every one the robot’s Gazebo ground-truth distance to the goal at the end of the drive was above m, between and m. The two definitions differ. The goal checker of Nav2 has a tolerance of m and works from the localization pose, an AMCL estimate on a localization map that is an empty box; the distance it printed at the end of these trials was between and m. The analyzer takes the ground-truth position. Table 11 (from experiments/campaign2/odom_gap.py, a post hoc script outside the freeze) shows that in these trials the ground truth and the localization estimate disagree by to m and that the wheel odometry, shifted to the start pose, disagrees with the ground truth by to m. Wheel odometry and the AMCL estimate drift away from the ground truth in the SE pocket trials, after the turns and reversals of an escape. Table 10 extends the comparison to all 88 trials (post hoc, same script). We did not isolate the physical cause (wheel slip, the odometry plugin or another). The estimate does not simply follow the odometry: in the six C1 trials on s1 the AMCL estimate is to m from the ground truth while the odometry is at most m from it. In the SE pocket trials the controller’s output reached its limit (wz_max rad/s) in 11 of 34 trials, all on s3; the command that reaches the base, after the velocity smoother, peaked at to rad/s. In the stock pocket trials both signals stay at or below rad/s (C1) and rad/s (C3). The pocket-exit time left_pocket_s is set in all 34 SE pocket trials (30 registered, 4 evidence) and in none of the 30 stock pocket trials. These trials count as not reached, so the counts in Table 8 are conservative with respect to Nav2’s own report: counting Nav2’s SUCCEEDED would give 6 of 6 for every SE-MPPI cell, which we do not claim. Deployment warning: see the box in Section 7. The limits of this campaign (wz_max rad/s; velocity smoother rad/s and rad/s2) are those of the simulated robot.
Teardown crash. One process died with a non-teardown exit code, in s4_ltrap C3 repetition 0, a stock-controller trial that had already ended in NOT_REACHED_ABORTED. The driver’s teardown signal reached the processes s after the drive ended and s before the trial ended. The launch log then shows, in this order: the cleanup of the MPPI controller; the bond-timeout path of the localization lifecycle manager (“SERVER map_server IS DOWN”, “Terminating bond timer”); a SIGSEGV message from the image library’s signal handler, which carries no timestamp; and the exit of the composed container (component_container_isolated) with code . This is the only such death in the campaign, and the one on which amendment 3 was decided; that amendment classifies it a teardown crash, and RESULTS.md lists it per trial. We make no claim about its cause. On a robot, a crash of the composed container stops all navigation nodes that it hosts; use a respawn policy or a non-composed bringup.
7. Limitations
Deployment warnings. Read these before running the controller on a robot. (1) Measure the controller rate. Match the per-cycle budget to the target and check the achieved rate (Nav2 warns when the controller misses its desired rate); expect a lifecycle teardown when the executor starves (Section 6.2). (2) Check the build. Run check_mppi_rollout on every target install and never set se_enforce_rollout_check to false on a moving robot. (3) Expect phantom obstacles. A robot can be slowed, turned, stopped or deflected by obstacles that do not exist, in open space as well as in a pocket; read both the forced-stop counter and cbf_obstacles of the diagnostics on the target map (Section 6.5.1). (4) Do not trust Nav2’s success message after an escape without an independent check of the pose; the limits of the campaign (wz_max, velocity smoother) are those of the simulated robot, so a robot with other limits needs its own measurement. (5) Validate the collision monitor and the footprint. If you enable the collision_monitor polygon, as we advise, test escapes again, because the monitor may slow or stop the turns in a pocket; a robot with a non-circular footprint needs consider_footprint true and its own validation. (6) Setting the CBF radius moves the escape waypoint. (7) Do not copy the campaign tolerances (transform_tolerance, source_timeout) to a robot.
- Simulation only, one host, no real robot. Every live result is a simulated robot in Gazebo on one workstation (WSL2, Ryzen 5 5500GT, 12 threads, simulated time; whole-drive real-time factor to ). We ran no real robot and no second host. The claim is limited to the pre-registered wording: counts, Fisher p values and Wilson intervals, on one simulated host.
- Six repetitions per cell. The decisive contrasts are 5 of 6 against 0 of 6 (), the smallest effect that clears the pre-registered level at this size; one more failure would have given . The Wilson interval of 5 of 6 is . The comparison with Nav2’s default recovery tree (C2 against C1: 3 of 6 against 0 of 6 on s1, 2 of 6 against 0 of 6 on s3) is not significant, so the live data do not establish an advantage inside the default tree. The seven contrasts use no correction for multiple tests; only two decide the branch.
- The additions were found on the development family. The four additions of Section 4.4 were worked on until the 56 development geometries passed, and the advised design without (a) and (b) passes 14 to 18 of 56 in the three archived confirmation sweeps (19 in an earlier, unarchived sweep). The 56 of 56 is a development result. MPPI’s noise cannot be seeded from the test, so each sweep is one independent process, and a geometry’s outcome without the additions depended on its position in the sweep. The mirror benchmark without the additions gives a lower success on the trap families than with them (Table 6; on U-trap against , descriptive): the advised design already lifts U-trap success from , and the additions add to it. The pre-registration file PREREG.md is frozen and not edited. It lists only the use of the m value on horizon candidates as an addition (line 147), whereas the shipped controller also uses it as a threshold on horizon rays and on the longest-ray fallback (addition (d)). It lists the failed list among the parts left on (line 202), whereas in the joint ablation (hop radius m) the failed list excludes no rays, so (a) is off as a whole there.
- Held-out status.s1_utrap is the development scenario, and static gap tests at its stall pose helped set the additions. s3_ctrap has a near mirror twin in the development family and is not decision-bearing; its result (4 of 6 against 0 of 6, ) is not significant. The claim of transfer rests on one pocket, s4_ltrap, which lies outside the family by depth (by m, 11 percent) and shape but inside its span in width and rotation. One pocket shows that the controller escaped a geometry that the design did not see; it does not show that it does so for pockets in general.
- Nav2’s own report and the localization estimate. 13 of 88 trials ended in Nav2 SUCCEEDED with the robot to m from the goal in the ground truth (Section 6.5.1). Wheel odometry and the AMCL estimate drift after the turns and reversals of an escape, and the goal checker works from that estimate. We count these trials as not reached, which makes the live counts conservative, but a deployment that relies on the estimate would see the controller report success before the robot is at the goal. We did not isolate the cause. Reached trials drifted too: in the 21 SE pocket trials that reached the goal (19 registered and 2 evidence trials), the odometry is to m and the AMCL estimate to m from the ground truth at the end of the drive, so the reached count mixes escape with end-of-drive localization error.
- The no-valid-control update cannot act under Nav2’s default failure tolerance. With failure_tolerance 0, as in all configurations of campaign 2, the controller server resets every controller when the optimizer throws, so the detector update on a throw (defect 2 of Section 6.1) acts only when the server tolerates the failure (a tolerance of , or a positive tolerance that has not yet run out, after which Jazzy’s server aborts with PatienceExceeded). Campaign 2 did not exercise it, and its pass rule in the headless test requires zero throws.
- Pre-registration is self-hosted. The pre-registration was not deposited with a third party. The freeze dates can be checked only through the local commit history (ac0a4eb for the freeze, c6a144e and 012f4f1 for amendment 2, 6a50723 for amendment 3); the tag moved twice. The reader must trust that history.
- Option B is out of scope. The controller does not emit its own command when every rollout collides, for example when the footprint is already inside the inflated band. Then the optimizer throws and the detector runs. Only when the server tolerates the failure (a tolerance of , or a positive tolerance that has not yet run out) is an escape path handed to MPPI, in the next cycle; under the campaign’s tolerance of 0 the server resets the controller in the same cycle. In either case MPPI cannot produce a command in the cycle that throws. No headless run and no campaign-2 trial threw, with reversing allowed.
- The post hoc amendment. Amendment 3 was written after a stopping rule fired once, and the crash it concerns happened in the shutdown of a stock-controller trial. It changes how that rule reads the evidence and departs from the rule of no source change after trial 1. Its effect is that the remaining trials ran, among them every C4 trial on s4, the pocket that carries the claim of transfer. The cause of the crash is not known. The crash scan also does not read the launch log of an interrupted or incomplete attempt, a gap older than the amendment.
- Released defaults and loosened tolerances were not evaluated live. The released parameter file uses 20 Hz, 56 steps of s and batch 1000; the campaign used 10 Hz, 28 steps of s and batch 1500. The stall window is 30 cycles in both, so it is 3 s in the campaign and s at 20 Hz; the watchdog and the re-selection period are also counted in cycles, so all three stretch when the loop misses its rate. We did not evaluate the released defaults live; on this host a 20 Hz configuration with batch 2000 ran at about 5 Hz and lost the lifecycle bond (Section 6.2). The campaign also loosened transform_tolerance ( s) and source_timeout ( s); do not copy them to a robot. The only collision_monitor polygon was disabled, so no collision_monitor zone was active in any live result.
- Builds. The live results come from the correct RoboStack build of the MPPI library (Table 4). Some distributed binaries roll trajectories out in the wrong direction; the July 2026 runs and 4 trials of campaign 1 used one, and we do not use them. The check the plugin carries covers the batch rollout integration, the known defect, and not every function of the library, and it guards only SafeEscapeController. Run check_mppi_rollout on every target install (apt binaries are untested), and never set se_enforce_rollout_check to false on a moving robot. Humble’s distribution was not evaluated: every reported result comes from the Jazzy stack or the 2D mirror. The repository README records that the plugin builds on Humble behind a compile-time switch, that Humble’s controller server never calls reset(), so a goal end does not clear the escape memory, and that the RoboStack Humble MPPI builds it checked roll out in the wrong direction.
- Mirror versus controller. The mirror transcribes the shipped escape, but it differs from the C++ controller in its progress signal with simulated replans, its analytic circular geometry, its cost, and in giving the CBF and the TTC the true obstacle states, so the costmap tracker is not exercised (Appendix). The trials are 200 seeded worlds under six configs, not independent scenarios. Success is tested with paired McNemar tests, but the continuous metrics use unpaired Mann–Whitney tests conditioned on success, so they are descriptive.
- Coordination benefit is unmeasured, not established. The escape–safety coordination (C3) has the conditional invariance property of Section 4.6 but produced no outcome difference over an independent escape+CBF stack in the mirror (Section 6.4.1), and campaign 2 does not test it: its pockets hold no moving body. The tracker nevertheless admitted phantom obstacles in 42 of 46 SE-MPPI trials, including 8 of 12 on the trap-free s0_open, and the brake fallback forced stops on s3 and s4 only (up to 16 cycles in one trial; Section 6.5.1). Whether admissions without a stop altered the commands was not logged. That was not a designed test of the coordination. The idea of adapting the CBF gain online is not new [15,29,31]. Demonstrating an outcome-level benefit requires a regime where the choice decides which escapes are admitted.
- Braking is not a safe fallback when cornered. In the cramped narrow-dynamic pocket the infeasible-QP fallback () leaves the robot in the path of a sweeping mover, and the CBF configs measured a higher collision rate than their no-CBF counterparts (; Section 6.4). A cornered robot needs an evasive fallback, not a stop.
- Look-ahead-point vs. full-body safety. The Proposition of Section 4.6 concerns the look-ahead point P, not the full robot body. Body safety is therefore approximate: the offset places P at the robot’s leading edge, and the costmap obstacle critic covers the residual; in the live campaign no collision_monitor zone was active, so it covered nothing. A full-body guarantee would require inflating the margin by L, which we avoid because it over-constrains sub-meter gaps and would degrade the success rate. On the dynamic family the look-ahead filter left body-grazing collisions essentially unchanged (, descriptive).
- Sampled-data and slack caveats. Invariance between samples, and a Carathéodory closed-loop solution along which is absolutely continuous (under the switched, discontinuous command), are assumed in the Proposition, not proven, and the shared slack couples the rows of one solve; we report slack usage instead of claiming an unconditional guarantee. Static structure is outside the barrier, and in cycles with the braking fallback sets the linear velocity of the QP command to zero (Section 4.5).
- Constant-velocity tracker. The dynamic-obstacle model evaluated in this paper is a replaceable constant-velocity baseline; rotating or accelerating agents are mispredicted and prediction uncertainty is unquantified, and an obstacle that leaves the tracked, unpruned set also leaves the barrier (Section 4.6). The controller that ran live carries an occupancy-based static/dynamic classification, persistent tracks with horizon prediction, and an online conformal bound that inflates the CBF effective radius. The campaign parameter file does not set se_classify_static, se_predict_horizon or se_conformal; their code defaults are true, so all three were on in every live SE trial. They are the subject of follow-up work (SE-Predict) and none is present in the mirror behind the quantitative results reported here. C4 and the tracker description of this paper hold for this configuration only.
- Baselines and scale. We ran no full-scale 3D physics benchmark (BARN, DynaBARN, HuNavSim [56,57,58]) and no run of DRPA-MPPI, GP-MPPI, a gap-based planner or an adaptive-gain CBF [10,12,23,29]; we make no comparison to them. The only stack-level baseline is Nav2’s default recovery tree around stock and SE-MPPI in campaign 2.
- TTC, real time, localization. TTC is a one-dimensional approximation; per-call QP cost grows with the obstacle budget (capped by clearance pruning); the tracker stamps a costmap frame in the control cycle that first sees it, so its velocity estimates carry the jitter of that rounding and, on a robot, the costmap latency; localization in symmetric or narrow maps can jump and perturb progress estimation.
8. Conclusion
SE-MPPI is a system that packages local-minima escape and control-barrier-function safety, two problems that several prior works also address together outside Nav2, in a single Nav2 controller plugin: a shared entrapment signal drives an escape that hands MPPI a path to an opening and an output-time CBF filter, and a coordinated gain raises the barrier’s class- gain during escape, which, by a standard argument for time-varying gains, keeps the look-ahead point’s safe set with respect to the tracked dynamic obstacles forward invariant, assuming a Carathéodory closed-loop solution along which is absolutely continuous, that the barrier inequality holds between control updates, and that the QP uses no slack.
The first version did not reach the goal live: 0 of 44 valid trials on a correct build. Four defects explain it (one is inferred, not logged), and the repaired controller carries four additions to the advised escape, two needed together for the development sweeps to pass (ablated jointly, confounded with position in the sweep) and two safeguards for other configurations; all four are disclosed, with a joint ablation of the first two. In the pre-registered campaign on one simulated host (one post hoc amendment to its crash-stop rule, after which all s4 SE-MPPI trials ran), SE-MPPI without recoveries reached the goal in 5 of 6 on s1 (Wilson 95% interval ) and 5 of 6 on the held-out s4; stock without recoveries in 0 of 6 on each; with Nav2’s default recovery tree, on s1, stock 0 of 6 and SE-MPPI 3 of 6. The Fisher exact p of the two decisive contrasts is . s1 is the development scenario; s4 carries the claim. The third pocket, s3, gave 4 of 6 against 0 of 6 (), which is not significant. The result does not rest on a real robot, a second host or more than six repetitions per cell.
A randomized, paired -trial benchmark on a Python 2D mirror of the shipped algorithm shows the escape raising success on the U-trap family from to , and to with the four additions switched off (a second arm of trials on the same 200 seeded worlds), while the escape–safety coordination is indistinguishable from an independent escape+CBF stack there, which we report as a null. We addressed three integration faults that surfaced in the live stack – static-wall CBF infeasibility (the wall freeze stopped; phantom admissions remained), host-matched compute budgeting, and an xtensor ABI mismatch – and we guard against a defective distributed MPPI binary. The remaining steps are a real robot, more repetitions and pockets, a test of the coordination in a regime where it can matter, and a full-scale physics benchmark against the baselines of Section 2.
Appendix A. Reproducibility
All paths below are relative to the code release of contribution C5 (footnote in Section 1). The commits and tags below are local to the repository at the time of writing.
Software. ROS 2 Jazzy, Nav2, and Gazebo are installed via RoboStack (conda channels robostack-jazzy + conda-forge) by the committed script scripts/setup_ros2_env.sh, which also pulls osqp-eigen/eigen for the CBF-QP [49] and the toolchain. A new environment must resolve to the jazzy_25 package set, whose nav2_mppi_controller is 1.3.13 build _25; ros2 run nav2_se_controller check_mppi_rollout must print OK. The package list in experiments/results _pilot_rerun/env_correct.txt is the campaign-1 snapshot of the environment that campaign 2 also used (same environment name in each trial’s meta.json); each campaign-2 trial records only the key builds and the check_mppi_rollout result in its meta.json. The Python 2D mirror, the benchmark, its report and the figure script need no ROS; their environment is experiments/benchmark2d/ environment.yml (Python 3.12.13, numpy 2.4.6, osqp 1.1.3, scipy 1.18.0, matplotlib 3.11.0).
Tags and commits. The commits, the tag and the raw-data archive named here are local to the author’s repository at the time of writing and are not published (the tag was never pushed). A release ref will be published before submission; the commit of the local tag campaign2-controller is the provenance. The controller of the live campaign is that commit. Trials 1 to 16 of campaign 2 ran at 012f4f1 (the tag before amendment 3), the later ones at 6a50723; src/, experiments/sim and the campaign worlds are identical at the two commits. The confirmation sweeps of Table 3 ran at b7e012a, whose controller sources are those of 507173a; against the tag, src/ at b7e012a differs in one comment of the test rig. The full hashes of every commit named in this paper are below. The mirror re-run ran at 742a3df (the commit that also added the campaign-2 analysis outputs); its results are in 0388854. Run the commands below at the release ref: the runner, the mirror and the report are unchanged since 742a3df, while the figure script (legend layout and a command-line entry), the fallback-threshold script and the environment file come from 11b30b7. The design-stage benchmark of Appendix B, with its figures, was generated at the tag paper-v1; the current figure script does not rebuild those figures byte for byte, because their legend layout changed.
campaign2-controller
6a5072324d2ca60785049279588b5bd7204c86ea
mirror re-run (code)
742a3df16d2d9f0adb617b9c020dc64962b2dfe1
mirror re-run (results)
0388854d74d6880002972b5932eafd7a44abb8d7
paper-v1
b21b0a546f36804a2af7d44e0f2e98ba1c235cac
campaign trials 1-16 (tag before amendment 3)
012f4f1db11de8ce607854578cb99ab932bf3969
confirmation sweeps
b7e012a7473ad1cf3014c4a7ab53afccb16a8661
controller sources of the sweeps
507173a2a45bef81020029ece9078278ee39ad18
figure script, fallback script, environment
11b30b78e06ff36eece8bb0d162e1d52e37aae7f
pre-registration freeze
ac0a4ebfe908fda24da21cf7a98dd1ddc227ea9c
amendment 2
c6a144ee1d080805f2f349cf71c76e818a2a90aa
Mirror re-run (both arms). Environment: experiments/benchmark2d/environment.yml. The trial results are deterministic. The runner resumes by default and skips scenarios already in its output file, so a rerun needs --no-resume and a fresh output directory; the commands below write to /tmp and compare with the committed files.
for arm in v2 v2_advised; do
python3 -m experiments.benchmark2d.runner --variant $arm \
--families utrap clutter dynamic narrowdyn -n 50 \
--workers 6 --max-steps 400 --no-resume \
--out /tmp/mirror_$arm/trials.csv
python3 -m experiments.benchmark2d.report \
--trials /tmp/mirror_$arm/trials.csv \
--out-dir /tmp/mirror_$arm
python3 -m experiments.benchmark2d.compare_v1_v2 \
/tmp/mirror_$arm/trials.csv \
> /tmp/mirror_$arm/COMPARE_V1.md
# committed: experiments/results_2d_$arm
sort /tmp/mirror_$arm/trials.csv > /tmp/new.csv
sort experiments/results_2d_$arm/trials.csv > /tmp/old.csv
cmp /tmp/new.csv /tmp/old.csv && echo "$arm: identical"
done
python3 -m experiments.benchmark2d.figures \
--trials experiments/results_2d_v2/trials.csv \
--out-dir docs/papers/latex/figures \
--suffix _v2
B=experiments.benchmark2d
A=experiments/results_2d_v2_advised
python3 -m $B.advised_fallback_threshold \
-n 50 > $A/FALLBACK_THRESHOLD.md
The runner refuses to write either arm to experiments/results_2d/trials.csv. The determinism check regenerates the design-stage variant (--variant v1) over all trials; every row equals a row of the committed experiments/results_2d/trials.csv (row order differs, because the pool returns scenarios in completion order); the note is experiments/results_2d_v2_smoke/FULL_RERUN.md. Each arm’s directory holds trials.csv, tables.md, stats.json, summary.csv and COMPARE_V1.md (written by compare_v1_v2, as above). The figures success_bars_v2.png and e_vs_f_v2.png are written by the figures command above from the shipped arm’s trials.csv; the last command prints FALLBACK_THRESHOLD.md of the advised arm (Section 4.4) to standard output, redirected here over the committed file, which git diff then compares.
Headless development test.test/deployment/test_closed_loop_utrap.cpp, with the family rule in test/deployment/UTRAP_DEV_GEOMETRIES.md; the sweep over all 56 valid geometries runs with SE_UTRAP_SWEEP=all. The additions are switched off with SE_UTRAP_PARAMS; the values need a decimal point, because the rig reads 0 as an integer. In the ROS environment, from the repository root (the commands name the test and the variables as the build files define them; they were not rerun for this revision):
P=nav2_se_controller
colcon build --packages-select $P
source install/setup.bash
H="--event-handlers console_direct+"
T="--ctest-args -R test_closed_loop_utrap"
# additions on
SE_UTRAP_SWEEP=all \
colcon test --packages-select $P $H $T
# additions off
OFF=se_escape_avoid_radius=0.0
OFF=$OFF,se_escape_avoid_hop_radius=0.0
OFF=$OFF,se_escape_stall_time=1e6
SE_UTRAP_SWEEP=all SE_UTRAP_PARAMS=$OFF \
colcon test --packages-select $P $H $T
One sweep is one process; the sweeps cannot be seeded. A sweep can hang in the teardown of the test rig after its last row (PREREG.md, lines 225–234); ctest’s TIMEOUT of 1200 s then fails the test although the rows are complete. The rows of the confirmation-2 sweeps that Table 3 quotes are in experiments/campaign2/sweeps/.
Mirror–C++ parity test. The colcon build above (with BUILD_TESTING, the default) also builds parity_shim. Then, from the repository root, in the mirror environment:
SE_PARITY_SHIM=build/nav2_se_controller/parity_shim \
SE_REQUIRE_PARITY=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
python3 -m pytest \
experiments/benchmark2d/tests/test_v2_cxx_parity.py
Run it with SE_REQUIRE_PARITY=1: without it the test is skipped when the shim is missing, and a run with only skips still passes, so a “pass” then means that nothing was compared.
Live campaign 2. From the repository root, in the campaign environment with the workspace sourced:
C=experiments/campaign2
python3 $C/run_campaign2.py --list
python3 $C/run_campaign2.py --block A
python3 $C/run_campaign2.py --block B
python3 $C/analyze.py --raw RAW --out OUT --pack
python3 $C/analyze.py --raw RAW --check
python3 $C/odom_gap.py --raw RAW --out-dir OUT
python3 $C/cbf_admissions.py --out-dir OUT
export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
python3 -m pytest $C/tests
The raw trial files are the archive experiments/campaign2/raw_trials.tar.gz (sha256 in the file next to it): 88 trial directories (84 registered trials, namely 24 on s0_open, 24 on s1_utrap, 24 on s3_ctrap and 12 on s4_ltrap, and 4 evidence trials on s1_utrap_evidence), the 5 entries of the shakedown directory and the driver logs. Unpack it into an empty directory and pass its campaign2_raw directory as RAW. Without --raw the analysis reads the original raw root /mnt/d/wsl/se-mppi/campaign2. Without --out, analyze.py overwrites the committed results.json.gz, RESULTS.md and logs/; --check only reads. odom_gap.py also writes its two output files into the repository directory by default, so pass --out-dir to write elsewhere. cbf_admissions.py reads raw_trials.tar.gz directly, with no unpacking and no --raw; its default --out-dir overwrites the committed CBF_ADMISSIONS.json and CBF_ADMISSIONS.md, so pass --out-dir there too. The other committed analysis outputs are results.json.gz, RESULTS.md and the log excerpts in experiments/campaign2/logs/. analyze.py --check compares them with a fresh analysis of the raw data (--raw RAW) and passes only in the environment that wrote them: another Python can differ in the last digit of some floats, while RESULTS.md is byte-identical in both. PREREG.md holds the pre-registration with its amendments, SHAKEDOWN.md the one trial on s0_open that counts for nothing, and FREEZE_MANIFEST.json the hashes of the frozen files.
Number guard.python3 scripts/check_paper_numbers.py checks the numbers of this paper against the committed artifacts: the mirror arms (stats.json, summary.csv), the campaign (results.json.gz, ODOM_GAP.json, the wording of PREREG.md), campaign 1 (results.json), the design-stage benchmark of Appendix B, the test counts and the parameter file. It also checks the prose counts of the abstract, of the introduction (C2) and of the conclusion against results.json.gz, the per-class drift table against ODOM_GAP.json, the forced-stop counts, the raw archive with its hash, and the committed sweep rows. It also reruns cbf_admissions.py and compares both outputs byte for byte with the committed CBF_ADMISSIONS.json and CBF_ADMISSIONS.md; these cover the phantom admissions, the loop rate, the host load and the collision_monitor log.
2D mirror versus the Nav2 controller. The 2D mirror (experiments/prototype/se_mppi_v2.py for the shipped escape, driven by experiments/benchmark2d/rollout.py) follows the controller’s formulas but differs in the following documented ways.
- Progress signal. Progress is the arc length along an anchor path, with straight replans simulated once a second, as in the controller; the design-stage mirror of Appendix B used the best distance to the goal instead.
- Geometry. Obstacles, including walls built from chains of discs, are circles; repulsion distances and ray lengths are computed analytically against them rather than on a costmap distance field. The repulsion has the same Khatib form but other parameters and distances: m and , the distance to the surface of each disc (clamped at m), and the sum over discs of the per-disc horizon mean; the controller uses m, and the distance to the nearest inscribed-band cell, without a sum.
- Obstacle knowledge. The CBF and TTC receive the true positions and velocities of the moving obstacles, so the tracker of Section 4.7 is not exercised.
- Costs. The MPPI cost is a goal-distance, path-progress, and obstacle-proximity cost rather than Nav2’s critic stack, and the parameters differ from the released controller’s.
- Stack. Nav2’s progress checker and behavior-tree recoveries are not modeled.
Data and parameters. The full parameter set of the live campaign is experiments/sim/nav2_se_ campaign2.yaml; the released defaults are in src/nav2_se_controller/config/nav2_se_controller _params.yaml.
Appendix B. Design-Stage Benchmark (Paper-v1)
An earlier version of this paper reported a -trial benchmark and a mechanism validation run on a Python 2D mirror of a different, design-stage algorithm: detection from the best distance to the goal, an opening chosen among rays with m of m free, and a subgoal m along the opening that replaced the goal while entrapped. Section 6.1 explains why that algorithm is not the plugin. We keep the results here, labelled as the design stage; they are not claims about the shipped controller. The data are experiments/results_2d/ at the tag paper-v1; the mirror that produced them is unchanged and regenerates them exactly. The setup (families, seeds, configs, tests) is that of Section 6.4.
Appendix B.1. Randomized Benchmark of the Design Stage
Table A1.
Design-stage benchmark on the Python 2D mirror of the first version (not the Nav2 controller and not the shipped algorithm): success rate in % (Wilson 95% CI), per cell.
Table A1.
Design-stage benchmark on the Python 2D mirror of the first version (not the Nav2 controller and not the shipped algorithm): success rate in % (Wilson 95% CI), per cell.
| Config | U-trap | Clutter | Dynamic | Narrow-dyn |
|---|---|---|---|---|
| A stock | 0 [0,7] | 52 [39,65] | 80 [67,89] | 0 [0,7] |
| C escape | 90 [79,96] | 62 [48,74] | 76 [63,86] | 78 [65,87] |
| D CBF | 0 [0,7] | 52 [39,65] | 82 [69,90] | 0 [0,7] |
| E indep. | 88 [76,94] | 62 [48,74] | 78 [65,87] | 64 [50,76] |
| F SE-MPPI | 88 [76,94] | 62 [48,74] | 78 [65,87] | 62 [48,74] |
| F− no-gap | 0 [0,7] | 52 [39,65] | 84 [71,92] | 0 [0,7] |
Table A2.
Key paired contrasts of the design-stage benchmark (McNemar, Holm-adjusted; discordant pairs).
Table A2.
Key paired contrasts of the design-stage benchmark (McNemar, Holm-adjusted; discordant pairs).
| Escape (stock→F) | Coord. (E→F) | |||
|---|---|---|---|---|
| Family | ||||
| U-trap | 0/44 | * | 0/0 | 1 |
| Clutter | 0/5 | 1 | 0/0 | 1 |
| Dynamic | 3/2 | 1 | 0/0 | 1 |
| Narrow-dyn | 0/31 | * | 1/0 | 1 |
Table A1 and Table A2 and Figure A1 and Figure A2 give the design-stage results. In the design-stage mirror the escape layer lifts success from to 88– on the utrap family (44/50 discordant pairs, Holm-adjusted ) and to 62– on narrowdyn (31/50 discordant, ); the no-gap config F− scores on both, so the free-space gap subgoal was load-bearing there. The coordination contrast is null in every family (McNemar ), as in the shipped arm. The re-run on the mirror of the shipped algorithm (Section 6.4) gives lower success on the trap families: this is the number the paper reports.
Figure A1.
Design-stage benchmark: success / collision / timeout per family across configs A–F− (Wilson 95% error bars on success, ).
Figure A1.
Design-stage benchmark: success / collision / timeout per family across configs A–F− (Wilson 95% error bars on success, ).

Figure A2.
The coordination contrast E vs. F per family in the design-stage benchmark, annotated with the McNemar p-value.
Figure A2.
The coordination contrast E vs. F per family in the design-stage benchmark, annotated with the McNemar p-value.

Appendix B.2. Mechanism Validation (Standalone 2D)
To validate each mechanism independently of simulator infrastructure, we reimplemented the controller’s core math (repulsion, gap ray cast, look-ahead CBF-QP via OSQP [49], modulation + TTC override, monotone-progress entrapment) as a 2D unicycle and ran three scenarios. This code is the design-stage mirror; in these three scenes its CBF sees all obstacles, including the static wall discs. Sources: experiments/prototype/, generated by experiments/prototype/run_validation.py.
Table A3.
Standalone 2D mechanism validation of the design stage (measured).
| Scenario / config | reached | collided | time | min-clear (m) |
|---|---|---|---|---|
| U-trap / Stock MPPI | × (stuck) | — | — | 0.33 |
| U-trap / SE-MPPI (escape) | ✓ | — | 27.7 s | 0.32 |
| Dynamic / No CBF | × | collision | — | |
| Dynamic / SE-MPPI (CBF) | ✓ | safe | 18.6 s | 0.01 |
| Coordination: SE-MPPI vs. independent† | ✓ | safe | 27.7 s | 0.32 |
†SE-MPPI (F) and the independent stack (E) return identical trajectories and metrics in this benign scenario.
Table A3 gives the measurements. Three findings: (1) stock MPPI stalls in front of a U-trap while SE-MPPI detects and rounds it; (2) against a crossing dynamic obstacle, the no-CBF baseline collides while the speed-aware CBF filter avoids it; and (3) the coordination plot shows the gain rise during the escape phase with slack throughout, close to the slack-free setting that the Proposition of Section 4.6 assumes. These are shown in Figure A3.
Figure A3.
Standalone 2D mechanism validation of the design stage (trajectories/traces only; no benchmark metrics). (a) U-trap escape: stock MPPI (left) stalls at the trap mouth while SE-MPPI (right) detects the stalled progress and rounds the U-shaped obstacle to the goal via the gap-attraction subgoal. (b) Dynamic-obstacle avoidance: the no-CBF baseline (left) collides while the speed-aware look-ahead CBF filter (right) projects the command to a collision-free path. (c) Escape–safety coordination: the coordinated gain rises while the QP slack stays .
Figure A3.
Standalone 2D mechanism validation of the design stage (trajectories/traces only; no benchmark metrics). (a) U-trap escape: stock MPPI (left) stalls at the trap mouth while SE-MPPI (right) detects the stalled progress and rounds the U-shaped obstacle to the goal via the gap-attraction subgoal. (b) Dynamic-obstacle avoidance: the no-CBF baseline (left) collides while the speed-aware look-ahead CBF filter (right) projects the command to a collision-free path. (c) Escape–safety coordination: the coordinated gain rises while the QP slack stays .

References
- Macenski, S.; Martín, F.; White, R.; Ginés Clavero, J. The Marathon 2: A Navigation System. In Proceedings of the 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2020. [Google Scholar]
- Williams, G.; Drews, P.; Goldfain, B.; Rehg, J.M.; Theodorou, E.A. Information Theoretic Model Predictive Control: Theory and Applications to Autonomous Driving. arXiv [arXiv:cs.RO/1707.02342]. 2017. [Google Scholar]
- Nav2 contributors. nav2_controller, branch jazzy: controller_server.cpp and simple_progress_checker.cpp. Nav2 source code, GitHub repository ros-navigation/navigation2. 2026. (accessed on 2026-09-30). [Google Scholar] [PubMed]
- Nav2 contributors. Detailed Behavior Tree Walkthrough. Nav2 documentation, 2026; (accessed on 2026-09-30). [Google Scholar]
- Mohamed, I.S.; Yin, K.; Liu, L. Autonomous Navigation of AGVs in Unknown Cluttered Environments: log-MPPI Control Strategy. IEEE Robot. Autom. Lett. [arXiv:cs.RO/2203.16599]. 2022. [Google Scholar] [CrossRef]
- Trevisan, E.; Alonso-Mora, J. Biased-MPPI: Informing Sampling-Based Model Predictive Control by Fusing Ancillary Controllers. IEEE Robot. Autom. Lett. 2024, arXiv:2401.09241. [Google Scholar] [CrossRef]
- Sacks, J.; Boots, B. Learning Sampling Distributions for Model Predictive Control. In Proceedings of the Proceedings of the 6th Conference on Robot Learning (CoRL), 2022. [Google Scholar]
- Wang, Z.; So, O.; Gibson, J.; Vlahov, B.; Gandhi, M.S.; Liu, G.H.; Theodorou, E.A. Variational Inference MPC using Tsallis Divergence, 2021. arXiv. [arXiv:cs.LG/2104.00241].
- Honda, K.; Akai, N.; Suzuki, K.; Aoki, M.; Hosogaya, H.; Okuda, H.; Suzuki, T. Stein Variational Guided Model Predictive Path Integral Control: Proposal and Experiments with Fast Maneuvering Vehicles, 2023. arXiv. [arXiv:cs.RO/2309.11040].
- Mohamed, I.S.; Ali, M.; Liu, L. GP-Guided MPPI for Efficient Navigation in Complex Unknown Cluttered Environments. In Proceedings of the 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2023; pp. 7463–7470. [Google Scholar] [CrossRef]
- Fuke, T.; Endo, M.; Honda, K.; Ishigami, G. Towards Local Minima-free Robotic Navigation: Model Predictive Path Integral Control via Repulsive Potential Augmentation. In In Proceedings of the 2025 IEEE/SICE International Symposium on System Integration (SII), 2025; pp. 1112–1117. [Google Scholar] [CrossRef]
- Fuke, T.; Endo, M.; Honda, K.; Ishigami, G. DRPA-MPPI: Dynamic Repulsive Potential Augmented MPPI for Reactive Navigation in Unstructured Environments. arXiv 2025. [Google Scholar]
- Zheng, D.; Mei, W. Memory-Augmented Potential Field Theory: A Framework for Adaptive Control in Non-Convex Domains. Proc. Adv. Neural Inf. Process. Syst. (NeurIPS) 2025. [Google Scholar] [CrossRef]
- Yin, J.; Dawson, C.; Fan, C.; Tsiotras, P. Shield Model Predictive Path Integral: A Computationally Efficient Robust MPC Approach Using Control Barrier Functions, 2023. arXiv arXiv:eess.
- Parwana, H.; Kim, T.; Long, K.; Hoxha, B.; Okamoto, H.; Fainekos, G.; Panagou, D. BR-MPPI: Barrier-Rate Guided MPPI for Enforcing Multiple Inequality Constraints with Learned Signed Distance Fields. arXiv 2025. [Google Scholar]
- Parwana, H.; Black, M.; Fainekos, G.; Hoxha, B.; Okamoto, H.; Prokhorov, D. Model Predictive Path Integral Methods with Reach-Avoid Tasks and Control Barrier Functions. arXiv 2024, arXiv:eess. [Google Scholar]
- Borquez, J.; Raus, L.; Ciftci, Y.U.; Bansal, S. DualGuard MPPI: Safe and Performant Optimal Control by Combining Sampling-Based MPC and Hamilton-Jacobi Reachability. IEEE Robot. Autom. Lett. 2025, 10. [Google Scholar] [CrossRef]
- Rabiee, P.; Hoagg, J.B. Guaranteed-Safe MPPI Through Composite Control Barrier Functions for Efficient Sampling in Multi-Constrained Robotic Systems. arXiv 2024, arXiv:eess. [Google Scholar]
- Nav. Enhanced Safety for Nav2 using 3Laws Supervisor. In Nav2 documentation; Accessed; 2, Ed.; 2026; (accessed on 2026-09-30). [Google Scholar]
- ACCESS Newswire. Open Navigation and 3Laws Demonstrate Capabilities of Nav2 and 3Laws Supervisor Integration. Press release. The Globe and Mail, 18 December 2025. (accessed on 2026-09-30). as syndicated by.
- Soloperto, R.; Mesbah, A.; Allgöwer, F. Safe Exploration and Escape Local Minima With Model Predictive Control Under Partially Unknown Constraints. IEEE Trans. Autom. Control 2023, 68, 7530–7545, [2205.03614. [Google Scholar] [CrossRef]
- Xu, R.; Feng, S.; Vela, P.A. Potential Gap: Using Reactive Policies to Guarantee Safe Navigation. arXiv 2021, arXiv:2103.11491. [Google Scholar]
- Feng, S.; Abuaish, A.; Vela, P.A. Safer Gap: A Gap-based Local Planner for Safe Navigation with Nonholonomic Mobile Robots. arXiv 2023, arXiv:2303.08243. [Google Scholar]
- Asselmeier, M.; Ahuja, D.; Zaro, A.; Abuaish, A.; Zhao, Y.; Vela, P.A. Dynamic Gap: Safe Gap-based Navigation in Dynamic Environments. In In Proceedings of the 2025 IEEE International Conference on Robotics and Automation (ICRA), 2025; pp. 12870–12876. [Google Scholar] [CrossRef]
- Xue, Y.; Figueroa, N. No Minima, No Collisions: Combining Modulation and Control Barrier Function Strategies for Feasible Dynamic Collision Avoidance. arXiv 2025, arXiv:2502.14238. [Google Scholar]
- Reis, M.F.; Aguiar, A.P.; Tabuada, P. Control Barrier Function-Based Quadratic Programs Introduce Undesirable Asymptotically Stable Equilibria. IEEE Control Syst. Lett. 2021, 5, 731–736. [Google Scholar] [CrossRef]
- Xue, Y.; Zhang, Z.; Åkesson, K.; Figueroa, N. Proactive Local-Minima-Free Robot Navigation: Blending Motion Prediction With Safe Control. IEEE Robot. Autom. Lett. 2026, 11, 5096–5103. [Google Scholar] [CrossRef]
- Chen, Y.H.; Ghori, S.; Adil, A.; Feron, E.; Belta, C. Long-Horizon Geometry-Aware Navigation among Polytopes via MILP-MPC and Minkowski-Based CBFs. arXiv 2026, arXiv:2604.00162. [Google Scholar]
- Kim, T.; Kee, R.I.; Panagou, D. Learning to Refine Input Constrained Control Barrier Functions via Uncertainty-Aware Online Parameter Adaptation. In In Proceedings of the 2025 IEEE International Conference on Robotics and Automation (ICRA), 2025; pp. 3868–3875, [2409.14616. [Google Scholar] [CrossRef]
- Xiao, W.; Belta, C.; Cassandras, C.G. Adaptive Control Barrier Functions for Safety-Critical Systems. arXiv 2020, arXiv:2002.04577. [Google Scholar]
- Parwana, H.; Panagou, D. Rate-Tunable Control Barrier Functions: Methods and Algorithms for Online Adaptation. In Proceedings of the 2025 American Control Conference (ACC), 2025; pp. 275–282, [2303.12966. [Google Scholar] [CrossRef]
- Rösmann, C.; Feiten, W.; Wösch, T.; Hoffmann, F.; Bertram, T. Trajectory Modification Considering Dynamic Constraints of Autonomous Robots. In Proceedings of the Proceedings of ROBOTIK 2012; 7th German Conference on Robotics, 2012; VDE Verlag; pp. 74–79. [Google Scholar]
- Fox, D.; Burgard, W.; Thrun, S. The Dynamic Window Approach to Collision Avoidance. IEEE Robot. Autom. Mag. 1997, 4, 23–33. [Google Scholar] [CrossRef]
- Macenski, S.; Singh, S.; Martin, F.; Gines, J. Regulated Pure Pursuit for Robot Path Tracking. Auton. Robot. 2023. [Google Scholar] [CrossRef]
- Gu, Y.; Zhang, X.; Wang, S.; Cheng, S.; Zhang, W. Local-Minimum Escaper: Programmatic Subgoal Generation for Robust Navigation in Unknown Environments, 2026. arXiv.
- Khatib, O. Real-Time Obstacle Avoidance for Manipulators and Mobile Robots. Int. J. Robot. Res. 1986, 5, 90–98. [Google Scholar] [CrossRef]
- Black, M.; Fainekos, G.; Hoxha, B.; Okamoto, H.; Prokhorov, D. CBFKit: A Control Barrier Function Toolbox for Robotics Applications. arXiv 2024. [Google Scholar]
- Park, H.K.; Kim, T.; Panagou, D. Beyond Collision Cones: Dynamic Obstacle Avoidance for Nonholonomic Robots via Dynamic Parabolic Control Barrier Functions, 2025. Accepted to IEEE International Conference on Robotics and Automation (ICRA), 2026. [Google Scholar]
- Ames, A.D.; Xu, X.; Grizzle, J.W.; Tabuada, P. Control Barrier Function Based Quadratic Programs for Safety Critical Systems. IEEE Trans. Autom. Control 2017, 62, 3861–3876, [1609.06408. [Google Scholar] [CrossRef]
- Ames, A.D.; Coogan, S.; Egerstedt, M.; Notomista, G.; Sreenath, K.; Tabuada, P. Control Barrier Functions: Theory and Applications. In Proceedings of the 2019 18th European Control Conference (ECC), 2019; pp. 3420–3431. [Google Scholar] [CrossRef]
- Zeng, J.; Zhang, B.; Li, Z.; Sreenath, K. Safety-Critical Control using Optimal-decay Control Barrier Function with Guaranteed Point-wise Feasibility. In Proceedings of the 2021 American Control Conference (ACC), 2021; pp. 3856–3863, [2103.12375. [Google Scholar] [CrossRef]
- Walia, R.; Leahy, K. Conflict-Aware Switching for CBF-CLF-Based Multi-Goal Navigation. arXiv CDC 2026 submission copy. 2026, arXiv:2606.21577. [Google Scholar]
- Paudel, H.; Joshi, B.; Madai, D.R.; Bartaula, A.; Rimal, B.; Neupane, S. A Closed-Form Dual-Barrier CBF Safety Filter for Holonomic Robots on Incrementally Built Occupancy Grid Maps. arXiv 2026, arXiv:2605.05182. [Google Scholar]
- Zhou, H.; Zhang, Y.; Luo, W. Safety-Critical Control with Uncertainty Quantification using Adaptive Conformal Prediction. In Proceedings of the 2024 American Control Conference (ACC), 2024. [Google Scholar]
- Gonzales, J.; Mizuta, K.; Leung, K.; Ratliff, L.J. Safe Probabilistic Planning for Human-Robot Interaction using Conformal Risk Control, 2026. arXiv.
- Lindemann, L.; Cleaveland, M.; Shim, G.; Pappas, G.J. Safe Planning in Dynamic Environments using Conformal Prediction, 2022. arXiv.
- Dixit, A.; Lindemann, L.; Wei, S.; Cleaveland, M.; Pappas, G.J.; Burdick, J.W. Adaptive Conformal Prediction for Motion Planning among Dynamic Agents, 2022. arXiv.
- Busellato, L.; Cunico, F.; Dall’Alba, D.; Emporio, M.; Giachetti, A.; Muradore, R.; Cristani, M. Uncertainty Aware-Predictive Control Barrier Functions: Safer Human Robot Interaction through Probabilistic Motion Forecasting, 2025. arXiv.
- Stellato, B.; Banjac, G.; Goulart, P.; Bemporad, A.; Boyd, S. OSQP: An Operator Splitting Solver for Quadratic Programs. Math. Program. Comput. 2020, 12, 637–672. [Google Scholar] [CrossRef]
- Wilson, E.B. Probable Inference, the Law of Succession, and Statistical Inference. J. Am. Stat. Assoc. 1927, 22, 209–212. [Google Scholar] [CrossRef]
- McNemar, Q. Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages. Psychometrika 1947, 12, 153–157. [Google Scholar] [CrossRef] [PubMed]
- Mann, H.B.; Whitney, D.R. On a Test of Whether one of Two Random Variables is Stochastically Larger than the Other. Ann. Math. Stat. 1947, 18, 50–60. [Google Scholar] [CrossRef]
- Cliff, N. Dominance statistics: Ordinal analyses to answer ordinal questions. Psychol. Bull. 1993, 114, 494–509. [Google Scholar] [CrossRef]
- Holm, S. A Simple Sequentially Rejective Multiple Test Procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
- Fisher, R.A. On the Interpretation of χ2 from Contingency Tables, and the Calculation of P. J. R. Stat. Soc. 1922, 85, 87–94. [Google Scholar] [CrossRef]
- Perille, D.; Truong, A.; Xiao, X.; Stone, P. Benchmarking Metric Ground Navigation, 2020. arXiv.
- Nair, A.; Jiang, F.; Hou, K.; Xu, Z.; Li, S.; Xiao, X.; Stone, P. DynaBARN: Benchmarking Metric Ground Navigation in Dynamic Environments. In Proceedings of the 2022 IEEE International Symposium on Safety, Security, and Rescue Robotics (SSRR); IEEE, 2022; pp. 347–352. [Google Scholar] [CrossRef]
- Pérez-Higueras, N.; Otero, R.; Caballero, F.; Merino, L. HuNavSim: A ROS 2 Human Navigation Simulator for Benchmarking Human-Aware Robot Navigation, 2023. arXiv. Accepted for publication in IEEE Robotics and Automation Letters (RA-L).
| 1 | Code, benchmark scripts and the campaign pre-registration: https://github.com/kjungmo/se-mppi-nav2 (Apache-2.0); the raw trial data of campaign 2 are the archive experiments/campaign2/raw_trials.tar.gz; see the Appendix for the commands. At the time of writing, the tag, the commits and the archive cited in this paper exist only in the author’s local repository. A release ref will be published before submission; the commit of the local tag campaign2-controller (6a50723) is the provenance. |
| 2 | The released controller’s coordinator additionally holds at whenever the online conformal bound q on obstacle-prediction error exceeds a trust threshold ( m by default; the calibrator is enabled by default), and that bound inflates the effective radius R of Section 4.5 – the SE-Predict margin noted in Section 2, not claimed by this paper. An implementation following Eq. (4) alone therefore reproduces the benchmark configurations of Section 6.4, not the released defaults. |
Figure 1.
SE-MPPI architecture / data flow, as intended. Global plan, local costmap, and odometry feed the SafeEscapeController plugin: the reused MPPI optimizer (with the EscapeCritic) emits the nominal command, a shared entrapment signal drives both the critic and the escape–safety coordinator, the coordinator resolves the CBF gain (with TTC override), and the CBF safety filter – fed by the DynamicObstacleTracker – projects the command to cmd_vel. The intended chain ends in Nav2’s collision_monitor as a final reactive layer; in the live campaign the only collision_monitor polygon was disabled, so no zone was active; the monitor stayed in the chain and passed commands through (its 5 s source-validity stop never fired: no line above INFO in its log, CBF_ADMISSIONS.md; Section 7). The figure predates the repaired escape: the critic’s gap search that it labels is off in the shipped configuration (gap_weight 0); the opening selection, which now produces the escape, runs in the controller, and its hand-off of an escape path to the optimizer (Section 4.3) is not drawn. Nav2’s velocity smoother, which sits between the controller and the base in the campaign, is not drawn either.
Figure 1.
SE-MPPI architecture / data flow, as intended. Global plan, local costmap, and odometry feed the SafeEscapeController plugin: the reused MPPI optimizer (with the EscapeCritic) emits the nominal command, a shared entrapment signal drives both the critic and the escape–safety coordinator, the coordinator resolves the CBF gain (with TTC override), and the CBF safety filter – fed by the DynamicObstacleTracker – projects the command to cmd_vel. The intended chain ends in Nav2’s collision_monitor as a final reactive layer; in the live campaign the only collision_monitor polygon was disabled, so no zone was active; the monitor stayed in the chain and passed commands through (its 5 s source-validity stop never fired: no line above INFO in its log, CBF_ADMISSIONS.md; Section 7). The figure predates the repaired escape: the critic’s gap search that it labels is off in the shipped configuration (gap_weight 0); the opening selection, which now produces the escape, runs in the controller, and its hand-off of an escape path to the optimizer (Section 4.3) is not drawn. Nav2’s velocity smoother, which sits between the controller and the base in the campaign, is not drawn either.

Figure 2.
Randomized benchmark on the Python 2D mirror of the shipped algorithm: success / collision / timeout per family across configs A–F− (Wilson 95% error bars on success, ). On the trap families (utrap, narrowdyn) the escape configs (C = escape-only, E = independent escape+CBF, F = coordinated) separate from stock A, CBF-only D, and no-gap F−, which time out at success.
Figure 2.
Randomized benchmark on the Python 2D mirror of the shipped algorithm: success / collision / timeout per family across configs A–F− (Wilson 95% error bars on success, ). On the trap families (utrap, narrowdyn) the escape configs (C = escape-only, E = independent escape+CBF, F = coordinated) separate from stock A, CBF-only D, and no-gap F−, which time out at success.

Figure 3.
The coordination contrast E vs. F per family in the Python 2D mirror of the shipped algorithm, annotated with the McNemar p-value. The independent (E) and coordinated (F) stacks are statistically indistinguishable in every family – the null result of Section 6.4.1.
Figure 3.
The coordination contrast E vs. F per family in the Python 2D mirror of the shipped algorithm, annotated with the McNemar p-value. The independent (E) and coordinated (F) stacks are statistically indistinguishable in every family – the null result of Section 6.4.1.

Figure 4.
The second held-out pocket s4_ltrap (wall footprints in black, centre lines dashed red), the straight start–goal line, and the mouth centre. Plot written by the coding assistant that wrote the world, experiments/campaign2/s4_ltrap_geometry.png.
Figure 4.
The second held-out pocket s4_ltrap (wall footprints in black, centre lines dashed red), the straight start–goal line, and the mouth centre. Plot written by the coding assistant that wrote the world, experiments/campaign2/s4_ltrap_geometry.png.

Table 1.
Positioning of the reviewed systems on four properties, (a) to (d). ✓ = holds; ∘ = holds in part; – = absent. Definitions and notes follow the table.
Table 1.
Positioning of the reviewed systems on four properties, (a) to (d). ✓ = holds; ∘ = holds in part; – = absent. Definitions and notes follow the table.
| System | (a) | (b) | (c) | (d) |
|---|---|---|---|---|
| Nav2 MPPI with progress checker and recoveries [1,3,4] | ✓ | ∘ | – | – |
| 3Laws Supervisor in Nav2 [19,20] | ∘ | – | ✓ | – |
| DRPA-MPPI, GP-MPPI [10,12] | – | ✓ | – | – |
| Dynamic Gap, Potential Gap, Safer Gap [22,23,24] | – | ∘ | ✓ | – |
| Backup-trajectory MPC [21] | – | ✓ | ✓ | – |
| MILP-MPC with CBF†; MCBF-QP; predictive MCBF† [25,27,28] | – | ✓ | ✓ | – |
| DualGuard, SCBF-MPPI, GS-MPPI, Shield-MPPI [14,16,17,18] | – | – | ✓ | – |
| CBFKit, DPCBF [37,38] | – | – | ✓ | – |
| BR-MPPI [15] | – | – | ✓ | ✓ |
| Rate-tunable, adaptive, optimal-decay CBFs [30,31,41] | – | – | ✓ | ✓ |
| Deadlock-aware parameter adaptation [29] | – | ∘ | ✓ | ✓ |
| SE-MPPI (ours) | ✓ | ✓ | ∘ | ✓ |
Notes.(a) ships as a Nav2 controller plugin; (b) online local-minimum escape or avoidance; (c) an explicit safety constraint, filter or backup enforced at run time (for DualGuard, Hamilton–Jacobi reachability; for Soloperto et al., a safe backup trajectory; for the gap-based planners, a safety projection operator on the command and, in Dynamic Gap and Safer Gap, zeroing barrier functions); (d) online adaptation of the CBF class- gain. Meaning of ∘ (holds in part): stock Nav2 detects stalls at the stack level and runs generic recoveries rather than a steered escape; the 3Laws Supervisor is integrated with Nav2 as a separate node after the controller, not as a controller plugin; the gap-based planners guide the robot through free-space gaps rather than escaping a detected minimum; Kim et al. reduce predicted deadlock through class- parameter selection rather than escaping a detected minimum. For the 3Laws Supervisor, (b) is marked absent because neither cited source describes a local-minimum escape mechanism. †Concurrent work (posted in 2026). For SE-MPPI, (c) is marked in part because its barrier covers only tracked dynamic obstacles, at a look-ahead point, and its invariance argument is conditional (Section 4.6); static structure is handled only by MPPI costs. Its (b) is demonstrated in a simulated live Nav2 stack on one host (Section 6.5) and in the Python 2D mirror, not on a real robot. No reviewed system holds all four; several hold two. The review behind this table (June 2026, extended in September 2026) covered the Nav2 MPPI critic ecosystem, the Nav2 documentation, the public issue trackers of these projects, and the works cited here; it is not exhaustive.
Table 2.
Escape parameters of the shipped controller (set in experiments/sim/nav2_se_campaign2.yaml, except the four compiled constants: the m floor, the m waypoint margin, the failed-list size 6 and the same-goal tolerance of two costmap cells). “Advised” marks values fixed by our design advice before any code existed; “addition” marks the rules and values of Section 4.4. The m value is the advised default of se_gap_min_clearance; its use as a threshold, on horizon rays and on the longest-ray fallback, is addition (d).
Table 2.
Escape parameters of the shipped controller (set in experiments/sim/nav2_se_campaign2.yaml, except the four compiled constants: the m floor, the m waypoint margin, the failed-list size 6 and the same-goal tolerance of two costmap cells). “Advised” marks values fixed by our design advice before any code existed; “addition” marks the rules and values of Section 4.4. The m value is the advised default of se_gap_min_clearance; its use as a threshold, on horizon rays and on the longest-ray fallback, is addition (d).
| Parameter | Value | Origin |
|---|---|---|
| stall window | 30 cycles (3 s) | advised |
| progress step / adoption | 0.10 m / 0.5 m | advised |
| rays / horizon | 36 / 2.0 m | advised |
| waypoint cap | 2.5 m | advised |
| re-select radius / period | 0.4 m / 15 s | advised |
| hysteresis | 0.5 rad | advised |
| minimum ray clearance | 0.6 m | advised value; threshold: (d) |
| movement watchdog | 3 s / 0.15 m | addition |
| avoid radius, stall pose | 1.0 m | addition |
| avoid radius, hop origins and failed waypoints; hops | 0.6 m; 3 | addition |
| waypoint floor; failed list | 0.2 m; 6 | addition |
| gap_weight | 0 | advised |
Table 3.
Headless development sweeps: geometries passed of 56, one run each, per sweep (process). “Off” switches off additions (a) and (b) as described in the text. Source: experiments/campaign2/PREREG.md. The confirmation sweeps ran at commit b7e012a (controller sources of 507173a); their per-geometry rows are in experiments/campaign2/sweeps/. Run 3 without the additions is a rerun (off3b): the first attempt stopped printing rows after 3 geometries, in the teardown of the test rig, and was killed (PREREG.md, lines 225–234; its log is kept outside the repository). The implementer and reviewer sweeps are not archived, the commit of the earlier implementer sweep without the additions is not recorded, and no sweep can be seeded.
Table 3.
Headless development sweeps: geometries passed of 56, one run each, per sweep (process). “Off” switches off additions (a) and (b) as described in the text. Source: experiments/campaign2/PREREG.md. The confirmation sweeps ran at commit b7e012a (controller sources of 507173a); their per-geometry rows are in experiments/campaign2/sweeps/. Run 3 without the additions is a rerun (off3b): the first attempt stopped printing rows after 3 geometries, in the teardown of the test rig, and was killed (PREREG.md, lines 225–234; its log is kept outside the repository). The implementer and reviewer sweeps are not archived, the commit of the earlier implementer sweep without the additions is not recorded, and no sweep can be seeded.
| Sweep | Additions | Passed of 56 |
|---|---|---|
| implementer | on | 56 |
| reviewer | on | 55 |
| confirmation, run 1 | on | 55 |
| confirmation, run 2 | on | 56 |
| confirmation, run 3 | on | 56 |
| implementer, earlier | off | 19 |
| reviewer | off | 16 |
| confirmation, run 1 | off | 16 |
| confirmation, run 2 | off | 18 |
| confirmation, run 3 | off | 14 |
Table 4.
What each result ran on. “Affected” means a binary that rolls the sampled trajectories out in the wrong direction for part of the heading range (Section 6.1); “correct” means nav2_mppi_controller 1.3.13 build _25 from RoboStack, which passes the rollout check.
Table 4.
What each result ran on. “Affected” means a binary that rolls the sampled trajectories out in the wrong direction for part of the heading range (Section 6.1); “correct” means nav2_mppi_controller 1.3.13 build _25 from RoboStack, which passes the rollout check.
| Result | MPPI library |
|---|---|
| Mirror benchmark | none: the Python mirror imports nothing from ROS or Nav2 |
| Headless sweeps | correct; the controller’s configure-time rollout check is on by default and the rig does not override it |
| Campaign 1, 4 trials | affected (1.3.11 build _16) |
| Campaign 1, 44 trials | correct |
| Campaign 2, 88 trials | correct; the driver refuses to start unless the rollout check passes |
| July 2026 live runs | affected, according to the repository notes; not used for any claim here |
Table 8.
Campaign 2: trials that reached the goal out of 6 (Wilson 95% interval), by scenario and configuration. C1: stock with Nav2’s default recovery tree; C2: SE-MPPI with it; C3: stock with replanning only; C4: SE-MPPI with replanning only. – = not run.
Table 8.
Campaign 2: trials that reached the goal out of 6 (Wilson 95% interval), by scenario and configuration. C1: stock with Nav2’s default recovery tree; C2: SE-MPPI with it; C3: stock with replanning only; C4: SE-MPPI with replanning only. – = not run.
| Scenario | C1 | C2 | C3 | C4 |
|---|---|---|---|---|
| s0_open | 6 [0.61,1.00] | 6 [0.61,1.00] | 6 [0.61,1.00] | 6 [0.61,1.00] |
| s1_utrap | 0 [0.00,0.39] | 3 [0.19,0.81] | 0 [0.00,0.39] | 5 [0.44,0.97] |
| s3_ctrap | 0 [0.00,0.39] | 2 [0.10,0.70] | 0 [0.00,0.39] | 4 [0.30,0.90] |
| s4_ltrap | – | – | 0 [0.00,0.39] | 5 [0.44,0.97] |
Table 9.
Campaign 2: two-sided Fisher exact p of the registered contrasts (reached out of 6 in each arm). The first and fifth rows decide the branch; the others are reported and decide nothing.
Table 9.
Campaign 2: two-sided Fisher exact p of the registered contrasts (reached out of 6 in each arm). The first and fifth rows decide the branch; the others are reported and decide nothing.
| Contrast | A | B | Fisher p |
|---|---|---|---|
| C4 vs C3 on s1 (development) | 5 | 0 | 0.0152 |
| C4 vs C3 on s3 (twin in family) | 4 | 0 | 0.0606 |
| C2 vs C1 on s1 | 3 | 0 | 0.1818 |
| C2 vs C1 on s3 | 2 | 0 | 0.4545 |
| C4 vs C3 on s4 (outside family) | 5 | 0 | 0.0152 |
| C4 on s3 vs C4 on s1 (transfer) | 4 | 5 | 1.0000 |
| C4 on s4 vs C4 on s1 (transfer) | 5 | 5 | 1.0000 |
Table 10.
End of the drive, all 88 trials, by class: range of the distance of the wheel odometry (shifted to the start pose) and of the AMCL estimate from the ground truth (m), and of the peak turn rate of the command that reaches the base, after the velocity smoother (rad/s). Post hoc; source: experiments/campaign2/ODOM_GAP.json. The SE class includes the 4 evidence trials.
Table 10.
End of the drive, all 88 trials, by class: range of the distance of the wheel odometry (shifted to the start pose) and of the AMCL estimate from the ground truth (m), and of the peak turn rate of the command that reaches the base, after the velocity smoother (rad/s). Post hoc; source: experiments/campaign2/ODOM_GAP.json. The SE class includes the 4 evidence trials.
| Class | Trials | Odometry | AMCL | Peak turn rate |
|---|---|---|---|---|
| SE-MPPI in a pocket | 34 | 0.088–1.594 | 0.062–1.559 | 1.228–1.900 |
| Stock in a pocket | 30 | 0.001–0.131 | 0.003–0.375 | 0.039–1.000 |
| s0_open, all | 24 | 0.001–0.006 | 0.013–0.043 | 0.038–0.043 |
Table 11.
The 13 trials with Nav2 SUCCEEDED and a ground-truth distance to the goal above m: range over the 13 trials of the end-of-drive positions (m). Source: experiments/campaign2/ODOM_GAP.md.
Table 11.
The 13 trials with Nav2 SUCCEEDED and a ground-truth distance to the goal above m: range over the 13 trials of the end-of-drive positions (m). Source: experiments/campaign2/ODOM_GAP.md.
| Quantity | Minimum | Maximum |
|---|---|---|
| Ground-truth distance to goal | 0.536 | 1.659 |
| Distance printed by Nav2 (AMCL) | 0.00 | 0.20 |
| Shifted odometry distance to goal | 0.013 | 0.728 |
| Odometry vs ground truth | 0.294 | 1.594 |
| AMCL vs ground truth | 0.328 | 1.559 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.