Shot peening produces compressive stresses to the surface of the workpiece, thus making it more durable. A common technique for measuring residual stresses of shot-peened workpieces is X-ray diffraction. The Xstress Robot system uses an industrial robot as a goniometer, thus bringing more flexibility and automation to measurement processes.