A detection device for detecting a spindle displacement of a
roller screw motor of a
robot, characterized in that the
roller screw motor comprises a motor
stator, a motor rotor, an internal support structure, a motor housing, and a motor spindle, wherein the motor
stator is fixedly connected to the internal support structure, wherein the motor housing encloses the internal support structure, wherein the motor rotor is movably connected to the internal support structure, wherein the motor rotor can rotate relative to the motor
stator, wherein the motor rotor, when rotating, sets the motor spindle into a linear movement, wherein the detection device comprises a first gear, a second gear, a first magnetic
encoder and a second magnetic
encoder, wherein the first gear is fixedly connected to an end piece of the motor rotor, wherein the first gear rotates with the motor rotor, wherein the second gear is arranged on the motor housing, wherein the second gear is in engagement with the first gear, wherein the second gear is driven for rotation by the first gear; wherein the first magnetic
encoder is arranged on the first gear to detect a first angle of the first gear; wherein the second magnetic encoder is arranged on the second gear to detect a second angle of the second gear; wherein the number of teeth of the first gear is not equal to the number of teeth of the second gear; and wherein the first angle, the second angle and the difference between the number of teeth of the first gear and the number of teeth of the second gear are used to determine the spindle displacement.