40 mitk::TrackingDevice::Pointer trackingDevice,
41 mitk::NavigationToolStorage::Pointer navigationTools,
42 std::string* errorMessage,
45 mitk::TrackingDeviceSource::Pointer returnValue = mitk::TrackingDeviceSource::New();
48 if (thisDevice->GetToolCount() != navigationTools->GetToolCount())
50 errorMessage->append(
"The number of tools in the connected device differs from the tool storage, cannot add tools.");
53 returnValue->SetTrackingDevice(thisDevice);