7 #ifndef __AtracsysTracker_h 8 #define __AtracsysTracker_h 13 #include <vtkMatrix4x4.h> 16 struct ftkOptionsInfo;
19 bool strToInt32(
const std::string& str,
int& var);
120 Marker(
int status,
int trackingId,
int geometryId,
121 vtkMatrix4x4* toolToTracker,
int geometryPresenceMask,
float registrationErrorMM);
133 uint32_t MarkerStatus;
136 vtkNew<vtkMatrix4x4> ToolToTracker;
137 uint32_t GeometryPresenceMask;
138 float RegistrationErrorMm;
149 void Pause(
bool tof);
176 std::array<float, 3>& rightPosition, std::array<float, 3>& rightOrientation);
195 std::map<std::string, std::string>& events, uint64_t& sdkTimestamp);
261 bool GetOptionInfo(
const std::string&,
const ftkOptionsInfo*&);
266 int MaxAdditionalEventsNumber = 0;
267 int Max2dFiducialsNumber = 256;
268 int Max3dFiducialsNumber = 256;
269 int MaxMarkersNumber = 16;
271 bool isOnboardProcessing =
false;
273 class AtracsysInternal;
274 AtracsysInternal* Internal;
ATRACSYS_RESULT SetUserLEDState(int red, int green, int blue, int frequency, bool enabled=true)
ATRACSYS_RESULT GetCalibrationDate(std::string &date)
ATRACSYS_RESULT GetDeviceId(uint64_t &id)
bool strToFloat32(const std::string &str, float &var)
ATRACSYS_RESULT GetLoadedGeometries(std::map< int, std::vector< std::array< float, 3 >>> &geometries)
ATRACSYS_RESULT EnableUserLED(bool enabled)
ATRACSYS_RESULT SetMax3dFiducialsNumber(int n)
ATRACSYS_RESULT GetDeviceType(DEVICE_TYPE &deviceType)
int GetMaxAdditionalEventsNumber()
uint32_t GetMarkerStatus()
int GetMax3dFiducialsNumber()
ATRACSYS_RESULT Disconnect()
ATRACSYS_RESULT SetOption(const std::string &, const std::string &)
ATRACSYS_RESULT EnableWirelessMarkerBatteryStreaming(bool enabled)
ATRACSYS_RESULT EnableWirelessMarkerStatusStreaming(bool enabled)
ATRACSYS_RESULT EnableOnboardProcessing(bool enabled)
ATRACSYS_RESULT GetDroppedFrameCount(int &droppedFrameCount)
ATRACSYS_RESULT SetMaxMarkersNumber(int n)
ATRACSYS_RESULT LoadMarkerGeometryFromFile(std::string filePath, int &geometryId)
ATRACSYS_RESULT GetMarkersInFrame(std::vector< Marker > &markers, std::map< std::string, std::string > &events, uint64_t &sdkTimestamp)
std::string ResultToString(ATRACSYS_RESULT result)
bool GetOptionInfo(const std::string &, const ftkOptionsInfo *&)
SPRYTRACK_IMAGE_PROCESSING_TYPE
ATRACSYS_RESULT LoadMarkerGeometryFromString(std::string filePath, int &geometryId)
ATRACSYS_RESULT ResetLostFrameCount()
bool operator==(const Fiducial &f)
ATRACSYS_RESULT SetMaxAdditionalEventsNumber(int n)
ATRACSYS_RESULT GetMarkerInfo(std::string &markerInfo)
ATRACSYS_RESULT EnableImageStreaming(bool enabled)
ATRACSYS_RESULT GetSDKversion(std::string &version)
bool IsOnboardProcessing()
int GetMaxMarkersNumber()
ATRACSYS_RESULT GetCamerasCalibration(std::array< float, 10 > &leftIntrinsic, std::array< float, 10 > &rightIntrinsic, std::array< float, 3 > &rightPosition, std::array< float, 3 > &rightOrientation)
bool operator<(const Fiducial &f) const
std::vector< Fiducial > Fiducials
ATRACSYS_RESULT SetSpryTrackProcessingType(SPRYTRACK_IMAGE_PROCESSING_TYPE processingType)
vtkMatrix4x4 * GetTransformToTracker()
uint32_t Fid2dRightStatus
ATRACSYS_RESULT SetLaserEnabled(bool enabled)
virtual ~AtracsysTracker()
ATRACSYS_RESULT SetMax2dFiducialsNumber(int n)
bool strToInt32(const std::string &str, int &var)
ATRACSYS_RESULT EnableWirelessMarkerPairing(bool enabled)
uint32_t GetGeometryPresenceMask()
ATRACSYS_RESULT Connect()
float GetFiducialRegistrationErrorMm()
int GetMax2dFiducialsNumber()
bool AddFiducial(Fiducial fid)
const Fiducials & GetFiducials()