Compensation of positioning error due to a-axis, b-axis tool rotation