Fig 7. Single inverted pendulum model of stance.
The external forces acting on the body are the weight (green arrow), whose torque around the ankle depends on ankle angle θ, and the ground reaction force (red arrow) whose torque depends on both ankle angle and muscle contraction.