EEROS  1.0.0.0
API for the EEROS Real-Time Robotics Framework
Vector2Corrector.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_CONTROL_VECTOR2CORRECTOR_HPP_
2 #define ORG_EEROS_CONTROL_VECTOR2CORRECTOR_HPP_
3 
4 #include <eeros/math/Matrix.hpp>
5 #include <vector>
6 
7 namespace eeros {
8  namespace control {
9 
11  public:
12  virtual bool load(const char *filename);
13 
14  virtual int count();
15  virtual eeros::math::Vector2 get(const eeros::math::Vector2 &in);
16 
17  protected:
18  struct map {
19  eeros::math::Vector2 Aref; // triangle origin (of reference system)
20  eeros::math::Matrix<2,2> Tiref; // transformation: cartesian to triangle coordinates (of reference system)
21  eeros::math::Vector2 Amapped; // triangle origin (of mapped system)
22  eeros::math::Matrix<2,2> Tmapped; // transformation: triangle to cartesian coordinates (of mapped system)
23  };
24  std::vector<map> maps;
25  std::vector<eeros::math::Vector2> mapped; // preallocated buffer
26  };
27 
28  };
29 };
30 
31 #endif /* ORG_EEROS_CONTROL_VECTOR2CORRECTOR_HPP_ */
virtual int count()
Definition: Vector2Corrector.cpp:64
eeros::math::Matrix< 2, 2 > Tmapped
Definition: Vector2Corrector.hpp:22
eeros::math::Matrix< 2, 2 > Tiref
Definition: Vector2Corrector.hpp:20
Definition: Config.hpp:14
virtual bool load(const char *filename)
Definition: Vector2Corrector.cpp:8
std::vector< map > maps
Definition: Vector2Corrector.hpp:24
eeros::math::Vector2 Amapped
Definition: Vector2Corrector.hpp:21
Definition: Vector2Corrector.hpp:10
Definition: Matrix.hpp:16
Definition: Vector2Corrector.hpp:18
eeros::math::Vector2 Aref
Definition: Vector2Corrector.hpp:19
std::vector< eeros::math::Vector2 > mapped
Definition: Vector2Corrector.hpp:25