Figure 1. Inverted pendulum mechanism of walking for a biped and a crab. One leg of a biped and four legs of a crab act to move the body through a series of arcs of a radius. Potential energy and kinetic energy fluctuate out of phase such that the kinetic energy can be recovered as potential energy and vice versa.