Kinematics and dynamics of machine systems