Classes | Macros | Functions | Variables
teleop_turtle_key.cpp File Reference
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <signal.h>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
Include dependency graph for teleop_turtle_key.cpp:

Go to the source code of this file.

Classes

class  KeyboardReader
 
class  TeleopTurtle
 

Macros

#define KEYCODE_B   0x62
 
#define KEYCODE_C   0x63
 
#define KEYCODE_D   0x64
 
#define KEYCODE_DOWN   0x42
 
#define KEYCODE_E   0x65
 
#define KEYCODE_F   0x66
 
#define KEYCODE_G   0x67
 
#define KEYCODE_LEFT   0x44
 
#define KEYCODE_Q   0x71
 
#define KEYCODE_R   0x72
 
#define KEYCODE_RIGHT   0x43
 
#define KEYCODE_T   0x74
 
#define KEYCODE_UP   0x41
 
#define KEYCODE_V   0x76
 

Functions

int main (int argc, char **argv)
 
void quit (int sig)
 

Variables

KeyboardReader input
 

Macro Definition Documentation

◆ KEYCODE_B

#define KEYCODE_B   0x62

Definition at line 16 of file teleop_turtle_key.cpp.

◆ KEYCODE_C

#define KEYCODE_C   0x63

Definition at line 17 of file teleop_turtle_key.cpp.

◆ KEYCODE_D

#define KEYCODE_D   0x64

Definition at line 18 of file teleop_turtle_key.cpp.

◆ KEYCODE_DOWN

#define KEYCODE_DOWN   0x42

Definition at line 15 of file teleop_turtle_key.cpp.

◆ KEYCODE_E

#define KEYCODE_E   0x65

Definition at line 19 of file teleop_turtle_key.cpp.

◆ KEYCODE_F

#define KEYCODE_F   0x66

Definition at line 20 of file teleop_turtle_key.cpp.

◆ KEYCODE_G

#define KEYCODE_G   0x67

Definition at line 21 of file teleop_turtle_key.cpp.

◆ KEYCODE_LEFT

#define KEYCODE_LEFT   0x44

Definition at line 13 of file teleop_turtle_key.cpp.

◆ KEYCODE_Q

#define KEYCODE_Q   0x71

Definition at line 22 of file teleop_turtle_key.cpp.

◆ KEYCODE_R

#define KEYCODE_R   0x72

Definition at line 23 of file teleop_turtle_key.cpp.

◆ KEYCODE_RIGHT

#define KEYCODE_RIGHT   0x43

Definition at line 12 of file teleop_turtle_key.cpp.

◆ KEYCODE_T

#define KEYCODE_T   0x74

Definition at line 24 of file teleop_turtle_key.cpp.

◆ KEYCODE_UP

#define KEYCODE_UP   0x41

Definition at line 14 of file teleop_turtle_key.cpp.

◆ KEYCODE_V

#define KEYCODE_V   0x76

Definition at line 25 of file teleop_turtle_key.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 190 of file teleop_turtle_key.cpp.

◆ quit()

void quit ( int  sig)

Definition at line 181 of file teleop_turtle_key.cpp.

Variable Documentation

◆ input

Definition at line 152 of file teleop_turtle_key.cpp.



turtlesim
Author(s): Josh Faust, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:31:12