Homepage Demos Overview Downloads Tutorials Reference
Credits

LoadCalibration Class Reference

#include <LoadCalibration.h>

Inheritance diagram for LoadCalibration:

Inheritance graph
[legend]
List of all members.

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.

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::CalibrationParamcp
 pointer to the calibration parameter structure


Static Protected Attributes

const unsigned int ROWS = 3
 number of degrees of freedom of movement (probably won't change)

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  )  [inline]
 

Constructor.

Definition at line 16 of file LoadCalibration.h.

LoadCalibration::LoadCalibration const std::string &  n,
WalkMC::CalibrationParam calp
[inline]
 

Constructor.

Definition at line 20 of file LoadCalibration.h.

LoadCalibration::LoadCalibration const std::string &  n,
const std::string &  d,
WalkMC::CalibrationParam calp
[inline]
 

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]
[inline, 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  )  [inline, 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  )  [inline, 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 LoadCalibration(), 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 v2.1
Generated Tue Mar 16 23:22:15 2004 by Doxygen 1.3.5