EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MouseInput.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_CONTROL_MOUSEINPUT_HPP_
2 #define ORG_EEROS_CONTROL_MOUSEINPUT_HPP_
3 
4 #include <string>
5 #include <thread>
8 #include <eeros/core/System.hpp>
9 #include <eeros/hal/Mouse.hpp>
10 #include <eeros/math/Matrix.hpp>
11 
12 
13 namespace eeros {
14  namespace control {
15 
17  public:
18  MouseInput(std::string dev);
19  virtual ~MouseInput();
20 
26 
27  virtual void run();
28 
29  virtual void setInitPos(double x, double y, double z, double r);
30  virtual void setInitPos(eeros::math::Matrix<4> pos);
31  virtual void reset(double x, double y, double z, double r);
32 
33  double axisScale_x = 0.0001;
34  double axisScale_y = 0.0001;
35  double axisScale_z = 0.001;
36  double axisScale_r = 0.2;
37  double min_x = -0.03;
38  double max_x = 0.045;
39  double min_y = -0.03;
40  double max_y = 0.03;
41  double min_z = -0.053;
42  double max_z = -0.015;
43  double min_r = -2.8;
44  double max_r = 2.8;
45 
47 
48  protected:
54 
55 
56  double x, y, z, r;
57  bool first;
58  std::thread* t;
59  };
60  };
61 };
62 
63 #endif /* ORG_EEROS_CONTROL_MOUSEINPUT_HPP_ */
bool first
Definition: MouseInput.hpp:57
eeros::control::Output< double > outX
Definition: MouseInput.hpp:49
double axisScale_z
Definition: MouseInput.hpp:35
double axisScale_r
Definition: MouseInput.hpp:36
eeros::control::Output< eeros::math::Matrix< 4 > > out
Definition: MouseInput.hpp:53
double max_x
Definition: MouseInput.hpp:38
double max_y
Definition: MouseInput.hpp:40
eeros::control::Output< double > & getOutY()
Definition: MouseInput.cpp:77
double min_z
Definition: MouseInput.hpp:41
double z
Definition: MouseInput.hpp:56
double max_z
Definition: MouseInput.hpp:42
double axisScale_y
Definition: MouseInput.hpp:34
double min_r
Definition: MouseInput.hpp:43
std::thread * t
Definition: MouseInput.hpp:58
eeros::control::Output< double > & getOutR()
Definition: MouseInput.cpp:85
double r
Definition: MouseInput.hpp:56
virtual void run()
Definition: MouseInput.cpp:18
Definition: Block.hpp:10
eeros::control::Output< double > outY
Definition: MouseInput.hpp:50
virtual void reset(double x, double y, double z, double r)
Definition: MouseInput.cpp:106
MouseInput(std::string dev)
Definition: MouseInput.cpp:6
eeros::hal::Mouse j
Definition: MouseInput.hpp:46
Definition: Mouse.hpp:31
double min_x
Definition: MouseInput.hpp:37
eeros::control::Output< eeros::math::Matrix< 4 > > & getOut()
Definition: MouseInput.cpp:89
double axisScale_x
Definition: MouseInput.hpp:33
double min_y
Definition: MouseInput.hpp:39
virtual ~MouseInput()
Definition: MouseInput.cpp:13
eeros::control::Output< double > outR
Definition: MouseInput.hpp:52
eeros::control::Output< double > outZ
Definition: MouseInput.hpp:51
eeros::control::Output< double > & getOutX()
Definition: MouseInput.cpp:74
virtual void setInitPos(double x, double y, double z, double r)
Definition: MouseInput.cpp:93
double max_r
Definition: MouseInput.hpp:44
eeros::control::Output< double > & getOutZ()
Definition: MouseInput.cpp:81
Definition: MouseInput.hpp:16
double x
Definition: MouseInput.hpp:56
double y
Definition: MouseInput.hpp:56