A control system for detecting a position anomaly of a test object on a workpiece, the control system comprising at least one data processing device and at least one memory having a computer program stored thereon, the computer program including program code which, when executed by one or more of the at least one data processing device, causes one or more of the at least one data processing device to perform the steps of:
- commanding capture of an image of the test object to obtain image data;
- determining a real position of the test object in relation to the testing robot based on the image data;
- commanding the testing robot to move a testing sensor, carried by the testing robot, into contact with the test object based on the real position;
- commanding the testing sensor to acquire test data of the test object when the testing sensor is in contact with the test object;
- and
- detecting a position anomaly of the test object based on a comparison between a test object position and a reference position, the test object position being based on the real position, based on the test data and/or based on a position of the testing robot when the testing sensor is in contact with the test object.