Organizations: School of Automation Science and Electrical Engineering, Beihang University, Beijing, China · School of Astronautics, Beihang University, Beijing, China · Hangzhou International Innovation Institute, Beihang University, Hangzhou, China · Nanyang Technological University, Singapore · School of Aeronautic Science and Engineering, Beihang University, Beijing, China
Reinforcement learning has made quadrupedal locomotion remarkably robust. To handle unmodeled dynamics and external disturbances, domain randomization is usually employed to make a policy hedge against every condition it might meet. However, maintaining accurate tracking across varying dynamics and generalizing beyond the sampled range remain challenging. Here we show that explicitly estimating the disturbance and feeding the resulting estimation back into both the policy and the controller can relax this compromise. We introduce Policy Augmentation and Compensation with Explicit disturbance estimation (PACE). The framework lumps payload variations, center-of-mass (CoM) shifts, actuator degradation, and external forces into one joint-space disturbance. A nonlinear observer subsequently recovers this disturbance online without requiring joint acceleration measurements. The disturbance estimation provides feedforward torque compensation as the foundational control pathway and further augments the policy observation to enable disturbance-aware action generation. Considering the learning difficulty of fast-varying contact effects, we further provide an analytical contact estimation approach from joint and inertial measurements, without demanding force sensors. Across eleven simulated dynamics conditions, PACE reduces velocity-tracking error by 18.1% to 57.0% against state-of-the-art baselines, and maintains improved tracking under out-of-distribution (OOD) commands. Notably, in real-world experiments, the deployed real robot carried an 11.5 kg payload, nearly equal to its own mass. It also negotiated unseen 16 cm step-downs and crossed five outdoor terrains. The policy was trained exclusively on flat ground in simulation with at most 3 kg of added mass.
Figures & tables
Fig. 1: Representative locomotion sequences on unseen real-world terrains after training exclusively on flat terrain in simulation. (a) Traversal of a flagstone path composed of irregular stone slabs. (b) Traversal of a gravel road covered with loose stones. Successive frames illustrate the robot’s progression across the two terrain types.
Fig. 2: Overview of the proposed PACE framework. (a) During training, privileged observations are encoded into the latent representation zt , while the explicit disturbance estimation is used for torque-level feedforward compensation and further provided to the policy as an additional observation. (b) During deployment, the adaptation module infers z^t from temporal partial observations, and the sensorless foot-force estimator reconstructs the contact-force input required by the DO, preserving the same disturbance-aware closed-loop structure without privileged information or foot-force sensors. (c) The policy, trained exclusively on flat terrain in simulation, is evaluated zero-shot on five unseen outdoor terrains.
Fig. 3: Vertical foot-contact force estimation for the front-left leg over 4 – 6s . The main force plot compares the estimate with the MuJoCo reference, and shaded regions indicate reference stance intervals. The lower plot shows the signed estimation error, with a marker highlighting the maximum absolute error within the displayed interval. The two upper insets show enlarged views of the regions in the main force plot: touchdown on the left and liftoff from the following gait cycle on the right. In these insets, Δt denotes the estimation delay.
Fig. 4: Effect of contact-force substitution on the DO output at the HR Hip-X joint. Left: observer outputs obtained using MuJoCo contact forces and estimated contact forces over 4 – 6s . Right: distribution of their signed difference using the same samples as in the left plot. Horizontal bar lengths indicate the percentage of samples in each difference bin, and the dashed line marks the mean difference.
Fig. 5: Joint-wise RMSE between DO outputs obtained using estimated and MuJoCo contact forces over the complete evaluation sequence. The horizontal axes identify the four legs (FL, FR, HL, and HR) and the three joint types (Hip-X, Hip-Y, and knee). Each bar represents one joint, with its height indicating the RMSE in N⋅m .
Reward
Equation ( ri )
Weight ( wi )
Lin. velocity tracking
exp(−4∥vxycmd−vxy∥22)
1.0
Yaw velocity tracking
exp(−4∣ωzcmd−ωz∣2)
0.5
Vertical velocity
vz2
−2.0
Roll–pitch rate
∥ωxy∥22
−0.05
Orientation
∥gxy∥22
−0.2
Base height
(h−hdes)2
−1.0
TABLE I: Reward structure. exp(⋅) is the exponential function, ∣⋅∣ denotes absolute value for scalars, and ∥⋅∥2 denotes the Euclidean norm for vectors. The superscripts (⋅)cmd and (⋅)des indicate commanded and desired quantities. vxy , vz , ωxy , and ωz are the body-frame base linear and angular velocities, gxy denotes the horizontal components of the gravity vector projected into the body frame, and h is the base height. fb is the contact force on body b ; Tkair , vf,k , and ck are the air time, velocity, and contact state of foot k . I(⋅) is the indicator function, Icmd=I(∥vxycmd∥2>0.1) , and Ikfc indicates the first contact of foot k . Finally, (x)+=max(x,0) , while Bcol and Jabad denote the penalized bodies and hip abduction–adduction joints.
Parameter
Randomization range
Unit
Added base mass
[−1,3]
kg
Kp factor
[0.8,1.2]
–
Kd factor
[0.8,1.2]
–
Motor strength factor
[0.8,1.2]
–
CoM shift ( x )
[−50,10]
mm
CoM shift ( y )
[−30,30]
mm
TABLE II: Domain randomization ranges applied in the simulation.
Condition
BASELINE
HIMLOCO
PACE 0
PACE
Payload: 5kg
0.398
0.193
0.252
0.162
Payload: 8kg
0.443
0.263
0.262
0.174
Payload: 11kg
0.476
0.246
0.279
0.194
CoM shift: x=2cm
0.369
0.200
0.238
0.169
CoM shift: y=3cm
0.370
0.201
0.237
0.169
CoM shift: x=2,y=3cm
0.365
0.197
0.235
0.170
TABLE III: Command-tracking performance under dynamics variations. All entries are RMSExy values in m/s , and lower values indicate better performance.
Fig. 6: Raincloud distributions of absolute forward (left) and lateral (right) velocity tracking errors under the OOD command of 2m/s . Half-violins show density estimates scaled to equal peak height. Boxes indicate the interquartile range (IQR), with internal lines marking the median, and whiskers extend to the most extreme samples within the 1.5IQR fences. Dots represent the displayed time samples.
Fig. 7: Lateral velocity responses to an 80N push along the y direction during forward locomotion commanded at 1m/s . Shaded regions indicate force application from 1.20 to 1.68s . Colored vertical dashed lines mark the recovery instants, which are determined using the full planar velocity and yaw-rate criteria defined in the text.
Fig. 8: Real-world robustness experiments. (a) Time-composited step-down trials: BASELINE fails at 14cm , whereas PACE 0 successfully recovers; at 16cm , PACE 0 fails while PACE maintains stable locomotion. (b) Payload trials: BASELINE fails with an 8kg payload, whereas PACE 0 successfully traverses under the same load; with an 11.5kg payload, PACE 0 fails while PACE maintains stable forward locomotion. Successive overlaid poses in (a) indicate temporal progression, and white arrows denote the commanded travel direction.
Method
8 cm
10 cm
12 cm
14 cm
16 cm
BASELINE
80
0
0
0
0
PACE 0
100
100
100
80
0
PACE
100
100
100
100
100
TABLE IV: Step-down success rates on unseen height discontinuities. All entries are success rates (%), and each method is evaluated over five trials at each height.
Method
Flagstone
Lawn
Sand
Gravel road
Large rocks
BASELINE
60
0
0
40
0
PACE 0
100
100
100
100
80
PACE
100
100
100
100
60
TABLE V: Traversal success rates on unseen real-world terrains. All entries are success rates (%), and each method is evaluated over five trials on each terrain.
Fig. 9: Failure case of direct acceleration-based disturbance estimation on hardware. In this variant, the disturbance used for feedforward compensation and policy augmentation is computed directly from reconstructed acceleration-related quantities, instead of being estimated by the proposed DO. The successive frames, ordered from left to right, show that the Lite3 rapidly loses stability and falls during deployment. This result indicates that directly using reconstructed acceleration information to compute the disturbance is highly sensitive to real-world sensing noise and reconstruction errors, whereas the proposed observer-based formulation provides a more reliable disturbance signal for deployment.
School of Aeronautic Science and Engineering, Beihang University, Beijing 100035, China · School of Automation Science and Electrical Engineering, Beihang University, Beijing 100035, China