26 #ifndef __KINDRV_TYPES_H_
27 #define __KINDRV_TYPES_H_
36 ERROR_USB_DEVICE = 102,
37 ERROR_USB_INTERFACE = 103,
39 ERROR_USB_INTERRUPT = 201,
40 ERROR_USB_SHORT_WRITE = 202,
41 ERROR_USB_SHORT_READ = 203,
43 ERROR_CMD_ID_MISMATCH = 301,
47 POSITION_NO_MOVEMENT = 0,
48 POSITION_CARTESIAN = 1,
53 } jaco_position_type_t;
62 MODE_NORMAL_TO_READY = 0,
63 MODE_READY_STANDBY = 1,
64 MODE_READY_TO_RETRACT = 2,
65 MODE_RETRACT_STANDBY = 3,
66 MODE_RETRACT_TO_READY = 4,
70 } jaco_retract_mode_t;
89 float finger_position[3];
96 jaco_hand_mode_t hand_mode;
97 jaco_position_type_t pos_type;
101 typedef unsigned short jaco_joystick_button_t[16];
120 jaco_joystick_button_t button;
128 float acceleration[3];
129 float joint_temperature[6];
130 float finger_temperature[3];
135 jaco_position_type_t pos_type;
140 jaco_hand_mode_t hand_mode;
141 float finger_position[3];
147 unsigned char data[112];
152 char organization[20];
156 char temp_buffer[12];
188 } jaco_client_config_t;
193 unsigned short id_packet;
194 unsigned short packet_quantity;
195 unsigned short command_id;
196 unsigned short command_size;
197 } usb_packet_header_t;
202 unsigned char data[64];