JunkBox_Lib++ (for Windows)
1.10.1
Loading...
Searching...
No Matches
NiDevice.h
Go to the documentation of this file.
1
#ifndef __JBXL_CPP_NIDEVICE_H_
2
#define __JBXL_CPP_NIDEVICE_H_
3
4
#ifdef ENABLE_OPENNI2
5
#define OPENNI2_JOINT_NUM 16
// NiteCEnums.h (15+1) [+1はPELVIS]
6
#define OPENNI_JOINT_NUM OPENNI2_JOINT_NUM
7
#elif defined(ENABLE_OPENNI)
8
#define OPENNI_JOINT_NUM 25
// XnTypes.h (24+1) [+1はPELVIS]
9
#endif
10
11
#define OPENNI_USERS_NUM 6
12
#define OPENNI_JOINT_CONFIDENCE 0.5
13
14
15
//
16
enum
ONI_EnuDev
17
{
18
EnuDev_Unknown
,
19
EnuDev_None
,
20
EnuDev_PS1080
,
21
EnuDev_Kinect
,
22
EnuDev_OniFile
23
};
24
25
26
//#define OPENNI_XGA_MODE
27
28
#ifdef OPENNI_XGA_MODE
29
#define OPENNI_DEPTH_XSIZE 1024
// XN_XGA_X_RES
30
#define OPENNI_DEPTH_YSIZE 768
// XN_XGA_Y_RES
31
#define OPENNI_DEPTH_FPS 15
32
#else
33
#define OPENNI_DEPTH_XSIZE 640
// XN_VGA_X_RES
34
#define OPENNI_DEPTH_YSIZE 480
// XN_VGA_Y_RES
35
#define OPENNI_DEPTH_FPS 30
36
#endif
37
38
39
#define NI_STATE_UNKNOWN -1
40
#define NI_STATE_DETECT_STOPPED 0
41
#define NI_STATE_DETECT_STARTING 1
42
#define NI_STATE_DETECT_EXEC 2
43
#define NI_STATE_DETECT_STOPPING 3
44
#define NI_STATE_SAVE_WORKING 4
45
46
#define NI_WORKING_WAIT_TIME 200
// ms
47
#define NI_STOP_WAIT_TIME 500
// ms
48
49
#define NI_FPS_MAX 30
50
51
// USB
52
#define NI_VID_MICROSOFT 0x045e
53
#define NI_PID_NUI_MOTOR 0x02b0
54
55
#define NI_LED_OFF 0
56
#define NI_LED_GREEN 1
57
#define NI_LED_RED 2
58
#define NI_LED_ORANGE 3
59
#define NI_LED_BLINK_GREEN 4
60
#define NI_LED_BLINK_RED 5
61
#define NI_LED_BLINK_ORANGE 6
62
63
64
namespace
jbxl
{
65
66
67
68
}
69
70
71
#endif
72
ONI_EnuDev
ONI_EnuDev
Definition
NiDevice.h:17
EnuDev_Kinect
@ EnuDev_Kinect
Definition
NiDevice.h:21
EnuDev_Unknown
@ EnuDev_Unknown
Definition
NiDevice.h:18
EnuDev_OniFile
@ EnuDev_OniFile
Definition
NiDevice.h:22
EnuDev_None
@ EnuDev_None
Definition
NiDevice.h:19
EnuDev_PS1080
@ EnuDev_PS1080
Definition
NiDevice.h:20
jbxl
Definition
Brep.h:29
NiLib
NiDevice.h
Generated on Sat Oct 12 2024 19:42:08 for JunkBox_Lib++ (for Windows) by
1.11.0