Purpose
What the simulation is for
TerrainClimbs 25° ramps, 5 cm stairs and 8 cm gravel.See terrain results →
GaitsFour gaits tried: creep, trot, spot rotate, dynamic creep.See the gaits →
PayloadLoaded runs against the real robot's mass of 1.82 kg.See payload tests →
Sim vs realThe same gait, side by side with the hardware footage.See the comparison →
Sim2Real loop
One control path, two actuators
Foot targetsgait / level_body()
→
Leg IK12 joint angles
→
Simulated servosposition PD · torque-speed limit
→
Simulated IMU80 Hz · 25 ms lag · noise
Physics model
Physics is deliberately simple
The detailed meshes are for looks only. The solver sees a few boxes that carry the weight and five shapes that touch the ground.
Loading 3D model…
—total, 4 legs and body
Actuator model
A servo has less torque the faster it turns
Every joint is clipped to the AX-12A torque–speed line: full torque at rest, almost none at top speed.
Torque available——
Of stall torque—no-load 354 °/s
Contact model
Rubber balloon feet: grip comes from friction
High friction, a soft contact patch: planted feet stay put unless the load really exceeds the grip.
Friction needed——
Steepest slope held—arctan μ, foot alone
Twist resistance0.03torsional, vs 0.005 on the floor
Roll resistance0.003rolling, vs 0.0001 on the floor
Sensor model
What the controller sees is not the truth
An 80 Hz IMU with lag, noise and a wandering bias, like the real MPU-9250.
true tiltIMU reading
Honesty
Measured vs estimated
Measured or from datasheets
- CAD geometry, plate stack, leg origins
- Part masses: CAD volume × plastic density
- AX-12A torque and speed
Estimated, to measure on the robot
- Balloon foot friction (μ 1.5)
- Contact patch size
- IMU noise and bias
- Battery and bracket masses