Correction of end effector attachment, calculated from model and real position