#include <cData.h>
Public Types | |
typedef std::pair< double, double > | fulcrum |
typedef std::vector< fulcrum > | sensorCal |
typedef std::vector< sensorCal > | trackerCal |
Public Member Functions | |
bool | calibrate () |
std::vector< double > | calibrateNextStep () |
cData () | |
bool | checkConsistency (std::string &print) |
bool | connectToTrackerServer (std::string trackerServerName) |
trackerCal | getCalibration () |
unsigned int | getCurrentStep () |
unsigned int | getNumTotalSteps () |
std::string | getPicForStep (int) |
std::string | getTextForStep (int) |
bool | openCalibration (std::string fileName) |
void | reset () |
bool | saveCalibration (std::string fileName) |
bool | setCalibration (trackerCal g) |
bool | tellServerLoadCurrentCalibration () |
~cData () | |
Private Member Functions | |
trackerCal | computeCalibration (std::vector< std::vector< double > > r) |
Private Attributes | |
unsigned int | currStep |
trackerCal | data |
calibration data More... | |
unsigned int | numTotalSteps |
current and total step number More... | |
std::vector< std::vector< double > > | rawData |
recorded raw data More... | |
Copyright (c) 2016, Bernhardt Andre, Engelmann Stephan, Giesler Björn, Heller Florian, Jäkel Rainer, Nguyen Trung, Pardowitz Michael, Weckesser Peter, Yi Xie, Zöllner Raoul All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
typedef std::pair<double, double> cData::fulcrum |
typedef std::vector<fulcrum> cData::sensorCal |
typedef std::vector<sensorCal> cData::trackerCal |
std::vector< double > cData::calibrateNextStep | ( | ) |
|
private |
construct a calibration data struct
reference angles
check if input data is ok
wrist calibration left/right
up/down
calibration of thumb spread
calibration of thumb
calibration of index
spread
calibration of middle
spread
calibration of ring
spread
calibration of pinky
spread
bool cData::connectToTrackerServer | ( | std::string | trackerServerName | ) |
cData::trackerCal cData::getCalibration | ( | ) |
bool cData::setCalibration | ( | cData::trackerCal | g | ) |
|
private |
|
private |
|
private |