Dynamic Modeling of Automatic Machines for Design and Control