| Algorithm 1 Automated Centering Procedure |
| 1: Procedure AutoCenter() # is the desired joints configuration to measure 2: MAX_EPSILON 0.010 # 0.010 mm = position repeatability 3: Move the robot to # from MATLAB to Controller 4: Wait 1 s # to ensure effective communication 5: Send data request # from MATLAB to U-WAVE-R 6: Measurement of indicator along the tool X # from U-WAVE-R to MATLAB 7: Measurement of indicator along the tool Y # from U-WAVE-R to MATLAB 8: Measurement of indicator along the tool Z # from U-WAVE-R to MATLAB 9: 10: while(norm()) >= MAX_EPSILON do 11: Move the robot’s TCP by vector # from MATLAB to Controller 12: Wait 1 s # to ensure effective communication 13: Send data request # from MATLAB to U-WAVE-R 14: Measurement of indicator along the tool X # from U-WAVE-R to MATLAB 15: Measurement of indicator along the tool Y # from U-WAVE-R to MATLAB 16: Measurement of indicator along the tool Z # from U-WAVE-R to MATLAB 17: 18: return Actual joints configuration # from Controller to MATLAB |