The position of an imaging catheter in a body structure such as the heart is automatically controlled by a robotic manipulator such that its field of view at all times includes the distal end of a second catheter that is employed to effect a medical procedure. A processor receives signals from position sensors in the catheters. The processor utilizes the information received from the sensors and continually determines any deviation of the second catheter from the required field of view of the imaging catheter. The processor transmits compensation instructions to the robotic manipulator, which when executed assure that the imaging catheter tracks the second catheter.