PST SDK  5.2.0.0-0eac0f6
PstTypes.h
Go to the documentation of this file.
1 // Copyright PS-Tech B.V. All Rights Reserved.
2 
3 #pragma once
4 
5 #include "PstString.h"
6 #include "PstVector.h"
7 #include "PstArray.h"
8 
9 namespace PSTech
10 {
11 namespace pstsdk
12 {
27  struct Image
28  {
29  unsigned int width;
30  unsigned int height;
32  };
33 
41  struct Target
42  {
45  int id;
46  };
47 
56 
69  struct TargetStatus : public Target
70  {
71  bool status;
72  };
73 
82 
94  struct TargetPose : public Target
95  {
97  };
98 
107 
119  struct Point
120  {
121  int id;
123  };
124 
133 
142 
154  struct TrackerData
155  {
156  double timestamp;
157  int seqnumber;
158  TargetPoses targetlist;
159  Points datapoints;
160  };
161 
169  enum class StatusMessage
170  {
171  OK,
173  DISCONNECTED,
174  ERR_GENERAL,
175  ERR_TIMEOUT,
178  ERR_INITERROR,
181  };
182 
185 }
186 }
Utils::PstString name
Definition: PstTypes.h:43
Tracking target status.
Definition: PstTypes.h:69
Basic vector class, cloning std::vector<T>.
Definition: PstVector.h:29
Definition: PstArray.h:10
Points datapoints
Definition: PstTypes.h:159
Utils::PstVector< Point > Points
Vector of Point objects.
Definition: PstTypes.h:132
Utils::PstVector< Utils::PstArray< float, 3 > > MarkerList
Vector of 3D marker positions of a tracking Target.
Definition: PstTypes.h:141
int seqnumber
Definition: PstTypes.h:157
unsigned int width
Definition: PstTypes.h:29
Utils::PstArray< float, 16 > pose
Definition: PstTypes.h:96
Tracking target information.
Definition: PstTypes.h:41
Utils::PstVector< TargetPose > TargetPoses
Vector of TargetPose objects.
Definition: PstTypes.h:106
bool status
Definition: PstTypes.h:71
Utils::PstVector< Target > Targets
Vector of Target objects.
Definition: PstTypes.h:55
Utils::PstVector< TargetStatus > TargetStatuses
Vector of TargetStatus objects.
Definition: PstTypes.h:81
Utils::PstString uuid
Definition: PstTypes.h:44
unsigned int height
Definition: PstTypes.h:30
StatusMessage
Tracker status messages enum class.
Definition: PstTypes.h:169
Utils::PstArray< float, 3 > position
Definition: PstTypes.h:122
Estimated tracking target pose.
Definition: PstTypes.h:94
Estimated 3D marker location.
Definition: PstTypes.h:119
double timestamp
Definition: PstTypes.h:156
Utils::PstVector< unsigned char * > images
Definition: PstTypes.h:31
Images retrieved from the tracker.
Definition: PstTypes.h:27
int id
Definition: PstTypes.h:45
Definition: PstString.h:17
Tracking information retrieved from tracker.
Definition: PstTypes.h:154
TargetPoses targetlist
Definition: PstTypes.h:158
int id
Definition: PstTypes.h:121