Humanoid Whole-Body Locomotion on Narrow Terrain via Dynamic Balance and Reinforcement Learning

Weiji Xie, Chenjia Bai, Jiyuan Shi, Junkai Yang, Yunfei Ge, Weinan Zhang, Xuelong Li

Abstract

Humans possess delicate dynamic balance mechanisms that enable them to maintain stability across diverse terrains and under extreme conditions. However, despite significant advances recently, existing locomotion algorithms for humanoid robots still struggle to traverse extreme environments, especially in cases that lack external perception (e.g., vision or LiDAR). This is because current methods often rely on gait-based or perception-condition rewards, lacking effective mechanisms to handle unobservable obstacles and sudden balance loss. To address this challenge, we propose a novel whole-body locomotion algorithm based on dynamic balance and Reinforcement Learning (RL) that enables humanoid robots to traverse extreme terrains, particularly narrow pathways and unexpected obstacles, using only proprioception. Specifically, we introduce a dynamic balance mechanism by leveraging an extended measure of Zero-Moment Point (ZMP)-driven rewards and task-driven rewards in a whole-body actor-critic framework, aiming to achieve coordinated actions of the upper and lower limbs for robust locomotion. Experiments conducted on a full-sized Unitree H1-2 robot verify the ability of our method to maintain balance on extremely narrow terrains and under external disturbances, demonstrating its effectiveness in enhancing the robot's adaptability to complex environments.

Introduction

Traversing "extreme" terrains—such as narrow ridges, steep slopes, or obstacle-strewn paths—remains a significant challenge for humanoid robots. Most current Reinforcement Learning (RL) controllers rely on "blind" periodic gaits or motion primitives. While effective on flat ground, these approaches are often too rigid to handle sudden balance loss or the precise foot placement required for narrow support areas. Furthermore, many robots rely heavily on external perception (vision/LiDAR) to plan steps. However, sensors can fail, suffer from latency, or be obscured in real-world scenarios.

This research introduces DBHL (Dynamic Balanced Humanoid Locomotion), a framework that enables full-sized humanoid robots to maintain dynamic stability in complex, narrow environments using only proprioception (internal sensors like joint positions and IMUs). The core innovation lies in integrating classical control theory—specifically the Zero Moment Point (ZMP) stability criterion—directly into an RL reward function, allowing the robot to use its entire body to maintain balance.

Figure 1: The DBHL framework enables the Unitree H1-2 to navigate a 25cm narrow path and recover from unexpected obstacles like a moving stick using only proprioception.

Methodology

DBHL combines the strengths of deep reinforcement learning with the physical grounding of classical control. The framework utilizes several key mechanisms:

ZMP-Driven Reward

The Zero Moment Point (ZMP) is the point where the net horizontal moments of inertial and gravitational forces are zero. If the ZMP stays within the robot’s support polygon, it will not tip over. The authors extend this concept to non-planar surfaces (the Zero Moment Line) and reward the RL policy for keeping the ZMP near the center of the support area. This provides a fine-grained stability signal, allowing the policy to proactively adjust the center of mass before a fall begins.

Whole-Body Coordination and Regularization

Unlike controllers that focus solely on leg movements, DBHL trains the robot to use its upper body as an active stabilizer. Much like a tightrope walker uses their arms to counteract angular momentum, the robot learns to swing its arms to stay upright. To ensure these movements remain realistic and efficient, the authors employ Angular Momentum Regularization and Multiplicative Action Noise, which encourages small, cautious upper-body movements unless a large correction is strictly necessary.

Reward Vectorization

Instead of collapsing all objectives (speed, balance, energy efficiency) into a single scalar reward, DBHL uses a multi-head "critic" network. This vectorization allows the agent to learn the value of critical balance rewards independently, preventing them from being overshadowed by larger rewards like forward velocity.

Experimental Results

Simulation and Training

The system was trained in Isaac Gym using a terrain curriculum of 20 difficulty levels, where paths gradually narrowed from 1.0m to 0.2m. High-fidelity verification was performed in MuJoCo before hardware deployment on a Unitree H1-2 humanoid.

Hardware Performance

In real-world testing, DBHL demonstrated remarkable robustness across several challenging scenarios:

  • Narrow Path Success: On a 25cm wide flat path, DBHL achieved a 90% success rate, whereas standard RL baselines failed completely (0% success).
  • Robustness to Disturbances: The robot successfully traversed narrow tracks while carrying a 5kg payload, withstanding human pushes, and walking over irregular surfaces like acupressure plates and stone-paved paths.
  • Obstacle Recovery: The robot demonstrated the ability to recover its balance even when tripped by a moving stick, a task that typically requires high-frequency reactive control.
Figure 2: Robustness tests including carrying a 5kg payload, navigating dense conical obstacles, and maintaining balance under human-initiated pushes on unconstructed terrain.

Conclusion and Future Work

DBHL proves that high-frequency proprioceptive feedback, when combined with physically-informed RL rewards like ZMP, is sufficient for humanoid robots to navigate extreme, narrow terrains. The integration of whole-body coordination, particularly active arm swinging, is essential for maintaining balance in these "blind" scenarios.

Future work will focus on integrating vision for proactive foothold planning, allowing the robot to choose optimal paths rather than just reacting to the terrain underfoot. Additionally, the researchers aim to bridge the sim-to-real gap further to handle more highly dynamic environments, such as moving crowds.

Summary updated

BibTeX
@inproceedings{xie2025humanoid,
  author = {Weiji Xie and Chenjia Bai and Jiyuan Shi and Junkai Yang and Yunfei Ge and Weinan Zhang and Xuelong Li},
  title = {{Humanoid Whole-Body Locomotion on Narrow Terrain via Dynamic Balance and Reinforcement Learning}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
  doi = {10.1109/iros60139.2025.11246060},
}
Figure