Back to projects
Mini-project

Quadruped Locomotion
with PPO.

I trained a simulated quadruped robot using Proximal Policy Optimisation (PPO) in MuJoCo. I experimented with Domain Randomisation and Friction Conditioned PPO to see how walking changes across ground friction conditions, then used statistical analysis to make sense of the results.

Python · Gymnasium · MuJoCo · Stable Baselines3 · NumPy · Pandas · SciPy
View GitHub repository

How often did it keep walking?

How did each policy walk on different surfaces?

Ground friction coefficient

Baseline

Original PPO100%

Friction experiments

Domain Randomisation50%
Friction Conditioned PPO85%

At friction 0.3: Original PPO 100%, Domain Randomisation 50%, Friction Conditioned PPO 85%.

I counted a walk as successful if the robot lasted all 1,000 steps and averaged at least 0.5 m/s.

I tested each policy 20 times at each friction setting. For Domain Randomisation and Friction Conditioned PPO, I used training seed 42.

A closer look at high friction

Here I compared the two friction policies with ground friction set to 2.0.

Compare improvement in

Mean paired improvement in forward distance

+15.705 m

95% confidence interval

i
The dot shows the average improvement across the 20 paired evaluations. The line shows a range of plausible values for the true average improvement. Because the whole line is positive, these results suggest that the conditioned policy performed better.

8.256 to 23.154 m

Forward distance improvement, conditioned minus randomised PPOMean 15.705 metres. 95% confidence interval 8.256 to 23.154 metres. The interval is above zero.−5030 m
The dot shows the average improvement, and the line shows the 95% confidence interval. Values above zero favour conditioned PPO.