NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Energy-Saving Snake Locomotion Gait Policy Using Deep Reinforcement Learning

Yilang Liu, Amir Barati FarimaniarXiv 2021

Introduction

Snake robots are uniquely suited for navigating complex, narrow environments such as disaster zones or industrial pipelines. However, their high degrees of freedom present a significant control challenge. Traditionally, engineers have relied on the "serpenoid curve"—a mathematical model mimicking natural snake movement through sinusoidal waves. While functional, this approach often requires tedious manual parameter tuning and typically results in sub-optimal energy efficiency. This study investigates the application of Deep Reinforcement Learning (DRL) to develop more efficient locomotion policies that surpass traditional hand-tuned models.

Methodology

The researchers implemented a simulation-to-learning pipeline centered on the PyBullet physics engine. They modeled a snake robot with 17 joints using the Unified Robot Description Format (URDF).

Visualization of the snake robot model and target-seeking task in the PyBullet simulation environment.

The control task shifted from manual equation tuning to an RL agent learning to manage the angular velocity ($\omega$) of each joint at every timestep. Two primary DRL algorithms were compared: Proximal Policy Optimization (PPO) and Trust Region Policy Optimization (TRPO), both implemented via the Stable Baselines library. The reward function was designed to incentivize forward progress and velocity while applying a constant time penalty to discourage inefficient "wandering."

Key Results and Insights

The experimental results demonstrate that the DRL-trained PPO agent significantly outperforms the industry-standard serpenoid curve controller.

  • Enhanced Speed: The learned policy achieved a forward velocity of 0.35 m/s, a 7.5% improvement over the 0.3 m/s reached by the traditional controller.
  • Superior Energy Efficiency: Most notably, the PPO agent reduced power consumption by 38%, using only 0.152 W compared to the 0.247 W required by the hand-tuned model.
Comparison of average power consumption between RL control and traditional equation-based control across different joint counts.

The study also uncovered a "sweet spot" regarding robot morphology. By testing configurations ranging from 5 to 18 joints, the researchers found that 10 joints provided the maximum energy efficiency for this specific task. Increasing the joint count beyond this point raised the "cost of transport" without yielding proportional speed benefits.

Discussion and Future Work

This research highlights the potential of DRL to automate the discovery of sophisticated locomotion gaits that are both faster and more energy-efficient than traditional mathematical derivations. While the current study focused on optimizing joint frequency, future work will expand the action space to include parameters like amplitude and phase offset. Additionally, the researchers plan to evaluate these policies in obstacle-rich environments and transition from simulation to physical hardware to address the "sim-to-real" gap.

Summary updated

BibTeX
@misc{liu2021energy,
  author = {Yilang Liu and Amir Barati Farimani},
  title = {{An Energy-Saving Snake Locomotion Gait Policy Using Deep Reinforcement Learning}},
  year = {2021},
  eprint = {2103.04511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.04511},
}
Figure