arXiv:2610.29612cs.ROOct 2026

Manuscript Offprint

arXiv:2610.29612

Watch Your Step: Anticipated Perception for Humanoid Locomotion

Matthias Heyrman, Chenhao Li, Ioannis Dadiotis, Marco Hutter

Matthias Heyrman 1,∗^{1,*}, Chenhao Li 1,2^{1,2}, Ioannis Dadiotis 1^{1}, Marco Hutter 1^{1}

Abstract—Perceptive locomotion policies typically observe a dense robot-centric elevation map, although only the terrain beneath and around the next footsteps informs the control decision. Learned encoders compress the whole visual input, leaving the policy to work out which inputs matter while learning the baseline locomotion task. Learning both at once slows training and, without computationally expensive attention mechanisms, makes generalization to new terrain harder. We instead remove redundant inputs from the elevation map before the policy sees it. A lightweight foothold prediction model (FPM) predicts future footholds from proprioception and the velocity command alone, and we sample the elevation map only in small patches around these predicted footholds. We train the prediction model alongside the locomotion policy, periodically retraining it on new policy rollouts as the robot's gait matures. This allows the perception to anticipate where the policy will step, while the policy learns to leverage terrain information around those steps. With the proposed lightweight preprocessing, the policy reaches a given terrain difficulty in roughly a third of the training iterations required with the complete map. It outperforms policies that observe the complete map where footholds are sparse, including in narrow walled corridors, and on unseen terrain, and it matches an attention-based encoder trained at several times the cost. The policy transfers zero-shot to a Unitree G1 humanoid traversing various obstacles, stairs, gaps, and step-downs beyond the training distribution in both indoor and outdoor environments.

I. INTRODUCTION

Vision is an indispensable tool when traversing unstructured terrain. People constantly survey the ground ahead of them to plan their next steps and to adjust the trajectory of a foot in mid-air. Deep reinforcement learning (RL) has driven significant progress in legged robot locomotion [1], [2]. Using high-fidelity physics simulators, modern RL algorithms with parallelized environments, and effective techniques to reduce the sim-to-real gap, humanoids can be conditioned on a robot-centric elevation map [3] to traverse rough terrain.

However, this reliance on dense environmental maps introduces fundamental limitations related to sample efficiency, redundancy, and distraction. Only the small regions of terrain where the feet will next make contact should inform control decisions, yet policies typically sample and process the full map uniformly, even though most of it describes terrain the robot will never step on, such as cells far to the side or directly opposite the commanded velocity direction. These irrelevant inputs make it hard to learn which regions of

Figure

Fig. 1. Zero-shot multi-terrain locomotion, including stairs, drops, gaps, unstable terrain, and crowded elevation-mapped environments using a Foothold Prediction Model (FPM) filtered elevation map. Predicted future footholds are shown in magenta, and the sampled elevation map points are shown in green and blue.

the map matter and can distract the policy with terrain features that have no bearing on the next step, while the larger state space makes generalization to different terrains harder and increases the computational cost of the policy. By contrast, people tend to look at the ground approximately 1.5 seconds, i.e., 2 to 3 steps, ahead of them, focusing on their planned footholds instead of the entire surrounding scene [4]. On more challenging terrains, this look-ahead lets them intuitively adapt a step in mid-air: if a foothold seems insecure or they notice a better spot near the original target, they shift their focus and change the step trajectory.

Existing work primarily aims to reduce redundant information from the full elevation map through learned embeddings that feed the control policy. Typical encoders compress the full input into a latent vector [2], scale well to complex terrains [5], [6], and transfer to real-world locomotion [7], [8]. However, encoders such as CNNs still have to learn to extract the relevant features from the full map, and thus inherit the redundancy and sample inefficiency of the visual input rather than addressing it.

Attention-based encoders, conditioned on proprioception

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

1^{1}Robotic Systems Laboratory, ETH Zürich, Switzerland.

2^{2}ETH AI Center, ETH Zürich, Switzerland.

*Corresponding author: mheyrman@ethz.ch

Project page: leggedrobotics.github.io/watch-your-step and the elevation map, weigh terrain features to focus on possible future steps [9], and later work extends them with local and global feature streams [10], [11] and uncertainty-aware terrain estimates [10]. Using egocentric depth images alongside a height scan enables an attention-based anticipatory gaze that better respects onboard compute limitations [12]. These methods learn where to look, but nothing in the encoder structure ensures that the attended features are future footholds; the encoder has to discover the focus implicitly from the task reward. Other depth-based methods encode the images directly [13], [14]. All of these methods process the entire visual input when deployed and leave it to the policy to ignore what does not matter. Terrain outside of its next steps can therefore still distract it.

Another approach analyzes the terrain and plans where the robot's feet should land, a long-standing body of work. Classical methods select candidate contact regions based on kinematic reachability and terrain geometry [15]–[18], and learning-based approaches evaluate candidate footholds based on the height map around the nominal landing position [19] or across the local map under kinematic and collision constraints [20]. These foothold selection methods run as standalone modules that hand a target to a downstream tracking controller. This requires strongly defined handcrafted selection criteria for each platform, such as thresholds on the slope, roughness and curvature of a foot-sized patch, its distance to edges, and robot-specific checks of kinematic reachability and leg collision. These criteria encode the designer's notion of a safe foothold and must be manually returned for a new foot geometry or gait. The module is also not necessarily conditioned on how the downstream controller actually moves, which leaves its output liable to be inaccurate or suboptimal for the gait that executes it.

The mismatch between planner and controller is especially pertinent for modern legged locomotion controllers, which are RL policies trained in simulation to maximize a reward. RL-based approaches can learn precise foot placement in simulation through a terrain difficulty curriculum and crafted rewards [21], [22] and can learn to track foothold planners [23], [24], use them to shape rewards [25], or track a decoupled learned planning policy [26]. In these cases, however, the foothold serves as a tracking target or a reward that shapes the policy's actions, not as a filter that shapes the policy's observations. Prior work has used predicted footholds to reward safe locomotion using privileged information acquired in simulation during training [14], but the predictions never reach the hardware.

Filtering the elevation map around future footholds before the policy sees it raises two challenges. First, the filter cannot observe the terrain to decide where to look, as it would inherit the overhead of the full elevation map that it is meant to remove. It must therefore predict the footholds entirely from the robot's own state and command, while the policy, like a person, can still adjust its trajectory to choose footholds based on the terrain it sees around each prediction. Second, where the feet will land is a property of the gait, which the policy is still learning. A predictor fit to an early, unsteady gait would misplace its patches once the policy improves, and a policy trained on misplaced patches may learn to distrust them.

In this paper, we propose a human-inspired, state-based sampling module that filters the elevation map before the locomotion policy receives any terrain information. To filter the elevation map without observing it, a lightweight foothold prediction model (FPM) predicts the robot's next two footholds from its current proprioceptive state and velocity command alone. We treat only the terrain around these predicted footholds as relevant for locomotion and sample the elevation map in patches surrounding them. These patches act as the exteroceptive observation of the locomotion policy, creating a state-conditioned representation of the terrain.

To ensure that the predicted footholds, and with them the sampled patches, stay up-to-date as the locomotion policy learns more difficult terrains, we co-train the FPM and the locomotion policy in an iterative training loop. We train the locomotion policy with RL in simulation and, after a fixed number of iterations, refit the FPM in a self-supervised fashion on the footholds the current policy produces, allowing the perceptual filter to adapt as the policy converges. We demonstrate that this approach reaches a given terrain difficulty in roughly a third of the iterations required by other methods using the complete elevation map, at a lower perception cost to the policy and across a variety of rough and sparse terrain styles. We also show indoor and outdoor hardware experiments, where the resulting policy successfully transfers to a Unitree G1 humanoid (Fig. 1).

In summary, our contributions are as follows:

  1. A self-supervised foothold prediction model (FPM) that accurately predicts the next two footholds from the current proprioceptive state and velocity command, co-trained on policy rollouts during RL training.

  2. A human-inspired perceptive locomotion pipeline that samples the elevation map only around the footholds predicted by the FPM, with insights into its key design choices, such as the prediction horizon and the encoding of the sampled patches.

  3. Simulation and hardware experiments, including comparisons against state-of-the-art elevation-map encoders, that demonstrate the advantages of restricting the policy's exteroceptive input to the terrain around its next predicted footholds over the complete map.

References (32)