#include <ros/ros.h>
#include "std_msgs/String.h"
#include "sensor_msgs/JointState.h"
#include <iostream>
#include <signal.h>
#include <termios.h>
#include <stdio.h>
#include <unistd.h>
Go to the source code of this file.
Classes | |
class | AHKeyboard |
Defines | |
#define | DOF_JOINTS 16 |
#define | KEYCODE_0 0x30 |
#define | KEYCODE_1 0x31 |
#define | KEYCODE_2 0x32 |
#define | KEYCODE_3 0x33 |
#define | KEYCODE_4 0x34 |
#define | KEYCODE_5 0x35 |
#define | KEYCODE_6 0x36 |
#define | KEYCODE_7 0x37 |
#define | KEYCODE_8 0x38 |
#define | KEYCODE_9 0x39 |
#define | KEYCODE_A 0x41 |
#define | KEYCODE_a 0x61 |
#define | KEYCODE_B 0x42 |
#define | KEYCODE_b 0x62 |
#define | KEYCODE_C 0x43 |
#define | KEYCODE_c 0x63 |
#define | KEYCODE_D 0x44 |
#define | KEYCODE_d 0x64 |
#define | KEYCODE_DOWN 0x42 |
#define | KEYCODE_E 0x45 |
#define | KEYCODE_e 0x65 |
#define | KEYCODE_F 0x46 |
#define | KEYCODE_f 0x66 |
#define | KEYCODE_G 0x47 |
#define | KEYCODE_g 0x67 |
#define | KEYCODE_H 0x48 |
#define | KEYCODE_h 0x68 |
#define | KEYCODE_I 0x49 |
#define | KEYCODE_i 0x69 |
#define | KEYCODE_J 0x4A |
#define | KEYCODE_j 0x6A |
#define | KEYCODE_K 0x4B |
#define | KEYCODE_k 0x6B |
#define | KEYCODE_L 0x4C |
#define | KEYCODE_l 0x6C |
#define | KEYCODE_LEFT 0x44 |
#define | KEYCODE_M 0x4D |
#define | KEYCODE_m 0x6D |
#define | KEYCODE_N 0x4E |
#define | KEYCODE_n 0x6E |
#define | KEYCODE_NUMPAD0 0x60 |
#define | KEYCODE_NUMPAD1 0x61 |
#define | KEYCODE_NUMPAD2 0x62 |
#define | KEYCODE_NUMPAD3 0x63 |
#define | KEYCODE_NUMPAD4 0x64 |
#define | KEYCODE_NUMPAD5 0x65 |
#define | KEYCODE_NUMPAD6 0x66 |
#define | KEYCODE_NUMPAD7 0x67 |
#define | KEYCODE_NUMPAD8 0x68 |
#define | KEYCODE_NUMPAD9 0x69 |
#define | KEYCODE_O 0x4F |
#define | KEYCODE_o 0x6F |
#define | KEYCODE_P 0x50 |
#define | KEYCODE_p 0x70 |
#define | KEYCODE_Q 0x51 |
#define | KEYCODE_q 0x71 |
#define | KEYCODE_R 0x52 |
#define | KEYCODE_r 0x72 |
#define | KEYCODE_RIGHT 0x43 |
#define | KEYCODE_S 0x53 |
#define | KEYCODE_s 0x73 |
#define | KEYCODE_T 0x54 |
#define | KEYCODE_t 0x74 |
#define | KEYCODE_U 0x55 |
#define | KEYCODE_u 0x75 |
#define | KEYCODE_UP 0x41 |
#define | KEYCODE_V 0x56 |
#define | KEYCODE_v 0x76 |
#define | KEYCODE_W 0x57 |
#define | KEYCODE_w 0x77 |
#define | KEYCODE_X 0x58 |
#define | KEYCODE_x 0x78 |
#define | KEYCODE_Y 0x59 |
#define | KEYCODE_y 0x79 |
#define | KEYCODE_Z 0x5A |
#define | KEYCODE_z 0x7A |
#define | VK_LSHIFT 0xA0 |
#define | VK_SPACE 0x20 |
Functions | |
int | main (int argc, char **argv) |
void | quit (int sig) |
Variables | |
int | finger_num |
int | kfd = 0 |
int | knuckle_num |
struct termios cooked | raw |
#define DOF_JOINTS 16 |
Definition at line 17 of file AllegroHand_keyboard.cpp.
#define KEYCODE_0 0x30 |
Definition at line 29 of file AllegroHand_keyboard.cpp.
#define KEYCODE_1 0x31 |
Definition at line 30 of file AllegroHand_keyboard.cpp.
#define KEYCODE_2 0x32 |
Definition at line 31 of file AllegroHand_keyboard.cpp.
#define KEYCODE_3 0x33 |
Definition at line 32 of file AllegroHand_keyboard.cpp.
#define KEYCODE_4 0x34 |
Definition at line 33 of file AllegroHand_keyboard.cpp.
#define KEYCODE_5 0x35 |
Definition at line 34 of file AllegroHand_keyboard.cpp.
#define KEYCODE_6 0x36 |
Definition at line 35 of file AllegroHand_keyboard.cpp.
#define KEYCODE_7 0x37 |
Definition at line 36 of file AllegroHand_keyboard.cpp.
#define KEYCODE_8 0x38 |
Definition at line 37 of file AllegroHand_keyboard.cpp.
#define KEYCODE_9 0x39 |
Definition at line 38 of file AllegroHand_keyboard.cpp.
#define KEYCODE_A 0x41 |
Definition at line 51 of file AllegroHand_keyboard.cpp.
#define KEYCODE_a 0x61 |
Definition at line 78 of file AllegroHand_keyboard.cpp.
#define KEYCODE_B 0x42 |
Definition at line 52 of file AllegroHand_keyboard.cpp.
#define KEYCODE_b 0x62 |
Definition at line 79 of file AllegroHand_keyboard.cpp.
#define KEYCODE_C 0x43 |
Definition at line 53 of file AllegroHand_keyboard.cpp.
#define KEYCODE_c 0x63 |
Definition at line 80 of file AllegroHand_keyboard.cpp.
#define KEYCODE_D 0x44 |
Definition at line 54 of file AllegroHand_keyboard.cpp.
#define KEYCODE_d 0x64 |
Definition at line 81 of file AllegroHand_keyboard.cpp.
#define KEYCODE_DOWN 0x42 |
Definition at line 27 of file AllegroHand_keyboard.cpp.
#define KEYCODE_E 0x45 |
Definition at line 55 of file AllegroHand_keyboard.cpp.
#define KEYCODE_e 0x65 |
Definition at line 82 of file AllegroHand_keyboard.cpp.
#define KEYCODE_F 0x46 |
Definition at line 56 of file AllegroHand_keyboard.cpp.
#define KEYCODE_f 0x66 |
Definition at line 83 of file AllegroHand_keyboard.cpp.
#define KEYCODE_G 0x47 |
Definition at line 57 of file AllegroHand_keyboard.cpp.
#define KEYCODE_g 0x67 |
Definition at line 84 of file AllegroHand_keyboard.cpp.
#define KEYCODE_H 0x48 |
Definition at line 58 of file AllegroHand_keyboard.cpp.
#define KEYCODE_h 0x68 |
Definition at line 85 of file AllegroHand_keyboard.cpp.
#define KEYCODE_I 0x49 |
Definition at line 59 of file AllegroHand_keyboard.cpp.
#define KEYCODE_i 0x69 |
Definition at line 86 of file AllegroHand_keyboard.cpp.
#define KEYCODE_J 0x4A |
Definition at line 60 of file AllegroHand_keyboard.cpp.
#define KEYCODE_j 0x6A |
Definition at line 87 of file AllegroHand_keyboard.cpp.
#define KEYCODE_K 0x4B |
Definition at line 61 of file AllegroHand_keyboard.cpp.
#define KEYCODE_k 0x6B |
Definition at line 88 of file AllegroHand_keyboard.cpp.
#define KEYCODE_L 0x4C |
Definition at line 62 of file AllegroHand_keyboard.cpp.
#define KEYCODE_l 0x6C |
Definition at line 89 of file AllegroHand_keyboard.cpp.
#define KEYCODE_LEFT 0x44 |
Definition at line 25 of file AllegroHand_keyboard.cpp.
#define KEYCODE_M 0x4D |
Definition at line 63 of file AllegroHand_keyboard.cpp.
#define KEYCODE_m 0x6D |
Definition at line 90 of file AllegroHand_keyboard.cpp.
#define KEYCODE_N 0x4E |
Definition at line 64 of file AllegroHand_keyboard.cpp.
#define KEYCODE_n 0x6E |
Definition at line 91 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD0 0x60 |
Definition at line 40 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD1 0x61 |
Definition at line 41 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD2 0x62 |
Definition at line 42 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD3 0x63 |
Definition at line 43 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD4 0x64 |
Definition at line 44 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD5 0x65 |
Definition at line 45 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD6 0x66 |
Definition at line 46 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD7 0x67 |
Definition at line 47 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD8 0x68 |
Definition at line 48 of file AllegroHand_keyboard.cpp.
#define KEYCODE_NUMPAD9 0x69 |
Definition at line 49 of file AllegroHand_keyboard.cpp.
#define KEYCODE_O 0x4F |
Definition at line 65 of file AllegroHand_keyboard.cpp.
#define KEYCODE_o 0x6F |
Definition at line 92 of file AllegroHand_keyboard.cpp.
#define KEYCODE_P 0x50 |
Definition at line 66 of file AllegroHand_keyboard.cpp.
#define KEYCODE_p 0x70 |
Definition at line 93 of file AllegroHand_keyboard.cpp.
#define KEYCODE_Q 0x51 |
Definition at line 67 of file AllegroHand_keyboard.cpp.
#define KEYCODE_q 0x71 |
Definition at line 94 of file AllegroHand_keyboard.cpp.
#define KEYCODE_R 0x52 |
Definition at line 68 of file AllegroHand_keyboard.cpp.
#define KEYCODE_r 0x72 |
Definition at line 95 of file AllegroHand_keyboard.cpp.
#define KEYCODE_RIGHT 0x43 |
Definition at line 24 of file AllegroHand_keyboard.cpp.
#define KEYCODE_S 0x53 |
Definition at line 69 of file AllegroHand_keyboard.cpp.
#define KEYCODE_s 0x73 |
Definition at line 96 of file AllegroHand_keyboard.cpp.
#define KEYCODE_T 0x54 |
Definition at line 70 of file AllegroHand_keyboard.cpp.
#define KEYCODE_t 0x74 |
Definition at line 97 of file AllegroHand_keyboard.cpp.
#define KEYCODE_U 0x55 |
Definition at line 71 of file AllegroHand_keyboard.cpp.
#define KEYCODE_u 0x75 |
Definition at line 98 of file AllegroHand_keyboard.cpp.
#define KEYCODE_UP 0x41 |
Definition at line 26 of file AllegroHand_keyboard.cpp.
#define KEYCODE_V 0x56 |
Definition at line 72 of file AllegroHand_keyboard.cpp.
#define KEYCODE_v 0x76 |
Definition at line 99 of file AllegroHand_keyboard.cpp.
#define KEYCODE_W 0x57 |
Definition at line 73 of file AllegroHand_keyboard.cpp.
#define KEYCODE_w 0x77 |
Definition at line 100 of file AllegroHand_keyboard.cpp.
#define KEYCODE_X 0x58 |
Definition at line 74 of file AllegroHand_keyboard.cpp.
#define KEYCODE_x 0x78 |
Definition at line 101 of file AllegroHand_keyboard.cpp.
#define KEYCODE_Y 0x59 |
Definition at line 75 of file AllegroHand_keyboard.cpp.
#define KEYCODE_y 0x79 |
Definition at line 102 of file AllegroHand_keyboard.cpp.
#define KEYCODE_Z 0x5A |
Definition at line 76 of file AllegroHand_keyboard.cpp.
#define KEYCODE_z 0x7A |
Definition at line 103 of file AllegroHand_keyboard.cpp.
#define VK_LSHIFT 0xA0 |
Definition at line 21 of file AllegroHand_keyboard.cpp.
#define VK_SPACE 0x20 |
Definition at line 20 of file AllegroHand_keyboard.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 145 of file AllegroHand_keyboard.cpp.
void quit | ( | int | sig | ) |
Definition at line 137 of file AllegroHand_keyboard.cpp.
int finger_num |
Definition at line 130 of file AllegroHand_keyboard.cpp.
int kfd = 0 |
Definition at line 134 of file AllegroHand_keyboard.cpp.
int knuckle_num |
Definition at line 131 of file AllegroHand_keyboard.cpp.
struct termios cooked raw |
Definition at line 135 of file AllegroHand_keyboard.cpp.