-
Notifications
You must be signed in to change notification settings - Fork 2
/
nitepy.py~
88 lines (69 loc) · 3.58 KB
/
nitepy.py~
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
77
78
79
80
81
82
83
84
85
86
87
88
#This file contains the setup to use the methods from the nitepy.dll.
#The methods must have their return types set using ctypes otherwise the values returned
#from nitepy.dll will be unreadable and cause errors.
#Any file that wants to utilize the skeleton data needs to import this file or a file that
#has already imported this file.
#After importing this file, the methods can be used in the normal way they would be called
#(ie. lib.getUserSkeletonHeadX(Tracker, int)
import ctypes
lib=ctypes.CDLL('nitepy')
lib.getUserSkeletonHeadConf.restype = ctypes.c_float
lib.getUserSkeletonHeadX.restype = ctypes.c_float
lib.getUserSkeletonHeadY.restype = ctypes.c_float
lib.getUserSkeletonHeadZ.restype = ctypes.c_float
lib.getUserSkeletonNeckConf.restype = ctypes.c_float
lib.getUserSkeletonNeckX.restype = ctypes.c_float
lib.getUserSkeletonNeckY.restype = ctypes.c_float
lib.getUserSkeletonNeckZ.restype = ctypes.c_float
lib.getUserSkeletonL_ShConf.restype = ctypes.c_float
lib.getUserSkeletonL_ShX.restype = ctypes.c_float
lib.getUserSkeletonL_ShY.restype = ctypes.c_float
lib.getUserSkeletonL_ShZ.restype = ctypes.c_float
lib.getUserSkeletonR_ShConf.restype = ctypes.c_float
lib.getUserSkeletonR_ShX.restype = ctypes.c_float
lib.getUserSkeletonR_ShY.restype = ctypes.c_float
lib.getUserSkeletonR_ShZ.restype = ctypes.c_float
lib.getUserSkeletonL_ElbowConf.restype = ctypes.c_float
lib.getUserSkeletonL_ElbowX.restype = ctypes.c_float
lib.getUserSkeletonL_ElbowY.restype = ctypes.c_float
lib.getUserSkeletonL_ElbowZ.restype = ctypes.c_float
lib.getUserSkeletonR_ElbowConf.restype = ctypes.c_float
lib.getUserSkeletonR_ElbowX.restype = ctypes.c_float
lib.getUserSkeletonR_ElbowY.restype = ctypes.c_float
lib.getUserSkeletonR_ElbowZ.restype = ctypes.c_float
lib.getUserSkeletonL_HandConf.restype = ctypes.c_float
lib.getUserSkeletonL_HandX.restype = ctypes.c_float
lib.getUserSkeletonL_HandY.restype = ctypes.c_float
lib.getUserSkeletonL_HandZ.restype = ctypes.c_float
lib.getUserSkeletonR_HandConf.restype = ctypes.c_float
lib.getUserSkeletonR_HandX.restype = ctypes.c_float
lib.getUserSkeletonR_HandY.restype = ctypes.c_float
lib.getUserSkeletonR_HandZ.restype = ctypes.c_float
lib.getUserSkeletonTorsoConf.restype = ctypes.c_float
lib.getUserSkeletonTorsoX.restype = ctypes.c_float
lib.getUserSkeletonTorsoY.restype = ctypes.c_float
lib.getUserSkeletonTorsoZ.restype = ctypes.c_float
lib.getUserSkeletonL_HipConf.restype = ctypes.c_float
lib.getUserSkeletonL_HipX.restype = ctypes.c_float
lib.getUserSkeletonL_HipY.restype = ctypes.c_float
lib.getUserSkeletonL_HipZ.restype = ctypes.c_float
lib.getUserSkeletonR_HipConf.restype = ctypes.c_float
lib.getUserSkeletonR_HipX.restype = ctypes.c_float
lib.getUserSkeletonR_HipY.restype = ctypes.c_float
lib.getUserSkeletonR_HipZ.restype = ctypes.c_float
lib.getUserSkeletonL_KneeConf.restype = ctypes.c_float
lib.getUserSkeletonL_KneeX.restype = ctypes.c_float
lib.getUserSkeletonL_KneeY.restype = ctypes.c_float
lib.getUserSkeletonL_KneeZ.restype = ctypes.c_float
lib.getUserSkeletonR_KneeConf.restype = ctypes.c_float
lib.getUserSkeletonR_KneeX.restype = ctypes.c_float
lib.getUserSkeletonR_KneeY.restype = ctypes.c_float
lib.getUserSkeletonR_KneeZ.restype = ctypes.c_float
lib.getUserSkeletonL_FootConf.restype = ctypes.c_float
lib.getUserSkeletonL_FootX.restype = ctypes.c_float
lib.getUserSkeletonL_FootY.restype = ctypes.c_float
lib.getUserSkeletonL_FootZ.restype = ctypes.c_float
lib.getUserSkeletonR_FootConf.restype = ctypes.c_float
lib.getUserSkeletonR_FootX.restype = ctypes.c_float
lib.getUserSkeletonR_FootY.restype = ctypes.c_float
lib.getUserSkeletonR_FootZ.restype = ctypes.c_float