Azure Kinect Body Tracking SDK  1.0.1
k4abttypes.h
1 
5 #ifndef K4ABTTYPES_H
6 #define K4ABTTYPES_H
7 
8 #include <k4a/k4atypes.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
34 K4A_DECLARE_HANDLE(k4abt_tracker_t);
35 
41 K4A_DECLARE_HANDLE(k4abt_frame_t);
42 
57 typedef enum
58 {
59  K4ABT_JOINT_PELVIS = 0,
60  K4ABT_JOINT_SPINE_NAVEL,
61  K4ABT_JOINT_SPINE_CHEST,
62  K4ABT_JOINT_NECK,
63  K4ABT_JOINT_CLAVICLE_LEFT,
64  K4ABT_JOINT_SHOULDER_LEFT,
65  K4ABT_JOINT_ELBOW_LEFT,
66  K4ABT_JOINT_WRIST_LEFT,
67  K4ABT_JOINT_HAND_LEFT,
68  K4ABT_JOINT_HANDTIP_LEFT,
69  K4ABT_JOINT_THUMB_LEFT,
70  K4ABT_JOINT_CLAVICLE_RIGHT,
71  K4ABT_JOINT_SHOULDER_RIGHT,
72  K4ABT_JOINT_ELBOW_RIGHT,
73  K4ABT_JOINT_WRIST_RIGHT,
74  K4ABT_JOINT_HAND_RIGHT,
75  K4ABT_JOINT_HANDTIP_RIGHT,
76  K4ABT_JOINT_THUMB_RIGHT,
77  K4ABT_JOINT_HIP_LEFT,
78  K4ABT_JOINT_KNEE_LEFT,
79  K4ABT_JOINT_ANKLE_LEFT,
80  K4ABT_JOINT_FOOT_LEFT,
81  K4ABT_JOINT_HIP_RIGHT,
82  K4ABT_JOINT_KNEE_RIGHT,
83  K4ABT_JOINT_ANKLE_RIGHT,
84  K4ABT_JOINT_FOOT_RIGHT,
85  K4ABT_JOINT_HEAD,
86  K4ABT_JOINT_NOSE,
87  K4ABT_JOINT_EYE_LEFT,
88  K4ABT_JOINT_EAR_LEFT,
89  K4ABT_JOINT_EYE_RIGHT,
90  K4ABT_JOINT_EAR_RIGHT,
91  K4ABT_JOINT_COUNT
93 
103 typedef enum
104 {
110 
117 typedef enum
118 {
122 
128 typedef struct _k4abt_tracker_configuration_t
129 {
135 
142 
147  int32_t gpu_device_id;
149 
164 typedef union
165 {
167  struct _wxyz
168  {
169  float w;
170  float x;
171  float y;
172  float z;
173  } wxyz;
174  float v[4];
176 
183 typedef enum
184 {
191 
197 typedef struct _k4abt_joint_t
198 {
202 } k4abt_joint_t;
203 
206 typedef struct _k4abt_skeleton_t
207 {
208  k4abt_joint_t joints[K4ABT_JOINT_COUNT];
210 
213 typedef struct _k4abt_body_t
214 {
215  uint32_t id;
217 } k4abt_body_t;
218 
233 #define K4ABT_BODY_INDEX_MAP_BACKGROUND 255
234 
237 #define K4ABT_INVALID_BODY_ID 0xFFFFFFFF
238 
241 #define K4ABT_DEFAULT_TRACKER_SMOOTHING_FACTOR 0.0f
242 
249  K4ABT_TRACKER_PROCESSING_MODE_GPU, // processing_mode
250  0 }; // gpu_device_id
251 
256 #ifdef __cplusplus
257 }
258 #endif
259 
260 #endif /* K4ABTTYPES_H */
k4a_float3_t position
The position of the joint specified in millimeters.
Definition: k4abttypes.h:199
The total number of confidence levels.
Definition: k4abttypes.h:189
k4abt_joint_id_t
Model fitting joint definition.
Definition: k4abttypes.h:57
k4abt_tracker_processing_mode_t processing_mode
Specify whether to use CPU only mode or GPU mode to run the tracker.
Definition: k4abttypes.h:141
uint32_t id
An id for the body that can be used for frame-to-frame correlation.
Definition: k4abttypes.h:215
float z
Z representation of a quaternion.
Definition: k4abttypes.h:172
k4abt_joint_confidence_level_t confidence_level
The confidence level of the joint.
Definition: k4abttypes.h:201
Handle to k4a body tracking component.
Definition: k4abttypes.h:34
Mount the sensor upside-down.
Definition: k4abttypes.h:108
Structure to define joints for skeleton.
Definition: k4abttypes.h:206
Structure to define body.
Definition: k4abttypes.h:213
k4abt_sensor_orientation_t
Sensor mounting orientation types.
Definition: k4abttypes.h:103
k4a_quaternion_t
Definition: k4abttypes.h:164
Handle to a k4a body tracking frame.
Definition: k4abttypes.h:41
k4abt_joint_confidence_level_t
k4abt_joint_confidence_level_t
Definition: k4abttypes.h:183
k4abt_sensor_orientation_t sensor_orientation
The sensor mounting orientation type.
Definition: k4abttypes.h:134
float y
Y representation of a quaternion.
Definition: k4abttypes.h:171
Clockwisely rotate the sensor 90 degree.
Definition: k4abttypes.h:106
int32_t gpu_device_id
Specify the GPU device ID to run the tracker.
Definition: k4abttypes.h:147
Medium confidence in joint pose.
Definition: k4abttypes.h:187
WXYZ or array representation of quaternion.
Definition: k4abttypes.h:167
Counter-clockwisely rotate the sensor 90 degrees.
Definition: k4abttypes.h:107
High confidence in joint pose.
Definition: k4abttypes.h:188
k4abt_tracker_processing_mode_t
Tracker processing mode types.
Definition: k4abttypes.h:117
SDK will use CPU only mode to run the tracker.
Definition: k4abttypes.h:120
k4a_quaternion_t orientation
The orientation of the joint specified in normalized quaternion.
Definition: k4abttypes.h:200
Mount the sensor at its default orientation.
Definition: k4abttypes.h:105
Configuration parameters for a k4abt body tracker.
Definition: k4abttypes.h:128
The joint is out of range (too far from depth camera)
Definition: k4abttypes.h:185
static const k4abt_tracker_configuration_t K4ABT_TRACKER_CONFIG_DEFAULT
Default configuration setting for k4abt tracker.
Definition: k4abttypes.h:248
float x
X representation of a quaternion.
Definition: k4abttypes.h:170
Structure to define a single joint.
Definition: k4abttypes.h:197
SDK will use GPU mode to run the tracker.
Definition: k4abttypes.h:119
The joint is not observed (likely due to occlusion), predicted joint pose.
Definition: k4abttypes.h:186
k4abt_skeleton_t skeleton
The skeleton information for the body.
Definition: k4abttypes.h:216
float w
W representation of a quaternion.
Definition: k4abttypes.h:169