Defines | Functions | Variables
keyboard_publisher.cpp File Reference
#include <termios.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include "ros/ros.h"
#include <sensor_msgs/Joy.h>
Include dependency graph for keyboard_publisher.cpp:

Go to the source code of this file.

Defines

#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_A   0x61
#define KEYCODE_B   0x62
#define KEYCODE_C   0x63
#define KEYCODE_D   0x64
#define KEYCODE_D   0x64
#define KEYCODE_E   0x65
#define KEYCODE_F   0x66
#define KEYCODE_G   0x67
#define KEYCODE_H   0x68
#define KEYCODE_I   0x69
#define KEYCODE_M   0x6D
#define KEYCODE_N   0x6E
#define KEYCODE_Q   0x71
#define KEYCODE_R   0x72
#define KEYCODE_S   0x73
#define KEYCODE_S   0x73
#define KEYCODE_T   0x74
#define KEYCODE_U   0x75
#define KEYCODE_V   0x76
#define KEYCODE_W   0x77
#define KEYCODE_X   0x78
#define KEYCODE_Y   0x79
#define KEYCODE_Z   0x7A

Functions

void composeJoyMessage (sensor_msgs::Joy &msg, char c)
int main (int argc, char **argv)
void quit (int sig)
void showHelp ()

Variables

bool fast_toggle
int kfd = 0
bool mode
const int PUBLISH_FREQ = 5.0
struct termios cooked raw

Define Documentation

#define KEYCODE_1   0x31

Definition at line 45 of file keyboard_publisher.cpp.

#define KEYCODE_2   0x32

Definition at line 46 of file keyboard_publisher.cpp.

#define KEYCODE_3   0x33

Definition at line 47 of file keyboard_publisher.cpp.

#define KEYCODE_4   0x34

Definition at line 48 of file keyboard_publisher.cpp.

#define KEYCODE_5   0x35

Definition at line 49 of file keyboard_publisher.cpp.

#define KEYCODE_6   0x36

Definition at line 50 of file keyboard_publisher.cpp.

#define KEYCODE_7   0x37

Definition at line 51 of file keyboard_publisher.cpp.

#define KEYCODE_8   0x38

Definition at line 52 of file keyboard_publisher.cpp.

#define KEYCODE_A   0x61

Definition at line 36 of file keyboard_publisher.cpp.

#define KEYCODE_B   0x62

Definition at line 75 of file keyboard_publisher.cpp.

#define KEYCODE_C   0x63

Definition at line 73 of file keyboard_publisher.cpp.

#define KEYCODE_D   0x64

Definition at line 67 of file keyboard_publisher.cpp.

#define KEYCODE_D   0x64

Definition at line 67 of file keyboard_publisher.cpp.

#define KEYCODE_E   0x65

Definition at line 41 of file keyboard_publisher.cpp.

#define KEYCODE_F   0x66

Definition at line 68 of file keyboard_publisher.cpp.

#define KEYCODE_G   0x67

Definition at line 69 of file keyboard_publisher.cpp.

#define KEYCODE_H   0x68

Definition at line 32 of file keyboard_publisher.cpp.

#define KEYCODE_I   0x69

Definition at line 61 of file keyboard_publisher.cpp.

#define KEYCODE_M   0x6D

Definition at line 31 of file keyboard_publisher.cpp.

#define KEYCODE_N   0x6E

Definition at line 30 of file keyboard_publisher.cpp.

#define KEYCODE_Q   0x71

Definition at line 40 of file keyboard_publisher.cpp.

#define KEYCODE_R   0x72

Definition at line 57 of file keyboard_publisher.cpp.

#define KEYCODE_S   0x73

Definition at line 66 of file keyboard_publisher.cpp.

#define KEYCODE_S   0x73

Definition at line 66 of file keyboard_publisher.cpp.

#define KEYCODE_T   0x74

Definition at line 58 of file keyboard_publisher.cpp.

#define KEYCODE_U   0x75

Definition at line 60 of file keyboard_publisher.cpp.

#define KEYCODE_V   0x76

Definition at line 74 of file keyboard_publisher.cpp.

#define KEYCODE_W   0x77

Definition at line 39 of file keyboard_publisher.cpp.

#define KEYCODE_X   0x78

Definition at line 72 of file keyboard_publisher.cpp.

#define KEYCODE_Y   0x79

Definition at line 71 of file keyboard_publisher.cpp.

#define KEYCODE_Z   0x7A

Definition at line 59 of file keyboard_publisher.cpp.


Function Documentation

void composeJoyMessage ( sensor_msgs::Joy &  msg,
char  c 
)

Definition at line 93 of file keyboard_publisher.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 295 of file keyboard_publisher.cpp.

void quit ( int  sig)

Definition at line 86 of file keyboard_publisher.cpp.

void showHelp ( )

Definition at line 272 of file keyboard_publisher.cpp.


Variable Documentation

Definition at line 84 of file keyboard_publisher.cpp.

int kfd = 0

Definition at line 81 of file keyboard_publisher.cpp.

bool mode

Definition at line 84 of file keyboard_publisher.cpp.

const int PUBLISH_FREQ = 5.0

Definition at line 79 of file keyboard_publisher.cpp.

struct termios cooked raw

Definition at line 82 of file keyboard_publisher.cpp.



cob_teleop
Author(s): Florian Weisshardt, Maximilian Sieber
autogenerated on Sun Apr 7 2019 03:08:59