Using Body Flexibility to Simplify the Solution of Constraint Equations in the Dynamic Analysis of Robot Mechanisms and Multibody Systems