Main Page
Classes
Files
File List
File Members
kogmo_fob
trackerCalibration
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
41
class
Tracker_Calibration_impl
42
:
public
qt_Tracker_Calibration
43
{
44
public
:
45
Tracker_Calibration_impl
();
46
~
Tracker_Calibration_impl
();
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
81
int
fcountLeft
;
82
int
fcountRight
;
83
int
coordCountLeft
;
84
int
coordCountRight
;
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 */
Tracker_Calibration_impl::fcountLeft
int fcountLeft
Definition:
Tracker_Calibration_impl.h:81
KogniMobil
Tracker_Calibration_impl::sensorCal
std::vector< fulcrumPair > sensorCal
Definition:
Tracker_Calibration_impl.h:67
Tracker_Calibration_impl::dataobj_right
kogmo_rtdb_obj_e1_fobtracker_t * dataobj_right
Definition:
Tracker_Calibration_impl.h:95
Tracker_Calibration_impl::oidRight
kogmo_rtdb_objid_t oidRight
Definition:
Tracker_Calibration_impl.h:97
Tracker_Calibration_impl::dataobj_left_info
kogmo_rtdb_obj_info_t dataobj_left_info
Definition:
Tracker_Calibration_impl.h:92
Tracker_Calibration_impl::trackerCal
std::vector< sensorCal > trackerCal
Definition:
Tracker_Calibration_impl.h:68
Tracker_Calibration_impl::fulcrum
Definition:
Tracker_Calibration_impl.h:59
Tracker_Calibration_impl::fcountRight
int fcountRight
Definition:
Tracker_Calibration_impl.h:82
Tracker_Calibration_impl::trackRight
bool trackRight
Definition:
Tracker_Calibration_impl.h:79
Tracker_Calibration_impl::dbinfo
kogmo_rtdb_connect_info_t dbinfo
Definition:
Tracker_Calibration_impl.h:91
Tracker_Calibration_impl::dataobj_left
kogmo_rtdb_obj_e1_fobtracker_t * dataobj_left
Definition:
Tracker_Calibration_impl.h:94
Tracker_Calibration_impl::trackLeft
bool trackLeft
Definition:
Tracker_Calibration_impl.h:78
Tracker_Calibration_impl::coordCountLeft
int coordCountLeft
Definition:
Tracker_Calibration_impl.h:83
Tracker_Calibration_impl::coordCountRight
int coordCountRight
Definition:
Tracker_Calibration_impl.h:84
Tracker_Calibration_impl::dataobj_right_info
kogmo_rtdb_obj_info_t dataobj_right_info
Definition:
Tracker_Calibration_impl.h:93
Tracker_Calibration_impl
Definition:
Tracker_Calibration_impl.h:41
Tracker_Calibration_impl::oidLeft
kogmo_rtdb_objid_t oidLeft
Definition:
Tracker_Calibration_impl.h:96
Tracker_Calibration_impl::fulcrumPair
std::pair< double, double > fulcrumPair
Definition:
Tracker_Calibration_impl.h:66
Tracker_Calibration_impl::dbc
kogmo_rtdb_handle_t * dbc
Definition:
Tracker_Calibration_impl.h:90
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