a computer implemented method for determining a configuration of a medical robotic arm , wherein the configuration comprises a pose of the robotic arm and a position of a base of the robotic arm , comprising the steps of : — acquiring treatment information data representing information about the treatment to be performed by use of the robotic arm ; — acquiring patient position data representing the position of a patient to be treated ; and — calculating the configuration from the treatment information data and the patient position data .