Statics and Kinematics with Applications to Robotics