Calibration of manipulator while tool is mounted