Tracker_Calibration_impl.h
Go to the documentation of this file.
1 
18 #ifndef TRACKER_CALIBRATION_H
19 #define TRACKER_CALIBRATION_H
20 
21 /* system includes */
22 #include <vector>
23 /* my includes */
24 #include "qt_calibration.uic.h"
25 
26 // KOGMO_RTDB standard includes
27 #define KOGMO_RTDB_DONT_INCLUDE_ALL_OBJECTS
28 #include "kogmo_rtdb.h"
29 #include "kogmo_rtdb_obj_typeids.h"
30 //KOGMO_RTDB special includes for our project with the id E1
31 #include "itec/kogmo_rtdb_obj_e1_itec.h"
32 using namespace KogniMobil;
33 
34 
42  : public qt_Tracker_Calibration
43 {
44  public:
47 
48  virtual void connectSlot();
49  virtual void saveSlot();
50  virtual void loadSlot();
51  virtual void helpSlot();
52  virtual void GetNAdd_clicked();
53  virtual void ResetCalib_clicked();
54  virtual void SendDataToTracker_clicked();
55  virtual void saveCoord();
56  virtual void loadCoord();
57  virtual void clearAllData();
58 
59  struct fulcrum{
60  double sensorVal[3];
61  double sensorAngle[3];
62  double worldVal[3];
63  double worldAngle[3];
64  };
65 
66  typedef std::pair<double, double> fulcrumPair;
67  typedef std::vector<fulcrumPair> sensorCal;
68  typedef std::vector<sensorCal> trackerCal;
69 
70 private:
71  int openDevice(std::string &trackLeftId, std::string &trackRightId);
72  int closeDevice();
73  void updateCounter();
74 
75  void printFulcrum(fulcrum fulc);
76  bool displayCal(trackerCal cal);
77 
78  bool trackLeft;
79  bool trackRight;
80 
85 
86  fulcrum fulcrumarrayLeft[255];
87  fulcrum fulcrumarrayRight[255];
88 
89  /* variables that handle the database connection */
90  kogmo_rtdb_handle_t *dbc; /*< the database connection handle */
91  kogmo_rtdb_connect_info_t dbinfo; /*< information about the database connection */
92  kogmo_rtdb_obj_info_t dataobj_left_info; /*< information about the type of the dataobject */
93  kogmo_rtdb_obj_info_t dataobj_right_info; /*< information about the type of the dataobject */
94  kogmo_rtdb_obj_e1_fobtracker_t *dataobj_left; /*< the dataobject specific to the sensor */
95  kogmo_rtdb_obj_e1_fobtracker_t *dataobj_right; /*< the dataobject specific to the sensor */
96  kogmo_rtdb_objid_t oidLeft; /*< id of our object within the database */
97  kogmo_rtdb_objid_t oidRight; /*< another id */
98 };
99 
100 
101 #endif /* TRACKER_CALIBRATION_H */
std::vector< fulcrumPair > sensorCal
kogmo_rtdb_obj_e1_fobtracker_t * dataobj_right
kogmo_rtdb_obj_info_t dataobj_left_info
std::vector< sensorCal > trackerCal
kogmo_rtdb_connect_info_t dbinfo
kogmo_rtdb_obj_e1_fobtracker_t * dataobj_left
kogmo_rtdb_obj_info_t dataobj_right_info
std::pair< double, double > fulcrumPair


asr_flock_of_birds
Author(s): Bernhardt Andre, Engelmann Stephan, Giesler Björn, Heller Florian, Jäkel Rainer, Nguyen Trung, Pardowitz Michael, Weckesser Peter, Yi Xie, Zöllner Raoul
autogenerated on Mon Jun 10 2019 12:44:40