Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LoadCalibration Class Reference

#include <LoadCalibration.h>

Inheritance diagram for LoadCalibration:

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

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

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.

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

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

don't call


Member Data Documentation

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

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

number of basis functions (may change)

Definition at line 30 of file LoadCalibration.h.

pointer to the calibration parameter structure

Definition at line 77 of file LoadCalibration.h.

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


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:28 2007 by Doxygen 1.5.4