CalibrationParser Class Reference

#include <calibration_parser.h>

List of all members.

Public Member Functions

 CalibrationParser (std::string path)
 CalibrationParser ()
std::vector< double > get_remapped_vector (std::vector< double >)
 ~CalibrationParser ()

Private Member Functions

double convertToDouble (std::string const &s)
int init (std::string path)

Private Attributes

std::vector< std::vector
< double > > 
calibration_matrix

Static Private Attributes

static const std::string default_path = "/etc/robot/mappings/default_mapping"

Detailed Description

This is where the calibration matrix is read from a file, stored and where the actual mapping take place.

Definition at line 40 of file calibration_parser.h.


Constructor & Destructor Documentation

CalibrationParser::CalibrationParser (  ) 

Default constructor, using the default path. Initialize a calibration matrix loaded from the default calibration file.

Definition at line 39 of file calibration_parser.cpp.

CalibrationParser::CalibrationParser ( std::string  path  ) 

Constructor initializing a calibration matrix loaded from the given calibration file.

Parameters:
path the path to the calibration file

Definition at line 45 of file calibration_parser.cpp.

CalibrationParser::~CalibrationParser (  )  [inline]

Definition at line 57 of file calibration_parser.h.


Member Function Documentation

double CalibrationParser::convertToDouble ( std::string const &  s  )  [inline, private]

Definition at line 82 of file calibration_parser.h.

std::vector< double > CalibrationParser::get_remapped_vector ( std::vector< double >  input_vector  ) 

multiplies the vector by the mapping matrix

Parameters:
vector vector to be mapped
Returns:
mapped vector

Definition at line 110 of file calibration_parser.cpp.

int CalibrationParser::init ( std::string  path  )  [private]

Open the given file and parses it into a matrix

Parameters:
path path of the calibration file
Returns:
-1 if file not found, 0 if everything ok.

Definition at line 50 of file calibration_parser.cpp.


Member Data Documentation

std::vector< std::vector<double> > CalibrationParser::calibration_matrix [private]

Definition at line 80 of file calibration_parser.h.

const std::string CalibrationParser::default_path = "/etc/robot/mappings/default_mapping" [static, private]

Definition at line 69 of file calibration_parser.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables


sr_remappers
Author(s): Ugo Cupcic
autogenerated on Fri Jan 11 11:14:02 2013