/* #include "DG2errs.h"*/ #define DG2_FLAT 0 #define DG2_BENT1 1 #define DG2_BENT2 2 #define DG2_RAW 0 #define DG2_ANGLES 1 #define DG2_LOAD 0 #define DG2_SAVE 1 #define THUMB_MP 0 /* Metacarpophalangeal */ #define THUMB_IP 1 /* Interphalangeal */ #define INDEX_MP 2 #define INDEX_PIP 3 /* Proximal Interphalangeal */ #define MIDDLE_MP 4 #define MIDDLE_PIP 5 #define RING_MP 6 #define RING_PIP 7 #define LITTLE_MP 8 #define LITTLE_PIP 9 #define NUMSENSORS 10 typedef short DG2_flex[NUMSENSORS]; /* Joint angles in degrees */ typedef struct { float x, y, z; /* Position in inches */ float yaw, pitch, roll; /* Euler angles in degrees */ } DG2_spatial; typedef struct { DG2_spatial spatial; DG2_flex flexion; char gestcode; char gestname[16]; } DG2_glove; typedef struct { int x[17], y[17], z[17], x_proj_image[17], y_proj_image[17]; } Hand_Points; /** typedef struct { short in_ang[5], out_ang[5], in_delta[5], out_delta[5]; int (*gest_fun)(); char ges_name[40]; } Gest_Node; **/ /* End of DG2define.h */