S3: Stable Stride on Sand

Reinforcement Learning for Slow, Stable Quadruped Locomotion on Granular Terrain

Aman Arora1    Genya Ishigami2

1SpaceR, SnT, University of Luxembourg  ·  2Space Robotics Group, Keio University

Master's Thesis, Keio University, 2024 · Extended 2026

Simulation · RFT sand · 0.5 m/s
Unitree Go1 walking on the laboratory sand fieldHardware · Go1 on sand
Sand field raked into a sinusoidal profileSinusoidal sand profile

Left: policies B, C, D3 and E on simulated sand. Right: hardware experiments on the laboratory sand field (2024), Space Robotics Group (Ishigami Lab), Keio University.

S3 trains locomotion policies for the Unitree Go1 to walk on dry sand. The project started as my master's thesis at Keio University in 2024, with experiments on a laboratory sand field. In 2026 I rebuilt it on Isaac Lab 3 and Newton and added a sand contact model based on Resistive Force Theory. All policies below are trained and tested on this simulated sand.

Policies

Each clip shows one policy on flat sand (5 cm layer, ζ = 1 N/cm³) with a 0.5 m/s command. The numbers are from 240 trials per policy on sand.

Policy A

Baseline rewards. Trained on flat rigid ground.

speed
0.26 m/s
falls
21 %
stalls
30 %

Policy B

Adds foot-impact, joint-jerk and foot-slip rewards and a terrain curriculum. Trained on rigid ground.

speed
0.41 m/s
falls
5 %
stalls
4 %

Policy C

Same rewards as B. Uses an actuator network as the torque model.

speed
0.35 m/s
falls
17 %
stalls
12 %

Policy F

B trained on sand, with a learned slip penalty.

speed
0.43 m/s
falls
10 %
stalls
20 %

Policy D

B trained on sand, with sinkage, sand-displacement and CoM-margin rewards.

speed
0.36 m/s
falls
49 %
stalls
25 %

Policy D2

D with the command range of E (|v| ≤ 2 m/s).

speed
0.39 m/s
falls
49 %
stalls
38 %

Policy D3

D2 without the CoM-margin reward.

speed
0.45 m/s
falls
8 %
stalls
14 %

Policy E

D with the slow-regime formulation: relative tracking reward and low-speed gait schedule.

speed
0.43 m/s
falls
8 %
stalls
34 %

Speed: progress along the commanded heading at 0.5 m/s on flat sand, ζ = 1. Falls and stalls: share of 240 trials on flat and sinusoidal sand, ζ = 0.5–3.75, 0.3–0.8 m/s. A stall is progress below 25 % of the command. B–F are fine-tuned from A.

Comparisons

The robots in each clip run in the same simulation with the same terrain and command.

Slow walking (0.1 m/s)

B, D2 and E on sand, 0.1 m/s command. B and D2 barely move. E walks forward.
Relative speed error versus Froude number for policies A, B, D, D2 and E on rigid ground and on sand

With the standard tracking reward, a robot that stands still gets 96 % of the maximum reward at 0.1 m/s. E uses a reward relative to the commanded speed, which removes this.

At 0.1 m/s on sand, E makes 0.061 m/s of progress. B makes 0.011 m/s and D2 0.017 m/s. Below Fr = 0.1 the other policies have 80–100 % speed error; E has 45 %.

CoM-margin reward (D2 vs D3)

Firm sand (ζ = 3.75), 0.3 m/s. D2 (left) falls. D3 (right) is D2 without the CoM-margin reward and keeps walking. This reward is negative whenever fewer than three feet support the body, which is the case in every trot step.
Fall rate on flat and sinusoidal sand for policies D, D2, D3 and E at four sand strengths
Fall rate on sand. D and D2: 49 %. D3 and E: 8 %. E weights the CoM-margin reward by speed, so it is only active at very low speed.

All policies on firm sand

Firm sand (ζ = 3.75), 0.3 m/s. D and D2 fall. The other policies keep walking.
Loose sand (ζ = 0.5), 0.3 m/s. B and E. E makes 0.26 m/s of progress, B 0.23 m/s.
10° incline, 1.0 m/s. A drifts sideways and slides off the ramp. B and C climb.

Lunar gravity

Policy D2 at 0.165 g. Left: run without changes; it falls. Right: control period, gains, torques, sand strength and command scaled with granular scaling laws; it walks.
Relative speed error and fall rate at Earth, Mars and Moon gravity for three transfer modes
Speed error and fall rate at 1 g, 0.38 g and 0.165 g. With the full scaling map, speed error stays constant and no trial falls. Without it, D2 falls in 65 % of trials at 0.165 g.

Hardware experiments (2024)

Constant 0.8 m/s forward command for 5 s on a sinusoidal sand profile (50 mm amplitude, 130 mm wavelength), recorded with motion capture.

Footprints of policy A curving to the side
Policy A. Drifts sideways and stalls.
Straight footprints of policies B and C
Policies B and C. Straight trajectories; runs completed.
Baseline gait displacing a large amount of sand
Baseline gait. High sand displacement.
New gait displacing less sand
New rewards. Reduced displacement.
Velocity MAE on the sand field for policies A, B and C
Velocity tracking error (MAE). C < B < A.
RPY stability metric on the sand field
RPY stability metric. B and C oscillate less than A.
Robustness test on sand
Robustness tests after deployment.

Experiments conducted at the Space Robotics Group (Ishigami Lab), Keio University. Laboratory photographs and footage © Space Robotics Group, Keio University.

Results

Rigid terrain

Policies A, B and C on rigid terrain, 20 trials per bar

Whiskers: 95 % confidence interval. Dashed line: command.

  • C has the lowest body oscillation (RPY 0.05–0.08 rad), then B (0.10–0.11) and A (0.15–0.27).
  • At 0.5 m/s the relative speed error is 8–9 % for B and 17–26 % for A.
  • On the 10° incline A stalls in all trials at 0.5 m/s. B and C climb at every speed.

Torque-model transfer

B and C on rough rigid ground, 20 trials per bar

Solid: torque model used in training. Light: the other torque model.

Speed tracking stays the same. Body oscillation increases two to six times when a policy runs with the torque model it was not trained with.

Sand

All policies on a 5 cm sand layer, 10 trials per bar

Select ground, command and metric above the chart.

  • B has the fewest falls and stalls on sand, although it was trained on rigid ground only.
  • On loose sand at 0.3 m/s, E makes the most progress at the lowest cost of transport.
  • On loose sand all policies sink to the 5 cm bedrock. On firm sand sinkage is 2–4 cm.

Slip estimation

Slip detection (F1)

Held-out trajectories

An MLP estimates foot slip from the same 15-step proprioceptive history the policy uses. It reaches F1 0.72 and 92 % accuracy without extra sensors. Policy F uses it as a reward penalty.

Method

Sand model

The sand is not simulated with particles. Foot forces come from 3D Resistive Force Theory, precomputed for the Go1 foot as a table, so each foot needs one table lookup per physics step. With sand, 4,096 robots run at about 180,000 steps per second on one GPU (4.6 GB). A 270k-particle MPM sand bed with a single robot ran about 60 times slower than real time.

The sand is a 0–8 cm layer over rigid ground. Sand strength ζ is randomised per robot from 0.5 to 4 N/cm³.

At low speed the contact forces chattered. A wider low-speed regularisation band with force smoothing removed it (right).

beforeafter

Training

Policies are trained with PPO and a teacher–student (RMA) architecture. The teacher sees sand strength and depth. The student uses only proprioception and is the deployed policy. The clip shows Policy A at iterations 0, 250, 1000 and 3000.

Slow-regime reward

The standard tracking reward gives a stationary robot most of the reward at low commanded speeds (orange). The relative kernel used by Policy E does not (blue).

Tracking reward of a stationary robot

Fraction of maximum reward. Shaded: Fr ≤ 0.1.

BibTeX

@mastersthesis{arora2024s3,
  title  = {S3 (Stable Stride on Sand): Enhancing Reinforcement Learning
            for Optimised Deformable Terrain Locomotion of Quadruped Robots},
  author = {Arora, Aman and Ishigami, Genya},
  school = {Keio University},
  year   = {2024}
}
BibTeX copied