Hi there,

I tried using MITK IGT to connect to both Aurora and Spectra. I ended up with 
the code below. I could not get the Spectra to work without the 
TrackingDeviceSourceConfigurator and I could not get the Aurora to work with 
it. Is there any way to avoid this if/else? Is this expected behaviour? Is it 
possible to startup trackers in a consistent fashion?

Im using 2015.05.2 if that helps.

Thanks

Matt




  if (deviceData.Line = mitk::NDIAurora)

  {

    try

    {

      m_TrackerDevice->OpenConnection();

      m_TrackerDevice->StartTracking();

    }

    catch(const mitk::Exception& e)

    {

      MITK_WARN << "Caught exception during construction, but carrying on 
regardless:" << e;

    }

    m_TrackerSource = mitk::TrackingDeviceSource::New();

    m_TrackerSource->SetTrackingDevice(m_TrackerDevice);

  }

  else

  {

    mitk::TrackingDeviceSourceConfigurator::Pointer myConfigurator = 
mitk::TrackingDeviceSourceConfigurator::New(m_NavigationToolStorage, 
m_TrackerDevice.GetPointer());

    m_TrackerSource = myConfigurator->CreateTrackingDeviceSource();

    try

    {

      m_TrackerDevice->OpenConnection();

      m_TrackerDevice->StartTracking();

    }

    catch(const mitk::Exception& e)

    {

      MITK_WARN << "Caught exception during construction, but carrying on 
regardless:" << e;

    }

  }




------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to