Quadruped Gait Top View: Support Polygon and Stability Margin (2D)

Set the duty factor and the phase offsets of three legs, and watch the support polygon, the centre of gravity and the static stability margin.

Switch to 3D
Controls

Presets

Parameters

Model checks

The science

Describing a gait. Following Hildebrand's gait analysis, a symmetrical quadruped gait is fixed by two kinds of numbers: the duty factor beta (the fraction of the stride a foot is on the ground) and the phase offsets of the other three feet relative to the left fore foot. Leg i is in stance while frac(t/T - phii) < beta. In stance a foot is fixed in the world, so in the body frame it slides backward at the body speed v = s/(beta T) (s = stride length); in swing it is carried forward. Trot (diagonal pairs half a cycle apart), pace (lateral pairs), bound (fore pair and hind pair) and the four-beat walks are just different phase choices; the pattern readout names them.

Static stability. A statically stable walker keeps its centre of gravity (COG) above the support polygon, the convex hull of the stance feet. The static stability margin (the measure introduced for walking machines by McGhee and Frank, 1968) is the shortest distance from the COG to the polygon boundary: positive inside, negative outside; fewer than three feet on the ground gives no polygon at all. For a creeping gait with evenly spaced footfalls the minimum number of feet down is floor(4 beta), so beta >= 0.75 is needed for three feet to be on the ground at every moment. Real animals (and this model, via the sway slider) shift the body sideways over the stance feet; with zero sway and a centred COG the margin touches zero whenever a diagonal edge of the triangle passes through it.

Speed and dynamic similarity. The page reports the Froude number v2/(g h) with hip height h. Alexander's dynamic-similarity argument says that animals of different size use the same gait at the same Froude number; the often quoted walk-to-trot change near Fr of about 0.5 and trot-to-gallop at roughly 2 to 3 are rounded literature values quoted from memory and shown only as orientation, not computed here. Slow walks have small Fr, bounds large.

Simplifications. Quasi-static kinematics only: no body dynamics, no inertia, no slip, flat ground, a straight line at constant speed; foot trajectories are a linear stance and a smoothed swing; the COG height does not matter for the static margin and its lateral sway is a simple fraction of the stance-foot centroid. Leg length, body size and stride are illustrative, not a particular animal or robot. The 3D legs use a two-link inverse kinematics with segment length 0.6 h.

-
-