Under each leg's bar: shoulder command (above the line is forward, below is back) and knee command (above is bend/support, below is lift), as % activation.
The 4-limb gait engine from Robot/limbs/gait, running on a simulated body. Set a desire with speed, change the ground, and watch the feet decide when to step.
Under each leg's bar: shoulder command (above the line is forward, below is back) and knee command (above is bend/support, below is lift), as % activation.
The gait engine here is a direct port of gait.c: the same phase clock, coupling, lift-off and touchdown rules, slew limit and leveling. The body is a simple model for illustration. The shoulder turns the upper segment ±30° in the plane of the body, so the knee always sits at body height. The knee swings the lower segment 0–80° from vertical: relaxed it folds up to 80°, and full bend pulls it toward vertical. Each wire heats in about 0.15 s and cools in about 0.35 s, and when fewer than three feet hold the body up it sags toward the unsupported side. Treat the numbers as qualitative until the PWM board is measured.