Online Dynamic Trajectory Optimization and Control for a Quadruped Robot

Oguzhan Cebe, Carlo Tiseo, Guiyang Xin, Hsiu-Chin Lin, Joshua Smith, Michael N. Mistry

TL;DR

This paper introduces a fast, online trajectory optimization framework for quadruped robots that simultaneously plans base and footstep motions. By using a simplified task-space momentum model and an analytical reachability cost, the system achieves computation times fast enough (~18 ms per iteration) to react to sudden environmental changes, such as a box being dynamically pushed into the robot's path.

What Problem Does This Paper Address?

Navigating uneven terrain with legged robots is a complex challenge because the robot's body motion and footstep placements are highly coupled and constrained by physics (e.g., friction cones, unilateral forces). Traditionally, roboticists either decouple these two problems—which is fast but limits the robot's dynamic capabilities—or couple them into a single Nonlinear Optimal Control Problem (NLOP).

However, coupled NLOPs are notoriously computationally heavy. They usually require carefully tuned warm starts and offline planning, making them poorly suited for real-time adaptation. If a robot is walking and the environment suddenly changes (like a moving obstacle appearing), offline or slow-coupled planners cannot replan fast enough to prevent a fall. This paper aims to bridge that gap by creating a coupled planner that is lightweight enough to run entirely online.

Methods

The authors propose a coupled trajectory optimization framework that replans at every single foot touchdown. Key techniques include:

  • Reduced Momentum Model in Task Space: Instead of using complex joint-space variables (the angles of every single motor), the dynamics are modeled in Cartesian task space (the 3D position of the body and feet). This strips out heavy nonlinearities, speeding up the optimization.
  • Analytical Reachability Cost: Instead of using complex numerical gradients to ensure the robot's legs can physically reach a planned step, they use a convex, linear least-squares interpolation between a nominal and altered posture.
  • The "Attractor" Step Strategy: The planner optimizes a two-step horizon, but only the first step is actually tracked by the low-level controller. The second step acts as a "statically stable attractor," guiding the optimization toward a safe, zero-velocity terminal state without forcing the robot to actually halt its momentum after the first step.
  • Whole-Body Control (WBC): The optimized task-space trajectories are passed to a 400Hz Task Space Projected Inverse Dynamics Controller (TS-PIDC). This high-frequency controller handles the actual joint torques and ensures strict contact force constraints are met.

Datasets

Not discussed in the paper. The authors evaluate their approach using real-world and simulated physics environments rather than static machine learning datasets. Real-world experiments were conducted using an ANYmal quadruped robot tracked by a VICON motion capture system.

Key Insights and Ideas

  • Task-space simplification pays off: By keeping joint-space variables out of the trajectory optimizer and delegating them to the high-frequency whole-body controller, the optimization problem becomes significantly more tractable for online use.
  • Convex approximations save critical time: Replacing complex kinematic reachability constraints with a simplified, analytical quadratic cost function sacrifices a tiny bit of optimality but guarantees the fast gradient calculations necessary for real-time control.
  • Overplanning to execute smoothly: Planning two steps but only executing one is a clever trick. The unexecuted second step provides a stable mathematical anchor for the optimizer, ensuring the first step is dynamically safe and continuous.

Key Results

  • Speed: The planner achieves an average iteration time of 18.34 ms on a consumer-grade laptop, converging in just 4 iterations without needing a warm start. On the robot's actual onboard PC, a full two-step trajectory converges in roughly 100 ms.
  • Dynamic Obstacle Avoidance: In real-world experiments with the ANYmal robot, the system successfully replanned its trajectory on the fly to climb over a 15 cm box that was suddenly pushed into its path mid-stride.
  • Complex Terrain: In simulation, the framework successfully navigated a 30 cm wide gap with a 10 cm height difference, and autonomously adjusted its footstep placements to avoid stepping on a 10 cm spherical obstacle.

Limitations and Future Work

  • Short Horizon: The system is currently limited to a two-step horizon. Planning further ahead requires more computation time and complex, time-variant reference states that the current solver cannot handle within the strict time window of a footstep.
  • Limited Push Recovery: Because the optimizer only runs at foot touchdown events, the robot cannot reactively alter its footstep trajectory mid-swing (e.g., if it gets shoved while a leg is in the air).
  • Heuristic Contact Planes: For non-convex terrain, the framework relies on heuristics to select contact planes. Making the contact planes actual decision variables would turn the math into a Mixed-Integer problem, which is currently too slow for online use.
  • Future Work: The authors plan to improve computational efficiency to allow for longer planning horizons and to enable intermediate trajectory optimization during the swing phase, which would unlock advanced push-recovery behaviors.

Summary updated

BibTeX
@inproceedings{cebe2021online,
  author = {Oguzhan Cebe and Carlo Tiseo and Guiyang Xin and Hsiu-Chin Lin and Joshua Smith and Michael N. Mistry},
  title = {{Online Dynamic Trajectory Optimization and Control for a Quadruped Robot}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9561592},
}
Figure