Dynamics-Aware Corridor Shrinking for Zero-Shot Quadrotor Flight

Fast drones in cluttered places often plan inside a convex safe flight corridor: a chain of overlapping convex shapes (spheres or polyhedra) known to be obstacle-free. Requiring the trajectory to stay inside them turns collision avoidance into a small convex optimization problem that can be solved in milliseconds. The catch is that the corridor only constrains the planned path. The real drone follows that plan with a low-level controller, and the plan was computed for an idealized vehicle with exact mass, no motor lag and simple drag. On hardware, the drone drifts off the plan most during hard turns and braking, which is also where corridors are narrowest. This proposal asks whether a domain-randomized simulator can measure that drift ahead of time and turn it into a geometric safety margin. Domain randomization here means simulating many vehicles with randomly varied physical parameters. The margin would shrink each corridor wall in proportion to how aggressive the planned maneuver is in that segment. The resulting planner should transfer to a real drone with no real flight data, staying safe without the blanket slowdown that a fixed worst-case margin forces.

The core idea fits in two sentences. Fly the same planner and tracking controller thousands of times in simulation across randomized masses, drag coefficients, thrust constants and motor delays, and fit a map from "how hard this segment is" to "how far the drone may stray from the plan here, with high probability." Then subtract that map's output from each corridor wall inside the convex planner, so the reality gap becomes a convex constraint rather than a reward penalty or a learned residual.

Core Claim

Existing corridor planners treat the gap between plan and execution as zero, and existing sim-to-real methods treat safety as something learned into a policy. Neither puts dynamics uncertainty into the corridor geometry itself. Our claim is that the closed-loop deviation of a quadrotor from a corridor-constrained plan is strongly state-dependent: it grows with commanded acceleration and jerk. A margin that is learned from randomized simulation and conditioned on maneuver aggressiveness should therefore lead to a clearly better trade-off between speed and safety than a constant margin, while keeping the planner a quadratic program.

Concretely, let $\mathcal{P}_k=\{x : A_k x \le b_k\}$ be the $k$-th corridor polyhedron, and let $c_j$ be the control points of the Bézier segment assigned to it. Bézier curves stay inside the convex hull of their control points, so constraining the control points constrains the whole curve. Let $\theta \sim p(\theta)$ denote randomized vehicle parameters. Let $\bar a_k$ be an upper bound on the acceleration magnitude in segment $k$, which the planner imposes through linear constraints. We define the margin as a high quantile of simulated tracking error:

$$\delta_k = g(\bar a_k, \bar v_k) \approx Q_{1-\epsilon}\Big[\max_{t \in \text{seg}_k} \|p_\theta(t) - \gamma(t)\| \Big],$$

where $p_\theta$ is the tracked position under parameters $\theta$, $\gamma$ is the planned curve, $\bar v_k$ is a speed bound, and $\epsilon$ is the tolerated violation level. The planner then enforces

$$A_k c_j \le b_k - \delta_k \,\|A_k\|_{\text{row}},$$

so each halfspace is moved inward by $\delta_k$ along its normal. The bounds $\bar a_k$ and $\bar v_k$ are decision-relevant but entered as fixed per-iteration values, so a short loop of plan → recompute margins → replan keeps every solve convex. If $g$ is monotone and the corridor is feasible at zero margin, the loop converges or certifies infeasibility. In the infeasible case the planner lowers the aggressiveness bounds, and the drone slows down only where the corridor is tight.

Relation to Prior Work

The corridor side supplies the planning machinery. Bubble Planner chains overlapping spheres and flies a real drone through woods above 13.7 m/s. An Efficient B-spline-Based Kinodynamic Replanning Framework for Quadrotors inflates an "elastic tube" of spheres and refines it by a quadratically constrained program. CMPCC enforces polygon tubes inside a convex model-predictive controller solved in about 5 ms. All three assume the vehicle executes the plan, and the research file lists tracking drift outside corridor envelopes during extreme maneuvers as an open limitation. We reuse their corridor construction unchanged and change only the walls the optimizer sees.

Two papers come closest to our goal. DRSCC-TO tightens corridor constraints with a Wasserstein distributionally robust chance constraint, which still reformulates to a quadratic program. It reports 5,718 versus as few as 5 violations in 10,000 trials. Its uncertainty, however, is in the map (point-cloud noise), and it assumes ideal execution. We use the same mechanism of tightening a convex constraint, but the uncertainty source is the dynamics gap, and the tightening depends on the maneuver rather than being static. The two are complementary, and we test their combination. MPCC++ shows that hard prismatic tunnels beat soft contouring penalties at over 80 km/h. It closes the reality gap with residual dynamics fit to real flight data on a known track with motion capture. We aim for the same safety without any real data and in unknown clutter.

The sim-to-real side motivates and constrains the design. SPiDR shows that disagreement across randomized dynamics, added as a pessimistic cost in safe reinforcement learning, gives zero-shot constraint satisfaction on real quadrupeds and RC cars. Standard randomization produced 26.1× more violations on the quadruped. That result is our evidence that randomized ensembles carry usable safety information. We differ by putting that information into geometry instead of a cost critic, which removes its hand-tuned penalty weight. Sim-to-Real: Learning Agile Locomotion For Quadruped Robots and the reality-gap literature summarized in the file both identify actuator latency as a primary transfer barrier, so latency is a randomized axis we must cover. The file also records a constraint: randomized policies fail when reality falls outside the randomization support. Our margins inherit that weakness, and the experiments below are built to expose it. Champion-level drone racing and Deep Drone Racing show strong transfer with learned policies, but neither puts a hard spatial envelope under the policy.

Research Program

We build the pipeline in Flightmare, whose parallel rigid-body physics (over 200,000 steps per second for 150 quadrotors) makes large randomized rollout sets cheap. The planner is a polyhedral corridor generator feeding a Bézier quadratic program. The tracker is a standard geometric/MPC position controller held fixed throughout, because the margin is a property of the plan–tracker pair.

The first phase is diagnostic and must succeed before anything else is worth doing. Across randomized $\theta$ (mass ±20%, drag coefficients, thrust constant, motor time constant, 0–40 ms command delay), we measure whether maximum segment deviation is actually predicted by planned acceleration, speed and jerk. If deviation is roughly constant across maneuvers, the idea collapses into a constant margin and we stop.

The second phase fits $g$, starting with a monotone piecewise-linear quantile regressor. A monotone form keeps the replanning loop well behaved. We calibrate it with split-conformal quantiles on held-out randomized rollouts, which gives a $1-\epsilon$ coverage guarantee under the randomization distribution, and only under it.

The third phase integrates $g$ into the plan–margin–replan loop and measures latency against the roughly 13 ms budget that Bubble Planner reports onboard.

The fourth phase deploys on a real LiDAR quadrotor with motion capture used only for evaluation, never for training.

Baselines

The naive reference is the unmodified corridor planner with zero margin beyond the drone's physical radius, run with the identical corridor generator, tracker and goal sets. It tells us how much drift-induced violation actually exists.

The skeptic's main competitor is a constant margin: the same corridor shrunk uniformly by a fixed $\delta$. We do not hand-pick $\delta$. We sweep it to trace a full speed-versus-violation curve, with the sweep budget matching the number of rollouts used to fit $g$. Beating it means our method's single operating point lies strictly above that curve, giving lower violation rate at equal mean speed or higher speed at equal violation rate, on held-out environments.

The second competitor is a tube built from a fixed disturbance bound, in the spirit of robust MPC. Corridors are shrunk by a margin derived from the worst-case deviation observed under randomization, independent of maneuver. This isolates whether conditioning on aggressiveness matters beyond simply using randomized data.

The third is DRSCC-TO DRSCC-TO, run on the same maps with matched point-cloud noise. Its reported 5,718 versus 5 violations was measured on a different simulator and noise model, so we re-run it rather than compare numbers. We expect it to handle map noise but not dynamics drift, and we also test the stacked version, with their tightening plus ours.

The strongest hardware reference is MPCC++-style real-data residual fitting MPCC++, which reports a 100% success rate with zero gate collisions on the Split-S track and a 5.38 s average lap, against 59–83% success for baseline MPCC. It uses real flight data and a known track, so we treat it as an upper reference. Our zero-shot method would count as competitive if it reaches comparable success at no worse than about 10% slower lap time with zero real training data.

Two ablations isolate the key ingredient. In the first, the margin comes from one-step next-state ensemble disagreement, as in SPiDR, instead of closed-loop tracking quantiles. In the second, $g$ is fit on nominal dynamics only, with no randomization.

Why not just…?

Why not just shrink the corridor by a constant safety margin? This is the real threat, and the diagnostic phase exists to settle it. The physical argument against it is that drag and motor lag errors scale with acceleration and speed, so a constant margin large enough for the hardest turn wastes free space on straights. If phase one shows deviation is flat across maneuvers, or if the swept constant-margin curve matches our operating point, we will report that the simpler method suffices and drop the claim.

Why not just learn residual dynamics from a short real flight, as MPCC++ and Swift do? MPCC++ and Swift (about 50 seconds of flight) show this works very well. Both collected that data on known, instrumented tracks, however, and the file notes that collecting near-margin data risks crashes. Our method requires no such flights. The two are also compatible: a residual model reduces the drift, and our margin covers what remains. We run the combination to measure how much the margin still contributes after residual correction.

Why not just train a safe RL policy with pessimistic randomization like SPiDR? SPiDR gives empirical constraint satisfaction, but its guarantee lives in a cost critic with a hand-tuned weight. A policy also cannot be inspected for whether it stays in free space in a new map. A corridor quadratic program either returns a trajectory inside the shrunk walls or reports infeasibility. The ablation that uses SPiDR's disagreement signal as our margin tests whether its uncertainty measure, rather than its RL machinery, is what matters.

Proposed Experiments

In simulation we use Flightmare forest and dense-pillar scenes at increasing obstacle density, echoing the 0.4 pillars/m² setting of the B-spline replanning work. We report collision rate, fraction of flight time outside true free space, minimum clearance, mean speed and time-to-goal over at least 1,000 start–goal pairs per density. For Bubble Planner the file gives only qualitative simulation success ("near 100%") at its own densities, so we re-run it. Each method is evaluated on its full speed-versus-violation curve, not at a single setting.

The decisive simulation check is out-of-support testing. We fit $g$ with motor delay up to 20 ms and test at 30–40 ms, and we test drag regimes outside the training range. This measures how gracefully coverage degrades when reality leaves the randomized distribution, the failure mode the file flags for domain randomization.

On hardware we fly a LiDAR quadrotor through an indoor clutter course and an outdoor tree line, with motion capture for ground truth wherever available. We compare zero margin, swept constant margin, and our method at matched mean speeds and count wall violations of the true corridor across repeated runs. Payload changes of ±15% serve as a real-world mass shift.

The project succeeds if three things hold. The diagnostic shows maneuver-dependent drift. The learned margin dominates the constant-margin curve on held-out maps. Real-flight violation rates fall within the conformal target $\epsilon$ for in-support conditions. If the out-of-support tests show coverage collapsing, that negative result is also worth reporting, because it marks where geometric margins from randomized simulation stop being trustworthy.