How to measure a vehicle with a high accuracy with mm?

Then how do you suppose the controller knows where to direct the end effector?