Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LoadCalibration Class Reference

will load calibration parameters from a text file into a forward and backward matrix More...

#include <LoadCalibration.h>

Inheritance diagram for LoadCalibration:

Detailed Description

will load calibration parameters from a text file into a forward and backward matrix

normally the calibration parameters are stored in the binary walk parameter file itself, but this will load a new set of calibration parameters from a text file as written by the tools/walk_calibration/WalkCalibration.m matlab script.

Definition at line 12 of file LoadCalibration.h.

List of all members.

Public Member Functions

 LoadCalibration (WalkMC::CalibrationParam *calp)
 Constructor.
 LoadCalibration (const std::string &n, WalkMC::CalibrationParam *calp)
 Constructor.
 LoadCalibration (const std::string &n, const std::string &d, WalkMC::CalibrationParam *calp)
 Constructor.

Protected Member Functions

virtual ControlBaseselectedFile (const std::string &f)
 calls readData() for each of the matrices
bool readData (FILE *f, float mat[ROWS][COLS])
 does the actual loading once a file is selected
bool readMaxs (FILE *f)
 reads the maximum forward, backward, strafe, and rotation velocities

Protected Attributes

WalkMC::CalibrationParam * cp
 pointer to the calibration parameter structure

Static Protected Attributes

static const unsigned int ROWS = 3
 number of degrees of freedom of movement (probably won't change)
static const unsigned int COLS = 11
 number of basis functions (may change)

Private Member Functions

 LoadCalibration (const LoadCalibration &)
 don't call
LoadCalibrationoperator= (const LoadCalibration &)
 don't call

Constructor & Destructor Documentation

LoadCalibration::LoadCalibration ( WalkMC::CalibrationParam *  calp  ) 

Constructor.

Definition at line 16 of file LoadCalibration.h.

LoadCalibration::LoadCalibration ( const std::string &  n,
WalkMC::CalibrationParam *  calp 
)

Constructor.

Definition at line 20 of file LoadCalibration.h.

LoadCalibration::LoadCalibration ( const std::string &  n,
const std::string &  d,
WalkMC::CalibrationParam *  calp 
)

Constructor.

Definition at line 24 of file LoadCalibration.h.

LoadCalibration::LoadCalibration ( const LoadCalibration  )  [private]

don't call


Member Function Documentation

LoadCalibration& LoadCalibration::operator= ( const LoadCalibration  )  [private]

don't call

bool LoadCalibration::readData ( FILE *  f,
float  mat[ROWS][COLS] 
) [protected]

does the actual loading once a file is selected

Definition at line 44 of file LoadCalibration.h.

Referenced by selectedFile().

bool LoadCalibration::readMaxs ( FILE *  f  )  [protected]

reads the maximum forward, backward, strafe, and rotation velocities

Definition at line 62 of file LoadCalibration.h.

Referenced by selectedFile().

virtual ControlBase* LoadCalibration::selectedFile ( const std::string &  f  )  [protected, virtual]

calls readData() for each of the matrices

Reimplemented from FileBrowserControl.

Definition at line 33 of file LoadCalibration.h.


Member Data Documentation

const unsigned int LoadCalibration::COLS = 11 [static, protected]

number of basis functions (may change)

Definition at line 30 of file LoadCalibration.h.

WalkMC::CalibrationParam* LoadCalibration::cp [protected]

pointer to the calibration parameter structure

Definition at line 77 of file LoadCalibration.h.

Referenced by readData(), readMaxs(), and selectedFile().

const unsigned int LoadCalibration::ROWS = 3 [static, protected]

number of degrees of freedom of movement (probably won't change)

Definition at line 29 of file LoadCalibration.h.

Referenced by readData().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:12 2016 by Doxygen 1.6.3