Dynamics computation of structure-varying kinematic chains for motion synthesis of humanoid | Synapse