Tripod gait: legs {R1,L2,R3} and {L1,R2,L3} alternate β always 3 legs
grounded. Wave gait lifts one leg at a time (6 sequential phases), slower
but more stable. Each leg uses 2-link analytical IK: law of cosines finds
the knee angle given hip and foot positions.