EEROS
0.4.1.0
API for the EEROS Real-Time Robotics Framework
Main Page
Namespaces
Classes
Files
File List
File Members
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>
6
#include <
eeros/control/Block.hpp
>
7
#include <
eeros/control/Output.hpp
>
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
16
class
MouseInput
:
public
eeros::control::Block
{
17
public
:
18
MouseInput
(std::string dev);
19
virtual
~MouseInput
();
20
21
eeros::control::Output<double>
&
getOutX
();
22
eeros::control::Output<double>
&
getOutY
();
23
eeros::control::Output<double>
&
getOutZ
();
24
eeros::control::Output<double>
&
getOutR
();
25
eeros::control::Output<eeros::math::Matrix<4>
>&
getOut
();
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
46
eeros::hal::Mouse
j
;
47
48
protected
:
49
eeros::control::Output<double>
outX
;
50
eeros::control::Output<double>
outY
;
51
eeros::control::Output<double>
outZ
;
52
eeros::control::Output<double>
outR
;
53
eeros::control::Output<eeros::math::Matrix<4>
>
out
;
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_ */
eeros::control::MouseInput::first
bool first
Definition:
MouseInput.hpp:57
Matrix.hpp
eeros::control::MouseInput::outX
eeros::control::Output< double > outX
Definition:
MouseInput.hpp:49
eeros::control::MouseInput::axisScale_z
double axisScale_z
Definition:
MouseInput.hpp:35
eeros::control::MouseInput::axisScale_r
double axisScale_r
Definition:
MouseInput.hpp:36
eeros::control::MouseInput::out
eeros::control::Output< eeros::math::Matrix< 4 > > out
Definition:
MouseInput.hpp:53
eeros::control::MouseInput::max_x
double max_x
Definition:
MouseInput.hpp:38
eeros::control::MouseInput::max_y
double max_y
Definition:
MouseInput.hpp:40
eeros::control::MouseInput::getOutY
eeros::control::Output< double > & getOutY()
Definition:
MouseInput.cpp:77
eeros::control::MouseInput::min_z
double min_z
Definition:
MouseInput.hpp:41
eeros::control::MouseInput::z
double z
Definition:
MouseInput.hpp:56
Mouse.hpp
eeros::control::MouseInput::max_z
double max_z
Definition:
MouseInput.hpp:42
eeros::control::MouseInput::axisScale_y
double axisScale_y
Definition:
MouseInput.hpp:34
eeros::control::MouseInput::min_r
double min_r
Definition:
MouseInput.hpp:43
eeros::control::MouseInput::t
std::thread * t
Definition:
MouseInput.hpp:58
eeros::control::MouseInput::getOutR
eeros::control::Output< double > & getOutR()
Definition:
MouseInput.cpp:85
eeros::control::MouseInput::r
double r
Definition:
MouseInput.hpp:56
eeros::control::MouseInput::run
virtual void run()
Definition:
MouseInput.cpp:18
eeros::control::Block
Definition:
Block.hpp:10
eeros::control::MouseInput::outY
eeros::control::Output< double > outY
Definition:
MouseInput.hpp:50
eeros::control::MouseInput::reset
virtual void reset(double x, double y, double z, double r)
Definition:
MouseInput.cpp:106
eeros::control::Output< double >
eeros::control::MouseInput::MouseInput
MouseInput(std::string dev)
Definition:
MouseInput.cpp:6
eeros::control::MouseInput::j
eeros::hal::Mouse j
Definition:
MouseInput.hpp:46
eeros::hal::Mouse
Definition:
Mouse.hpp:31
eeros::control::MouseInput::min_x
double min_x
Definition:
MouseInput.hpp:37
eeros::control::MouseInput::getOut
eeros::control::Output< eeros::math::Matrix< 4 > > & getOut()
Definition:
MouseInput.cpp:89
eeros::control::MouseInput::axisScale_x
double axisScale_x
Definition:
MouseInput.hpp:33
eeros::math::Matrix< 4 >
eeros::control::MouseInput::min_y
double min_y
Definition:
MouseInput.hpp:39
eeros::control::MouseInput::~MouseInput
virtual ~MouseInput()
Definition:
MouseInput.cpp:13
System.hpp
eeros::control::MouseInput::outR
eeros::control::Output< double > outR
Definition:
MouseInput.hpp:52
eeros::control::MouseInput::outZ
eeros::control::Output< double > outZ
Definition:
MouseInput.hpp:51
eeros::control::MouseInput::getOutX
eeros::control::Output< double > & getOutX()
Definition:
MouseInput.cpp:74
eeros::control::MouseInput::setInitPos
virtual void setInitPos(double x, double y, double z, double r)
Definition:
MouseInput.cpp:93
eeros::control::MouseInput::max_r
double max_r
Definition:
MouseInput.hpp:44
Block.hpp
eeros::control::MouseInput::getOutZ
eeros::control::Output< double > & getOutZ()
Definition:
MouseInput.cpp:81
eeros::control::MouseInput
Definition:
MouseInput.hpp:16
eeros::control::MouseInput::x
double x
Definition:
MouseInput.hpp:56
eeros::control::MouseInput::y
double y
Definition:
MouseInput.hpp:56
Output.hpp
includes
eeros
control
MouseInput.hpp
Generated on Wed Jul 8 2015 11:18:07 for EEROS by
1.8.6