Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
cData Class Reference

#include <cData.h>

Public Types

typedef std::pair< double, double > fulcrum
 
typedef std::vector< fulcrumsensorCal
 
typedef std::vector< sensorCaltrackerCal
 

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...
 

Detailed Description

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.

Definition at line 39 of file cData.h.

Member Typedef Documentation

typedef std::pair<double, double> cData::fulcrum

Definition at line 44 of file cData.h.

typedef std::vector<fulcrum> cData::sensorCal

Definition at line 45 of file cData.h.

typedef std::vector<sensorCal> cData::trackerCal

Definition at line 46 of file cData.h.

Constructor & Destructor Documentation

cData::cData ( )

Definition at line 56 of file cData.cc.

cData::~cData ( )

Definition at line 62 of file cData.cc.

Member Function Documentation

bool cData::calibrate ( )

Definition at line 159 of file cData.cc.

std::vector< double > cData::calibrateNextStep ( )

receive data

Definition at line 123 of file cData.cc.

bool cData::checkConsistency ( std::string &  print)

Definition at line 245 of file cData.cc.

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

Definition at line 322 of file cData.cc.

bool cData::connectToTrackerServer ( std::string  trackerServerName)

Definition at line 67 of file cData.cc.

cData::trackerCal cData::getCalibration ( )

Definition at line 146 of file cData.cc.

unsigned int cData::getCurrentStep ( )

Definition at line 97 of file cData.cc.

unsigned int cData::getNumTotalSteps ( )

Definition at line 91 of file cData.cc.

std::string cData::getPicForStep ( int  step)

Definition at line 113 of file cData.cc.

std::string cData::getTextForStep ( int  step)

Definition at line 103 of file cData.cc.

bool cData::openCalibration ( std::string  fileName)

Definition at line 199 of file cData.cc.

void cData::reset ( )

Definition at line 83 of file cData.cc.

bool cData::saveCalibration ( std::string  fileName)

Definition at line 169 of file cData.cc.

bool cData::setCalibration ( cData::trackerCal  g)

Definition at line 152 of file cData.cc.

bool cData::tellServerLoadCurrentCalibration ( )

Definition at line 287 of file cData.cc.

Member Data Documentation

unsigned int cData::currStep
private

Definition at line 81 of file cData.h.

trackerCal cData::data
private

calibration data

Definition at line 77 of file cData.h.

unsigned int cData::numTotalSteps
private

current and total step number

Definition at line 80 of file cData.h.

std::vector<std::vector<double> > cData::rawData
private

recorded raw data

Definition at line 74 of file cData.h.


The documentation for this class was generated from the following files:


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