Robot Analysis: The Mechanics of Serial and Parallel Manipulators