Online Optimization of Central Pattern Generators for Quadruped Locomotion

Zewei Zhang, Guillaume Bellegarda, Milad Shafiee, Auke Jan Ijspeert · DOI

Abstract

Traditional quadruped locomotion controllers often struggle to adapt to dynamic real-world conditions, such as varying payloads and slippery terrains, due to the complexity of parameter tuning. This paper presents a framework for the online optimization of Central Pattern Generators (CPGs) using Contextual Bayesian Optimization (CBO). By integrating bio-inspired rhythmic control with force feedback and virtual model control, the system achieves rapid adaptation on hardware, optimizing gait parameters in under three minutes of interaction. Experimental results on a Unitree Go1 robot demonstrate successful navigation with a 15 kg payload and efficient locomotion across varying slopes and friction levels.

Introduction

Legged robots are increasingly deployed in unpredictable environments, yet maintaining stable and efficient locomotion remains a significant challenge. The primary hurdle is the "sim-to-real" gap: controllers trained extensively in simulation often fail when encountering unexpected physical variables like a steep incline or a heavy, shifting payload. While Central Pattern Generators (CPGs)—neural networks that mimic rhythmic biological signals—offer a robust foundation for locomotion, their high-dimensional parameter spaces are notoriously difficult to tune manually or through traditional offline methods.

This research addresses the need for real-time adaptability. Instead of relying on static controllers, the authors propose a system that allows a robot to "learn" and refine its control parameters on the fly, directly on the hardware, as environmental conditions change.

Methodology

Control Architecture

The proposed framework utilizes a multi-layered control stack designed for both stability and flexibility:

  1. CPG + VMC Controller: The core locomotion is driven by a Hopf-oscillator-based CPG. To enhance stability, the authors incorporate Virtual Model Control (VMC) for posture management and "Tegotae" (force feedback). The Tegotae mechanism mimics biological responses by slowing the leg's rhythm when it encounters resistance, ensuring firm footing before proceeding with a stride.
  2. Contextual Bayesian Optimization (CBO): To optimize the CPG parameters efficiently, the system employs Bayesian Optimization, a sample-efficient method for black-box functions. By using the "Contextual" variant, the optimizer accounts for environmental variables—such as estimated slope and payload—allowing the robot to leverage prior knowledge when transitioning between different contexts.
  3. Online Context Estimation: The robot continuously estimates its state, specifically calculating cload (average normal force) and cslope (average pitch), to provide the optimizer with real-time environmental data.

Objective Function

The optimization process seeks to maximize a reward function that balances two critical metrics:

  • Velocity Tracking: Ensuring the robot accurately follows the commanded speed.
  • Cost of Transport (CoT): Minimizing energy consumption relative to weight and distance, a standard benchmark for robotic efficiency.

Experimental Setup

The framework was validated through a combination of simulation and hardware experiments:

  • Simulation: Extensive testing was conducted in the Gazebo simulator (ODE physics engine) to evaluate performance across a wide range of friction coefficients (0.3 to 0.9) and various inclines.
  • Hardware: Real-world trials were performed using the Unitree Go1 quadruped. The robot was tested on a treadmill to assess its ability to adapt to changing target velocities, slopes up to 10 degrees, and significant external payloads.

Key Results and Discussion

Extreme Sample Efficiency

One of the most striking findings is the system's efficiency. The framework can optimize a gait from scratch in approximately 40 trials, which equates to less than three minutes of real-world interaction. This represents a significant improvement over traditional reinforcement learning techniques, which typically require hours or days of training.

Payload and Slope Adaptation

The robot demonstrated remarkable resilience by adapting to a 15 kg payload—approximately 125% of its own nominal mass. This is currently the highest reported added payload for a Unitree Go1 in existing literature. Furthermore, the system successfully navigated 10-degree slopes on hardware and up to 12.5-degree slopes in simulation. Notably, the learned parameters showed strong generalization; a controller optimized for a 12.5-degree slope remained functional on a 17.5-degree slope without further tuning.

Energy Efficiency and Feedback

Ablation studies highlighted the importance of the integrated control stack. While a basic open-loop CPG could achieve locomotion, it was highly inefficient. The full CPG+VMC+Tegotae stack achieved a Cost of Transport (CoT) of ~0.518, compared to ~0.931 for the basic CPG. Force feedback was identified as the critical component for maintaining stability under heavy loads.

Conclusion and Future Work

This research demonstrates that combining bio-inspired control with sample-efficient optimization allows quadruped robots to adapt to complex real-world demands in near real-time. While the current framework excels in smooth environments with varying friction and slopes, future work will focus on introducing "safety rails" to the Bayesian Optimization process to prevent falls during exploration. Additionally, the authors intend to test the system on more rugged, uneven terrain and explore CPG optimization directly in joint space to further bridge the gap between biological and robotic locomotion.

Summary updated

BibTeX
@inproceedings{zhang2024online,
  author = {Zewei Zhang and Guillaume Bellegarda and Milad Shafiee and Auke Jan Ijspeert},
  title = {{Online Optimization of Central Pattern Generators for Quadruped Locomotion}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2024},
  doi = {10.1109/iros58592.2024.10802762},
}
Figure