13#ifndef mitkOptitrackTrackingDevice_h
14#define mitkOptitrackTrackingDevice_h
16#include <MitkIGTExports.h>
20#include <itksys/SystemTools.hxx>
31#include "mitkIGTIOException.h"
33#include "mitkIGTException.h"
64 bool IsDeviceInstalled()
override;
75 bool OpenConnection()
override;
83 bool CloseConnection()
override;
91 bool StartTracking()
override;
98 bool StopTracking()
override;
106 TrackingTool* GetTool(
unsigned int toolNumber)
const override;
121 unsigned int GetToolCount()
const override;
142 void SetCalibrationPath(std::string calibrationPath);
150 void ThreadStartTracking();
163 bool LoadCalibration();
176 bool SetCameraParams(
int exposure,
int threshold,
int intensity,
int videoType = 4);
183 bool InitializeCameras();
198 bool AddToolByDefinitionFile(std::string fileName);
210 std::string m_calibrationPath;
236 std::vector<mitk::OptitrackTrackingTool::Pointer> m_AllTools;
241 mutable std::mutex m_ToolsMutex;
243 std::thread m_Thread;
An object of this class represents the Optitrack device. You can add tools to this device,...
itkSetMacro(Thr, int)
Sets the directory where the calibration file of the MicronTracker can be found.
itkGetMacro(Exp, int)
Gets the current calibration directory.
mitk::TrackingDeviceType OptiTrackTrackingDeviceType
itkSetMacro(Exp, int)
Sets the directory where the calibration file of the MicronTracker can be found.
mitkClassMacro(OptitrackTrackingDevice, mitk::TrackingDevice)
itkGetMacro(calibrationPath, std::string)
Gets the current calibration file.
itkGetMacro(Led, int)
Gets the current calibration directory.
itkGetMacro(Thr, int)
Gets the current calibration directory.
itkSetMacro(Led, int)
Sets the directory where the calibration file of the MicronTracker can be found.
Interface for all Tracking Devices.
std::string TrackingDeviceType