Hybrid Systems Differential Dynamic Programming for Whole-Body Motion Planning of Legged Robots

He Li, Patrick M. WensingarXiv 2020

This research, authored by He Li and Patrick M. Wensing, introduces a robust framework for planning the complex, high-speed movements of legged robots. By extending Differential Dynamic Programming (DDP) to handle the "hybrid" nature of walking and running—where smooth motion is interrupted by sudden impacts—the authors provide a path toward more agile and efficient robotic locomotion.

The Challenge of Hybrid Dynamics

Legged robots are inherently hybrid systems: their behavior is defined by continuous dynamics (swinging a leg through the air) punctuated by discrete events (the foot hitting the ground). These impacts cause sudden jumps in velocity, which standard trajectory optimization tools struggle to handle effectively.

The hybrid gait cycle of a legged robot, showing transitions between stance and flight phases.

Existing solutions often rely on "reduced-order models" (like a simplified pendulum) to maintain real-time performance, but these models ignore the robot's full physics, preventing complex maneuvers like jumping or standing up. Conversely, "whole-body" planning is physically accurate but computationally expensive and often fails to properly account for the exact timing of impacts and physical constraints like motor torque limits or foot slippage.

The HS-DDP Framework

The core contribution is the Hybrid Systems Differential Dynamic Programming (HS-DDP) framework, which optimizes both the whole-body trajectories and the timing of footfalls. The framework integrates several algorithmic advances into a unified optimization loop:

  1. Impact-Aware DDP: New update equations for the DDP "value function" (the cost-to-go) explicitly account for the jump in state that occurs during a landing impact.
  2. Augmented Lagrangian (AL) for Switching: To ensure the robot's foot hits the ground at the intended "switch" time, an AL method enforces the switching constraint without the numerical instability common in simpler penalty-based methods.
  3. Switching Time Optimization (STO): This algorithm treats gait timings as variables to be optimized. Crucially, it leverages the feedback gains already calculated by DDP to make more stable and aggressive updates to the timing.
  4. Relaxed Barrier (ReB) Method: To handle inequality constraints—such as maximum torque or friction cones—the authors integrate a "relaxed barrier" function. This allows the optimizer to start from an infeasible initial guess and smoothly move toward a valid solution.
Flowchart of the HS-DDP algorithm, illustrating the nested loops for DDP, Augmented Lagrangian (AL) + Relaxed Barrier (ReB), and Switching Time Optimization (STO).

Key Insights and Results

A significant insight from this work is that including the DDP feedback gain ($K$) in the switching time optimization allows for much larger steps toward the optimal solution. Without this feedback, the optimizer is "blind" to how a change in timing affects the rest of the trajectory, leading to slow convergence.

The framework was evaluated using a high-fidelity simulation of the MIT Mini Cheetah robot performing a bounding gait. Key results include:

  • Rapid Convergence: The AL and ReB methods successfully enforced switching constraints, friction cones, and torque limits within just four major iterations.
  • Efficient Timing: The STO algorithm achieved a 21.1% reduction in total gait time compared to the initial guess and was 2.3 times more effective at reducing switching times than previous methods lacking the DDP feedback term.
  • Physical Realism: Unlike standard DDP, HS-DDP trajectories correctly recognized ground height and reset dynamics appropriately at every impact, ensuring the generated motions are physically realizable.

Future Directions

While demonstrated on a 2D model of the Mini Cheetah, the mathematical foundations of HS-DDP scale to 3D. Future work will focus on high-performance C++ implementations to enable "Online MPC" (Model Predictive Control), where the robot can replan its path in real-time. Additionally, the authors aim to address "gait discovery," allowing the robot to autonomously decide its gait pattern based on the terrain.

Summary updated

BibTeX
@misc{li2020hybrid,
  author = {He Li and Patrick M. Wensing},
  title = {{Hybrid Systems Differential Dynamic Programming for Whole-Body Motion Planning of Legged Robots}},
  year = {2020},
  eprint = {2006.08102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.08102},
}
Figure