Nuitrack  1.11.2
3D Skeleton Tracking Middleware
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Skeleton.h
1 #ifndef NUITRACK_SKELETON_H_
2 #define NUITRACK_SKELETON_H_
3 
4 #include <vector>
5 
6 #include "nuitrack/types/Vector3.h"
7 #include "nuitrack/types/Orientation.h"
8 
9 namespace tdv
10 {
11 namespace nuitrack
12 {
13 
19 {
20  JOINT_NONE = 0,
21 
22  JOINT_HEAD = 1,
23  JOINT_NECK = 2,
26 
33 
40 
45 
50 };
51 
56 struct Joint
57 {
62 
66  float confidence;
67 
72 
78 
83 };
84 
108 struct Skeleton
109 {
113  int id;
114 
118  std::vector<Joint> joints;
119 };
120 
121 } /* namespace nuitrack */
122 } /* namespace tdv */
123 
124 #endif /* NUITRACK_SKELETON_H_ */
Neck.
Definition: Skeleton.h:23
Right wrist.
Definition: Skeleton.h:37
Right shoulder.
Definition: Skeleton.h:35
Right collar.
Definition: Skeleton.h:34
Left wrist.
Definition: Skeleton.h:30
Right elbow.
Definition: Skeleton.h:36
JointType type
Joint type.
Definition: Skeleton.h:61
Right fingertip (not used in the current version).
Definition: Skeleton.h:39
Torso.
Definition: Skeleton.h:24
Stores the joint data.
Definition: Skeleton.h:56
Vector3 real
Joint position in real world coordinates.
Definition: Skeleton.h:71
Right knee.
Definition: Skeleton.h:47
JointType
Joint index meaning (please note that JOINT_LEFT_FINGERTIP, JOINT_RIGHT_FINGERTIP, JOINT_LEFT_FOOT, JOINT_RIGHT_FOOT are not used in the current version).
Definition: Skeleton.h:18
Left shoulder.
Definition: Skeleton.h:28
Definition: Vector3.h:20
Vector3 proj
Joint position in normalized projective coordinates (x, y from 0.0 to 1.0, z is real).
Definition: Skeleton.h:77
Reserved joint (unused).
Definition: Skeleton.h:20
Left foot (not used in the current version).
Definition: Skeleton.h:44
Left knee.
Definition: Skeleton.h:42
Left hand.
Definition: Skeleton.h:31
Waist.
Definition: Skeleton.h:25
Right hand.
Definition: Skeleton.h:38
Left hip.
Definition: Skeleton.h:41
Stores the spatial orientation as a 3x3 rotation matrix.
Definition: Orientation.h:12
Right ankle.
Definition: Skeleton.h:48
Stores the data of the skeleton.
Definition: Skeleton.h:108
Left ankle.
Definition: Skeleton.h:43
Left collar.
Definition: Skeleton.h:27
int id
User Id. The same as other(UserTracker, HandTracker, GestureRecognizer) modules uses.
Definition: Skeleton.h:113
Head.
Definition: Skeleton.h:22
Left fingertip (not used in the current version).
Definition: Skeleton.h:32
Orientation orient
Joint orientation.
Definition: Skeleton.h:82
std::vector< Joint > joints
Array of joints. Where each index is ::JointType.
Definition: Skeleton.h:118
float confidence
Joint confidence from 0.0 to 1.0. Larger value means more confident joint.
Definition: Skeleton.h:66
Right hip.
Definition: Skeleton.h:46
Left elbow.
Definition: Skeleton.h:29
Right foot (not used in the current version).
Definition: Skeleton.h:49