#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 | |
unsigned int | numTotalSteps |
current and total step number | |
std::vector< std::vector < double > > | rawData |
recorded raw data |
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:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
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 |
cData::cData | ( | ) |
cData::~cData | ( | ) |
bool cData::calibrate | ( | ) |
std::vector< double > cData::calibrateNextStep | ( | ) |
bool cData::checkConsistency | ( | std::string & | ) |
cData::trackerCal cData::computeCalibration | ( | std::vector< std::vector< double > > | r | ) | [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 | ) |
unsigned int cData::getCurrentStep | ( | ) |
unsigned int cData::getNumTotalSteps | ( | ) |
std::string cData::getPicForStep | ( | int | step | ) |
std::string cData::getTextForStep | ( | int | step | ) |
bool cData::openCalibration | ( | std::string | fileName | ) |
void cData::reset | ( | ) |
bool cData::saveCalibration | ( | std::string | fileName | ) |
bool cData::setCalibration | ( | cData::trackerCal | g | ) |
unsigned int cData::currStep [private] |
trackerCal cData::data [private] |
unsigned int cData::numTotalSteps [private] |
std::vector<std::vector<double> > cData::rawData [private] |