DIRECT: A Differential Dynamic Programming Based Framework for Trajectory Generation

Kun Cao, Muqing Cao, Shenghai Yuan, Lihua Xie

TL;DR

DIRECT is a novel framework that reformulates polynomial trajectory generation for robots as a discrete-time optimal control problem. By mapping polynomial segments into a state-space representation, the authors leverage Differential Dynamic Programming (DDP) to achieve linear computational complexity, allowing for the joint optimization of trajectory shape and time allocation simultaneously.

What Problem Does This Paper Address?

Generating smooth, safe, and fast trajectories for mobile robots (like quadrotors) is a balancing act. Traditionally, researchers use piecewise polynomial trajectories. However, existing methods face several hurdles:

  1. Computational Complexity: Many approaches rely on Quadratic Programming (QP) with large matrices or bi-level optimization (alternating between "how the path looks" and "how fast to go"). These can become computationally expensive as the number of segments increases.
  2. Discretization Issues: Standard DDP methods, while efficient, usually require very fine time-discretization to handle highly nonlinear systems, making it difficult to plan long-duration flights.
  3. Continuity Constraints: Ensuring that segments transition smoothly (e.g., no sudden jumps in acceleration) often requires adding complex equality constraints to the optimization problem.

Methods

The core innovation of DIRECT is a change in perspective: treating a sequence of polynomial segments as a discrete-time dynamical system.

  • State-Space Representation: Instead of optimizing a massive list of polynomial coefficients, the authors represent the trajectory using the robot's state (position, velocity, acceleration, etc.) at the endpoints of each segment.
  • Automatic Continuity: By using this state-space approach, the continuity between segments is "baked in"—the end state of segment $k$ is naturally the start state of segment $k+1$.
  • IPDDP Solver: To handle real-world constraints like obstacle-free "safe corridors" and physical limits (max velocity/acceleration), the authors use an Interior-Point Differential Dynamic Programming (IPDDP) algorithm.
  • Joint Optimization: Unlike methods that alternate between optimizing energy and time, DIRECT optimizes both in a single process.
  • MINVO Basis: For safety constraints, they utilize the MINVO basis to represent the "volume" the robot occupies, which is less conservative (more efficient) than the commonly used Bezier curves.

Datasets

The paper evaluates the framework through:

  • Numerical Benchmarks: Comparisons against state-of-the-art methods (specifically those by Gao and Sun) using 10 randomly generated paths with 64 safety flight corridors.
  • Large-Scale Simulations: Testing the unconstrained version of the algorithm on trajectories with up to $10^6$ segments.
  • Physical Experiments: Real-world flight tests using a quadrotor equipped with an i7 onboard computer, navigating a two-room environment with 34 polyhedral safe zones.

Key Insights and Ideas

  • Polynomials as Control Systems: The "aha" moment is realizing that the relationship between polynomial coefficients and endpoint states can be written as a linear transition equation. This transforms a geometric problem into a control problem.
  • Linear Complexity: Because DDP scales linearly with the number of time steps (or in this case, segments), DIRECT is much better suited for long-range missions than traditional solvers that might scale cubically.
  • Softened Constraints: By incorporating terminal goals into the cost function rather than as "hard" constraints, the algorithm maintains a higher success rate in finding feasible paths in complex environments.

Key Results

  • Efficiency: For trajectories with a moderate number of segments ($N \leq 40$), DIRECT was faster than the compared state-of-the-art methods.
  • Scalability: In unconstrained scenarios (Linear-Quadratic Tracking), the algorithm demonstrated true linear complexity, processing a million segments in roughly 10 seconds.
  • Performance: In flight tests, the quadrotor successfully navigated complex corridors at speeds up to 2.5 m/s and accelerations of 3 m/s², proving the framework's real-time viability.
  • Success Rate: DIRECT showed a marginally higher success rate in finding valid trajectories compared to bi-level optimization methods, particularly as the number of segments increased.

Limitations and Future Work

  • Initialization: The algorithm requires a feasible initial trajectory to start the optimization. While the authors use an "Infeasible-IPDDP" method to find one, this remains a critical first step.
  • System Specifics: The current framework is designed for "differently flat" systems (like quadrotors). Extending this to more complex, non-flat robotic systems would require further derivation.
  • Multi-Robot Extension: The authors suggest that future work could extend this joint optimization to multi-robot scenarios, incorporating inter-robot collision avoidance.

Summary updated

BibTeX
@article{cao2022direct,
  author = {Kun Cao and Muqing Cao and Shenghai Yuan and Lihua Xie},
  title = {{DIRECT: A Differential Dynamic Programming Based Framework for Trajectory Generation}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2022},
  url = {https://openreview.net/forum?id=oAa9qsv46lY},
}
Figure