A holding device for medical purposes holds an attached device. The holding device has a proximal end for attaching the holding device to a base and a distal end for receiving the attached device. The holding device also has a first arm segment and a second arm segment. The first arm segment is connected to a first joint and the second arm segment is connected to a second joint. Each joint is releasable or lockable. The holding device further has an operator control device for releasing and/or locking the first or second joint for placing the holding device in a desired pose. The holding device also has a controller for controlling the holding device and at least one receiver for electromagnetic radiation connected to the controller for transmitting signals to the controller based on received electromagnetic signals of a surgical navigation system.