A Hierarchical Framework for Quadruped Robots Gait Planning Based on DDPG

Yanbiao Li, Zhao Chen, Chentao Wu, Haoyu Mao, Peng SunBiomimetics 2023 · DOI

TL;DR

This paper tackles the challenge of controlling quadruped robots by introducing a hierarchical reinforcement learning framework. By separating high-level motion planning from low-level control, they achieve more stable and efficient locomotion compared to a standard DDPG approach.

What Problem Does This Paper Address?

Quadruped robots, with their complex continuous states and vast action spaces, are notoriously difficult to control optimally using traditional reinforcement learning (RL) methods. This complexity makes it hard for a single RL agent to learn effective locomotion strategies, especially when dealing with dynamic environments and the need for precise movements. The authors aim to overcome this by proposing a structured approach that breaks down the control problem into manageable layers.

Methods

The core of this work is a Hierarchical Reinforcement Learning (HRL) framework. This framework consists of two main components:

  • High-Level Planner: This layer uses the Deep Deterministic Policy Gradient (DDPG) algorithm to generate "motion parameters." These parameters are essentially high-level goals for the robot's movement, such as desired forward velocity, step length, and lifting height. The high-level planner receives observations about the robot's state (center of mass position, orientation, velocity) and learns to output these parameters to maximize cumulative reward.
  • Low-Level Controller: This layer takes the motion parameters from the high-level planner and the robot's immediate sensor data (IMU readings) to compute the actual joint motor torques. It employs:
  • Model Predictive Control (MPC): Used for the supporting legs to calculate optimal foot-end forces, considering predicted future dynamics.
  • Composite Trajectory Planning and PD Controller: Used for the swinging legs to generate smooth foot trajectories and corresponding forces.
  • Inverse Kinematics: Used to translate desired foot forces into joint torques.

The DDPG algorithm itself uses an actor-critic architecture with four neural networks (actor, critic, target actor, target critic) and a replay buffer for training.

Datasets

The paper does not explicitly mention using pre-existing datasets for training or evaluation. Instead, the experiments were conducted using Simulink simulations of a quadruped robot. The training involved 4000 cycles, with each cycle limited to 10 seconds.

Key Insights and Ideas

  • Decomposition is Key: Breaking down the complex quadruped locomotion problem into high-level planning and low-level control significantly improves learning efficiency and performance.
  • HRL for Stability: The hierarchical approach leads to more stable locomotion, evidenced by reduced roll and pitch angle variations, compared to a flat DDPG approach.
  • Predictive Control for Ground Interaction: Using MPC for support legs allows for more robust handling of ground forces and better adaptation to terrain.
  • Smooth Trajectories for Swing Legs: Pre-defined swing leg trajectories minimize impact and ensure smoother transitions.
  • DDPG as a High-Level Goal Setter: DDPG proves effective at learning to set appropriate high-level motion goals for the lower-level controller.

Key Results

The authors conducted comparative experiments between their hierarchical framework (Group_1) and a standard DDPG approach (Group_0).

  • Improved Motion Stability: Group_1 exhibited significantly less fluctuation in its center of mass (X, Y, and Z axes) and much smaller variations in roll and pitch angles compared to Group_0. For instance, roll angle variance for Group_1 was 8.9 × 10⁻⁴, compared to 2.5 × 10⁻³ for Group_0.
  • Faster and More Efficient Training: Group_1 showed a rapid increase in reward after approximately 1700 episodes, surpassing Group_0 and reaching a final reward of ~175, which is about 45% higher than Group_0's ~120.
  • Effective Gait Execution: Group_1 successfully learned to execute a trot gait, while Group_0's locomotion was described as suboptimal, with an emphasis on body balance over efficient movement.
  • Smoother Velocity Profiles: In the X-axis displacement, Group_1 achieved a nearly constant forward velocity, whereas Group_0 experienced deceleration.

Limitations and Future Work

  • Simulation-Based: The current work is based on simulations. The authors acknowledge the need to transition these algorithms to a physical quadruped robot prototype.
  • Environmental Data: Future work will focus on integrating diverse sensors to acquire real-time environmental data for more robust control in authentic conditions.
  • Algorithm Migration: A key future step is the migration of the established control algorithms from simulation to hardware interfaces.
  • Generalization: While not explicitly stated as a limitation, the paper mentions that issues related to training complexity and generalization remain subjects for further attention in related HRL work.

Summary updated

Abstract

In recent years, significant progress has been made in employing reinforcement learning for controlling legged robots. However, a major challenge arises with quadruped robots due to their continuous states and vast action space, making optimal control using simple reinforcement learning controllers particularly challenging. This paper introduces a hierarchical reinforcement learning framework based on the Deep Deterministic Policy Gradient (DDPG) algorithm to achieve optimal motion control for quadruped robots. The framework consists of a high-level planner responsible for generating ideal motion parameters, a low-level controller using model predictive control (MPC), and a trajectory generator. The agents within the high-level planner are trained to provide the ideal motion parameters for the low-level controller. The low-level controller uses MPC and PD controllers to generate the foot-end force and calculates the joint motor torque through inverse kinematics. The simulation results show that the motion performance of the trained hierarchical framework is superior to that obtained using only the DDPG method.
BibTeX
@inproceedings{li2023hierarchical,
  author = {Yanbiao Li and Zhao Chen and Chentao Wu and Haoyu Mao and Peng Sun},
  title = {{A Hierarchical Framework for Quadruped Robots Gait Planning Based on DDPG}},
  booktitle = {Biomimetics},
  year = {2023},
  doi = {10.3390/biomimetics8050382},
}
Figure