load_collar_calibs.cpp File Reference

Load Calibrated Collar Data: More...

#include "lowerleg_func.h"
#include "postprocess.h"
Include dependency graph for load_collar_calibs.cpp:
This graph shows which files directly or indirectly include this file:

Defines

#define MAXCOL   10

Functions

int load_collar_calibs (char *foldername, vector< vector< double > > &Hprev, vector< vector< double > > &Pvals, vector< vector< double > > &qvals, vector< double > &firstlink, vector< vector< double > > &Plate)
 Load Calibrated Collar Data: This function loads the information regarding calibrated collars into vectors for use in postprocessing.

Detailed Description

Load Calibrated Collar Data:


Define Documentation

#define MAXCOL   10

Function Documentation

int load_collar_calibs ( char *  foldername,
vector< vector< double > > &  Hprev,
vector< vector< double > > &  Pvals,
vector< vector< double > > &  qvals,
vector< double > &  firstlink,
vector< vector< double > > &  Plate 
)

Load Calibrated Collar Data: This function loads the information regarding calibrated collars into vectors for use in postprocessing.

The function takes in the name of the folder containing all the calibration information ie DH matrices, local plate based co-ordinate system information, obtained from the calculations done according to the methods described in the IFToMM paper.

The calibration files are all assumed to be stored under "/user/mharshe/home/work/knee-joint/collar-calib/". Separate sub-folders exist for tibia-upper, tibia-lower, thigh-upper, thigh-lower etc collars. Further sub-folders contain calibration data for specific LINK order (other than the default one). The program needs the name of this specific sub-folder corresponding to the actual LINK order as input. (The rest of the path is added automatically.)

Parameters:
[in]foldernameName of the folder containing calibration data.
[out]HprevVector containing DH (Hayati formulation) parameters
[out]PvalsCo-ordinate of the orgin of plates with respect to DH frame of the plate
[out]qvalsQuaternion describing orientation of plate-fixed local frame with respect to DH frame of the plate.
[out]firstlinkParameters for the first link.

The data read from the files is stored as vectors.

 All Data Structures Files Functions Variables Typedefs Defines