EEROS  1.0.0.0
API for the EEROS Real-Time Robotics Framework
Keyboard.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_HAL_KEYBOARD_HPP_
2 #define ORG_EEROS_HAL_KEYBOARD_HPP_
3 
4 #include <string>
5 #include <functional>
6 #include <termios.h>
7 #include <linux/input.h>
8 #include <eeros/hal/Input.hpp>
9 #include <eeros/core/Thread.hpp>
10 
11 namespace eeros {
12  namespace hal {
13 
14  struct Events {
15  bool esc;
16  bool emergency;
17  bool reset;
18  bool start;
19  bool stop;
20  };
21 
22  class Keyboard : public eeros::Thread {
23  public:
24  explicit Keyboard();
25  ~Keyboard();
27  bool homed[5];
28  double speed[4];
29  private:
30  virtual void run();
31  bool running;
32  struct termios tio;
38  };
39  }
40 }
41 
42 #endif // ORG_EEROS_HAL_KEYBOARD_HPP_
Definition: Keyboard.hpp:14
bool esc
Definition: Keyboard.hpp:15
bool reset
Definition: Keyboard.hpp:17
bool stop
Definition: Keyboard.hpp:19
Definition: Config.hpp:14
Definition: Thread.hpp:12
bool emergency
Definition: Keyboard.hpp:16
volatile bool running
Definition: Executor.cpp:25
Events events
Definition: Keyboard.hpp:26
Definition: Keyboard.hpp:22
bool start
Definition: Keyboard.hpp:18