The present invention relates to methods and apparatuses for applying radiotherapy. The method comprises detection of markers and of bad markers to precisely determine localization and or orientation of the patient at the treatment zone (30) in relation to the central axis beam (14). The apparatus comprises a robot (10) which is controlled to localize and/or orientate the patient to be treated in relation with recognition of the actual markers. Radiotherapy.