Abstract
Hiking on complex trails demands balance, agility, and adaptive decision-making over unpredictable terrain. Current humanoid research remains fragmented and inadequate for hiking: locomotion focuses on motor skills without long-term goals or situational awareness, while semantic navigation overlooks real-world embodiment and local terrain variability. We propose training humanoids to hike on complex trails, driving integrative skill development across visual perception, decision making, and motor execution. We develop a learning framework, LEGO-H, that enables a vision-equipped humanoid robot to hike complex trails autonomously. We introduce two technical innovations: 1) A temporal vision transformer variant - tailored into Hierarchical Reinforcement Learning framework - anticipates future local goals to guide movement, seamlessly integrating locomotion with goal-directed navigation. 2) Latent representations of joint movement patterns, combined with hierarchical metric learning - enhance Privileged Learning scheme - enable smooth policy transfer from privileged training to onboard execution. These components allow LEGO-H to handle diverse physical and environmental challenges without relying on predefined motion patterns. Experiments across varied simulated trails and robot morphologies highlight LEGO-H’s versatility and robustness, positioning hiking as a compelling testbed for embodied autonomy and LEGO-H as a baseline for future humanoid development.
Bridging the Gap Between Vision and Agility
Humanoid robotics research has traditionally been bifurcated into two distinct silos: locomotion, which focuses on the "how" of walking (balance and joint control), and navigation, which addresses the "where" (pathfinding and semantics). However, real-world hiking represents a "grand challenge" that necessitates the tight integration of both. A robot on a rugged trail cannot simply follow a 2D path; it must perceive obstacles like fallen logs or narrow gaps, decide on a traversal strategy, and adjust its balance dynamically based on varying terrain friction and slope.
Current methods often struggle in these environments because they either oversimplify the terrain or lack the "body awareness" required to translate visual goals into feasible motor actions in real-time. LEGO-H addresses this by unifying perception and execution into a single, cohesive framework.
The LEGO-H Framework
The LEGO-H framework introduces two primary technical innovations to enable autonomous hiking:
1. TC-ViTs: Anticipatory Navigation
The Temporal Information Conditioned Vision Transformer (TC-ViT) module serves as the robot's "anticipatory brain." By processing sequences of depth images alongside GPS goals, it predicts a series of local navigation targets. This dual-pathway approach uses a transformer to capture long-range environmental dependencies while a shallow CNN preserves the fine-grained spatial details necessary for precise foot placement. This allows the robot to "prepare" its body for upcoming obstacles before it reaches them.
2. Hierarchical Metric Learning (HLM)
To bridge the gap between simulation and reality, LEGO-H employs a "Teacher-Student" training paradigm. The teacher policy is trained with "privileged" information—such as exact terrain height and ground friction—that is unavailable to the robot in the real world. The student policy, which relies solely on onboard vision, is trained to match the teacher's performance using a VAE-based hierarchical loss. This ensures "action rationality," meaning the student’s joint movements respect the structural dependencies of the robot's body, leading to stable transitions between different gaits.
Benchmarking on Complex Trails
The framework was evaluated using a new Simulated Hiking Benchmark built in the Isaac Gym environment. This benchmark includes five distinct trail types featuring steep slopes, wide ditches, tangled roots, and abrupt elevation changes, each with five levels of increasing difficulty. The system proved hardware-agnostic, showing success on both the adult-sized Unitree H1 and the lightweight Unitree G1 humanoid morphologies.
LEGO-H significantly outperformed existing baselines like RMA and EP-H. On the most complex trails, LEGO-H achieved a 68.4% success rate, compared to just 42.9% for a standard vision-based baseline. It also demonstrated superior efficiency (lower Time-to-Reach) and robustness (higher Time to Fall), indicating that temporal context is crucial for navigating irregular surfaces.
Emergent Agility and Motor Skills
One of the most significant findings was the emergence of complex motor skills that were not explicitly programmed. The robots learned to adapt their gaits fluidly to the environment, discovering self-reliant behaviors suited to their specific hardware.
As shown in the figure above, the robots developed the ability to lean sideways to navigate narrow passages, leap across wide gaps, and jump over obstacles when simple stepping was insufficient. This "action rationality" allows the robot to discover its own optimal movement patterns rather than relying on rigid, pre-defined motion templates.
Limitations and Future Work
While LEGO-H represents a significant step forward, several challenges remain:
- Upper Body Integration: Currently, the robot’s upper body remains largely static. Future work will focus on integrating arm movements for balance and hand support on steep inclines.
- Sim-to-Real Transition: While designed for real-world readiness, the current study focuses on high-fidelity simulations. Testing on physical trails with real-world sensor noise and lighting is the next major hurdle.
- Multi-Modal Sensing: Incorporating tactile feedback alongside vision could improve performance on slippery or loose surfaces like gravel and mud.
By positioning hiking as a primary testbed for embodied autonomy, LEGO-H provides a robust baseline for the next generation of humanoid robots capable of navigating the natural world.
Summary updated