A method for automatic registration of a patient for surgical navigation includes detecting a
pose of a
robot head with a
robot camera by a tracking camera of a
navigation system and following the
robot camera; controlling and moving a robot arm such that the robot camera is directed to a
region of interest of the patient, and creating an image; checking whether there is a visual connection between the tracking camera and robot head with the robot camera; detecting, when a visual connection is present, a
pose of the robot head via the tracking camera, or detecting, when the visual connection is missing, interrupted or reduced, a
pose of the robot head via a robot-
kinematics tracking system; and executing a registration of the patient with respect to the
navigation system. The registration method can be used with a surgical
navigation system and a computer-readable storage medium.