TL;DR
Generating time-optimal trajectories for quadrotors usually requires solving slow, non-convex optimizations to respect motor limits and nonlinear dynamics. This paper introduces an imitation learning framework that replaces the slow numerical solver with a fast sequence-to-sequence model, predicting only a minimal set of differentially flat variables (squared-speed and yaw profiles). Combined with a sampling-based Backward Reachable Tube (BRT) robustness analysis and noise-injection training, the approach runs over 100× faster than classical solvers, tracks near-optimal trajectories, and successfully flies on physical Crazyflie hardware.
What Problem Does This Paper Address?
For agile micro aerial vehicles (MAVs) performing high-speed search-and-rescue, delivery, or drone racing, flight trajectories must push the drone to its physical limits. However, solving for time-optimal trajectories subject to full, nonlinear quadrotor dynamics and per-motor thrust limits is a notoriously difficult, non-convex problem.
Existing model-based solvers (such as TOPPQuad) solve an optimization problem over a high-dimensional state space ($16 \times N$ variables), taking seconds or even minutes to run—rendering them unusable for real-time onboard planning. Conversely, simplified polynomial planners are fast, but they ignore the quadrotor's full actuation constraints and miss the aggressive "bang-bang" maneuvers that minimize travel time.
Methods
The authors cast Time-Optimal Path Parameterization (TOPP) as an imitation learning problem:
- Minimal Feature Representation: Instead of forcing a neural network to predict high-dimensional states (like quaternions on $\mathbb{S}^3$) and control thrusts directly, the method leverages the differential flatness of quadrotors. The network maps the geometric path and its derivatives (path, velocity direction, and curvature $[\gamma, \gamma', \gamma'']$) to just two scalar sequences: the squared-speed profile $h(\cdot) = \dot{s}^2$ and the cosine of the yaw angle $\cos \theta_z(\cdot)$.
- Analytical Trajectory Unrolling: From $h(\cdot)$ and $\cos \theta_z(\cdot)$, the full physical states (body orientation, angular velocity, and nominal controls) are reconstructed deterministically via finite differences and differential flatness equations, then passed to a geometric $SE(3)$ tracking controller with motor-thrust clipping.
- Sampling-based BRT Robustness Analysis: To formally evaluate whether model imperfections lead to catastrophic crashes, the authors introduce a sampling-based approximation of the controller's finite-time Backward Reachable Tube (BRT). This metric—the in-BRT probability—quantifies whether the tracking controller can steer the drone back to the planned trajectory despite transient prediction errors.
- Noise Injection Training: To enhance local Lipschitz robustness against geometric variations, the training dataset is augmented with randomized spatial perturbations $\pi_\epsilon(\gamma)$, training the model to map slightly perturbed paths back to the nominal ground-truth profiles.
Input Path γ(·) + Derivatives [γ', γ'']
│
▼
┌───────────────────────┐
│ LSTM Encoder-Decoder │
└───────────────────────┘
│
▼
[h(·), cos θz(·)] (Squared-speed & Yaw)
│
▼ (Analytical Unrolling via Flatness)
Full State Trajectory r(·) = [h, q, ω]
│
▼
┌───────────────────────┐
│ SE(3) Tracking Control│ ──► Motor Commands u(·)
└───────────────────────┘
Datasets
The authors generated synthetic datasets using the RotorPy simulator calibrated to Crazyflie 2.0 drone dynamics:
- Simulation Dataset: 10,000 minimum-snap paths through random waypoints, discretized into 100 points and optimized using TOPPQuad with a 5 m/s speed limit.
- Hardware Dataset: 9,000 trajectories generated with a 2 m/s maximum speed, 10 m/s² acceleration limit, and 10 rad/s angular rate limit.
- Hardware Evaluation: 8 distinct geometric paths tested in a Vicon motion-capture flight arena.
Key Insights and Ideas
- Recurrent Architectures Outperform Transformers for TOPP: In architecture ablations, an attention-equipped LSTM Encoder-Decoder outperformed both standard autoregressive Transformers and Per-Step MLPs. Transformers struggled with teacher-forcing distribution shifts during sequential rollout, whereas the LSTM provided smooth, continuous speed profiles with near-zero failure rates.
- Minimal Output Bottlenecks Enforce Physics: By restricting the network's output to $[h, \cos \theta_z]$, dynamic coupling is handled algebraically rather than learned approximately, preventing the model from predicting invalid rotation matrices or out-of-distribution quaternion norms.
- Robustness vs. Optimality Tradeoff: Injecting path perturbations during training drastically reduced model sensitivity (dropping output variation from 0.306 to 0.013 under $\epsilon=0.1$) and kept in-BRT probabilities above 92%. However, overly large perturbation scales slightly degraded pure time-optimality.
Key Results
- Computation Speedup: The LSTM model generated trajectories in 0.064–0.096 seconds, representing a ~100× to 150× speedup over the model-based TOPPQuad optimizer (~10.08–10.66 s).
- Tracking & Optimality: On test trajectories, the LSTM achieved a maximum tracking deviation of 0.143 m (compared to TOPPQuad's 0.053 m) and a travel time difference ratio within 0.4% of the optimal solution.
- Baseline Superiority: Unlike polynomial baselines (AllocNet, which had a 28% failure rate, or MFBOTrajectory, which took over 3.7 hours due to online GP retraining), the proposed method maintained a 0% failure rate in standard benchmarks while utilizing the quadrotor’s full thrust envelope.
- Hardware Validation & Generalization: Deployed on an untethered Crazyflie 2.0, the learned planner achieved tracking error (0.355 m) on par with TOPPQuad (0.347 m). By autoregressively predicting path segments conditioned on the current state, the network successfully generalized to paths significantly longer than those seen during training.
Limitations and Future Work
- Hardware Specificity: The policy is tied to specific vehicle parameters; changing quadrotor mass, inertia, or motor limits requires collecting new data and retraining.
- Theoretical Infeasibility Bounds: While BRT sampling validates recoverability empirically, the neural network cannot theoretically guarantee dynamic feasibility on edge cases.
- Optimal Noise Bounds: Determining analytical bounds on the perturbation scale $\epsilon$ to maximize robustness without sacrificing time-optimality remains an open question.
Summary updated