00001
00018 #ifndef GLOVECONSTANTS_H
00019 #define GLOVECONSTANTS_H
00020
00021 const double PI = 3.14159;
00022
00023 const int MIN_JOINT_RESOLUTION = 10;
00024 const unsigned int GLOVERAW_MAP2_GLOVEINVENTOR_DEFAULT[22] = { 21,
00025 20,
00026
00027 3,
00028 0,
00029 1,
00030 2,
00031
00032 4,
00033 10,
00034 5,
00035 6,
00036
00037 7,
00038 19,
00039 8,
00040 9,
00041
00042 11,
00043 14,
00044 12,
00045 13,
00046
00047 15,
00048 18,
00049 16,
00050 17
00051 };
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00086 const char *JOINT_NAME[] = {"wrist-left-right",
00087 "wrist-up-down",
00088
00089 "thumb-abdunction",
00090 "thumb-root",
00091 "thumb-middle",
00092 "thumb-top",
00093
00094 "index-root",
00095 "index-abdunction",
00096 "index-middle",
00097 "index-top",
00098
00099 "middle-root",
00100 "middle-abdunction",
00101 "middle-middle",
00102 "middle-top",
00103
00104 "ring-root",
00105 "ring-abdunction",
00106 "ring-middle",
00107 "ring-top",
00108
00109 "pinky-root",
00110 "pinky-abdunction",
00111 "pinky-middle",
00112 "pinky-top"
00113 };
00114
00117 const double RADLIMIT[22][2] = { {0, PI/2}, {0, PI/2}, {0, PI/2}, {0, PI/4},
00118 {0, PI/2}, {0, PI/2}, {0, PI/2}, {0, PI/2},
00119 {0, PI/2}, {0, PI/2}, {0, PI/4}, {0, PI/2},
00120 {0, PI/2}, {0, PI/2}, {0, PI/4}, {0, PI/2},
00121 {0, PI/2}, {0, PI/2}, {0, PI/4}, {0, PI/2},
00122 {0, PI/2}, {0, PI/2}
00123 };
00124
00126 const int RADSIGN[22] = { 1, 1, 1, 1,
00127 1, 1, 1, 1,
00128 1, 1, 1, 1,
00129 1, 1, 1, 1,
00130 1, 1, 1, 1,
00131 1, 1
00132 };
00133
00134 #endif