uos_diffdrive_teleop_key.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (C) 2015 University of Osnabrück, Germany
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  * uos_diffdrive_teleop_key.h
20  *
21  * Created on: 16.02.2015
22  * Author: Sebastian Pütz <spuetz@uos.de>
23  */
24 
25 #ifndef UOS_DIFFDRIVE_TELEOP_KEY_H
26 #define UOS_DIFFDRIVE_TELEOP_KEY_H
27 
28 #include <termios.h>
29 #include <signal.h>
30 #include <stdio.h>
31 #include <stdlib.h>
32 
33 #include <ros/ros.h>
34 #include <uos_diffdrive_teleop.h>
35 #include <sensor_msgs/Joy.h>
36 
37 #define KEYCODE_A 0x61
38 #define KEYCODE_D 0x64
39 #define KEYCODE_S 0x73
40 #define KEYCODE_W 0x77
41 #define KEYCODE_Q 0x71
42 #define KEYCODE_E 0x65
43 
44 #define KEYCODE_A_CAP 0x41
45 #define KEYCODE_D_CAP 0x44
46 #define KEYCODE_S_CAP 0x53
47 #define KEYCODE_W_CAP 0x57
48 #define KEYCODE_Q_CAP 0x51
49 #define KEYCODE_E_CAP 0x45
50 
51 #define KEYCODE_SPACE 0x20
52 
53 class TeleopKeyboard : public Teleop
54 {
55  public:
57  void readKeyboard();
58 
59  private:
60  char c;
61  double normal_x;
62  double normal_y;
63  double high_x;
64  double high_y;
65 
66 };
67 #endif /* uos_diffdrive_teleop_key.h */
68 


uos_diffdrive_teleop
Author(s): Jochen Sprickerhof, Sebastian Pütz
autogenerated on Mon Jun 10 2019 15:49:27