Devices and systems for detecting a 3-dimensional position of an object relevant for robotic surgery, wherein a surgical robot system includes a robot having a robot base, a robot arm coupled to the robot base, and an end-effector coupled to the robot arm with a probe configured to be inserted in spinal fixation elements for registering their locations. The probe includes tracking markers to allow determining a 3-dimensional position of the object in contact with it.