-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNiteEnums.h
executable file
·76 lines (64 loc) · 1.65 KB
/
NiteEnums.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*******************************************************************************
* *
* PrimeSense 2.0 *
* Copyright (C) 2012 PrimeSense Ltd. *
* *
*******************************************************************************/
#ifndef _NITE_ENUMS_H_
#define _NITE_ENUMS_H_
/** Available joints in skeleton */
typedef enum
{
JOINT_HEAD,
JOINT_NECK,
JOINT_LEFT_SHOULDER,
JOINT_RIGHT_SHOULDER,
JOINT_LEFT_ELBOW,
JOINT_RIGHT_ELBOW,
JOINT_LEFT_HAND,
JOINT_RIGHT_HAND,
JOINT_TORSO,
JOINT_LEFT_HIP,
JOINT_RIGHT_HIP,
JOINT_LEFT_KNEE,
JOINT_RIGHT_KNEE,
JOINT_LEFT_FOOT,
JOINT_RIGHT_FOOT,
} JointType;
/** Possible states of the skeleton */
typedef enum
{
/** No skeleton - skeleton was not requested */
SKELETON_NONE,
/** Skeleton requested, but still unavailable */
SKELETON_CALIBRATING,
/** Skeleton available */
SKELETON_TRACKED,
/** Possible reasons as to why skeleton is unavailable */
SKELETON_CALIBRATION_ERROR_NOT_IN_POSE,
SKELETON_CALIBRATION_ERROR_HANDS,
SKELETON_CALIBRATION_ERROR_HEAD,
SKELETON_CALIBRATION_ERROR_LEGS,
SKELETON_CALIBRATION_ERROR_TORSO
} SkeletonState;
/** Possible failure values */
typedef enum
{
STATUS_OK,
STATUS_ERROR,
STATUS_BAD_USER_ID,
STATUS_OUT_OF_FLOW
} Status;
typedef enum
{
POSE_PSI,
POSE_CROSSED_HANDS
} PoseType;
/** Available gestures types */
typedef enum
{
GESTURE_WAVE,
GESTURE_CLICK,
GESTURE_HAND_RAISE
} GestureType;
#endif // _NITE_ENUMS_H_