Introduction
Generating time-optimal trajectories for quadrotors is critical for high-stakes applications like drone racing and search-and-rescue. The fundamental challenge in this domain is time allocation: determining the precise moment a drone should pass through a specific waypoint to minimize the total flight duration. Traditional methods often rely on pre-defined time assignments or smooth polynomial paths, both of which introduce suboptimality by artificially constraining the solver or preventing the drone from reaching its true physical limits.
Complementary Progress Constraints (CPC)
This work introduces Complementary Progress Constraints (CPC), an optimization framework that treats waypoint completion times as decision variables rather than fixed parameters.
Simultaneous Optimization of Path and Timing
In standard numerical optimization, waypoints are typically assigned to specific time nodes. If these assignments are incorrect, the resulting trajectory cannot be truly optimal. CPC bypasses this by introducing a progress variable ($\lambda$) for each waypoint. These variables evolve from 1 (incomplete) to 0 (complete) throughout the flight.
The "secret sauce" of this method is the complementarity constraint. It enforces a logical "OR" condition: either the progress variable for a waypoint remains constant, or the drone is physically within a defined tolerance distance ($d_{tol}$) of that waypoint. By embedding this logic into the optimization problem (solved via CasADi and IPOPT), the solver can dynamically adjust when waypoints are reached to find the global minimum for total flight time.
The Suboptimality of Polynomials
A key insight of this research is that traditional polynomial-based planners are inherently limited. While they produce "smooth" trajectories, they rarely utilize the full actuator potential of the quadrotor. Truly time-optimal maneuvers require "bang-bang" control, where the drone operates at its maximum acceleration or deceleration limits for extended periods.
As shown in the figure above, higher-order polynomials only touch the maximum acceleration limits ($a_{max}$) at single points, whereas the optimal bang-bang profile saturates the limits to achieve faster completion times.
Experimental Results
The CPC framework was validated across various simulated and real-world benchmarks:
- Drone Racing Simulation: On the NeurIPS AirSim Drone Racing Lab track, CPC achieved a completion time of 24.11s, a 20% improvement over the best human/team performance of 30.11s.
- Real-World Maneuvers: In a motion-captured hairpin turn, CPC outperformed an expert human pilot by approximately 11% (0.874s vs 0.984s), primarily by executing much later and more aggressive braking maneuvers.
- Dynamic Fidelity: Unlike point-mass models, CPC accounts for the non-linear coupling between translation and rotation, ensuring that generated trajectories are physically feasible even at the edge of the flight envelope.
Limitations and Future Outlook
While CPC pushes drones to their physical limits, it comes with trade-offs. The optimization process is computationally intensive, taking minutes to hours, which precludes real-time onboard execution. Furthermore, flying at absolute physical limits leaves zero margin for error; environmental disturbances like wind gusts could render these trajectories unrecoverable. Future work aims to utilize CPC-generated trajectories as "gold standard" training data for neural network-based controllers capable of real-time, robust execution.
Summary updated