Conversion of measuring robot coordinates to workpiece coordinates