System for guiding a catheter through a lumen system of a body of a patient, to a predetermined location within the lumen system, the system including a medical positioning system, a moving mechanism coupled with the catheter, and a controller coupled with the medical positioning system and with the moving mechanism, the medical positioning system including at least one position detector, the position detector being firmly attached to a distal portion of the catheter, the medical positioning system determining the position of the position detector, the controller controlling the operation of the moving mechanism to move the catheter to the predetermined location, according to the position and according to a topological representation of at least a portion of the lumen system.