cData.h
Go to the documentation of this file.
1 
18 #ifndef CDATA_H
19 #define CDATA_H
20 
21 /* system includes */
22 #include <vector>
23 
24 /* my includes */
25 //#include "gloveServer.hh"
26 
27 #include "calibrationData.h"
28 
36 //#define numSensors 22
37 
38 
39 class cData {
40 public:
41  cData();
42  ~cData();
43 
44  typedef std::pair<double, double> fulcrum;
45  typedef std::vector<fulcrum> sensorCal;
46  typedef std::vector<sensorCal> trackerCal;
47 
48  bool connectToTrackerServer(std::string trackerServerName);
49 
50  void reset();
51 
52  unsigned int getNumTotalSteps();
53  unsigned int getCurrentStep();
54  std::string getTextForStep(int);
55  std::string getPicForStep(int);
56  bool calibrate();
57 
58  trackerCal getCalibration();
59  bool setCalibration(trackerCal g);
60 
61  std::vector<double> calibrateNextStep();
62 
63  bool checkConsistency(std::string &print);
64  bool saveCalibration(std::string fileName);
65  bool openCalibration(std::string fileName);
67  // tracker::trackerServer_ptr myTracker;
68 
69 private:
70 
71  trackerCal computeCalibration(std::vector<std::vector<double> > r);
72 
74  std::vector<std::vector<double> > rawData;
75 
77  trackerCal data;
78 
80  unsigned int numTotalSteps;
81  unsigned int currStep;
82 
84 
85 };
86 
87 #endif /* CDATA_H */
trackerCal data
calibration data
Definition: cData.h:77
void reset()
Definition: cData.cc:83
bool openCalibration(std::string fileName)
Definition: cData.cc:199
cData()
Definition: cData.cc:56
trackerCal getCalibration()
Definition: cData.cc:146
unsigned int currStep
Definition: cData.h:81
bool setCalibration(trackerCal g)
Definition: cData.cc:152
std::pair< double, double > fulcrum
Definition: cData.h:44
bool checkConsistency(std::string &print)
Definition: cData.cc:245
unsigned int numTotalSteps
current and total step number
Definition: cData.h:80
bool saveCalibration(std::string fileName)
Definition: cData.cc:169
trackerCal computeCalibration(std::vector< std::vector< double > > r)
Definition: cData.cc:322
unsigned int getNumTotalSteps()
Definition: cData.cc:91
bool connectToTrackerServer(std::string trackerServerName)
Definition: cData.cc:67
std::string getPicForStep(int)
Definition: cData.cc:113
std::vector< sensorCal > trackerCal
Definition: cData.h:46
~cData()
Definition: cData.cc:62
std::vector< double > calibrateNextStep()
Definition: cData.cc:123
unsigned int getCurrentStep()
Definition: cData.cc:97
std::vector< fulcrum > sensorCal
Definition: cData.h:45
std::string getTextForStep(int)
Definition: cData.cc:103
Definition: cData.h:39
std::vector< std::vector< double > > rawData
recorded raw data
Definition: cData.h:74
bool calibrate()
Definition: cData.cc:159
bool tellServerLoadCurrentCalibration()
Definition: cData.cc:287


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