Gr. Kneller et K. Hinsen, GENERALIZED EULER EQUATIONS FOR LINKED RIGID BODIES, Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics, 50(2), 1994, pp. 1559-1564
We derive the equations of motion for linked rigid bodies from Lagrang
e mechanics and from Gauss's principle of least constraint. The rotati
onal motion of the subunits is described in terms of quaternion parame
ters and angular velocities. Different types of joints can be incorpor
ated via axis constraints for the angular velocities. The resulting eq
uations of motion are generalizations of the Euler equations of motion
for a single rotor.