Generic calibration for robots