A method for recording image data of a moving, (e.g., cyclically moving), region of interest of a patient by a medical imaging system with an X-ray source and an X-ray detector, wherein a robotic device with a kinematic chain of moving components has a tactile connection with the patient, and wherein, the tactile connection is maintained at least for a prespecified period. The method includes acquiring measured values by sensors of the robotic device, evaluating the measured values and forwarding to the medical imaging system, wherein the evaluated measured values include information on the movement and/or position of the region of interest, and irradiation of the region of interest by the radiation source and recording of image data of the irradiated region of interest by the X-ray detector, and wherein the evaluated measured values are used to actuate the imaging system.