Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
CalibrationParser Class Reference

#include <calibration_parser.h>

List of all members.

Public Member Functions

 CalibrationParser ()
 CalibrationParser (std::string path)
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

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:
paththe path to the calibration file

Definition at line 45 of file calibration_parser.cpp.

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:
vectorvector 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:
pathpath 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

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:


sr_remappers
Author(s): Ugo Cupcic
autogenerated on Fri Jan 3 2014 12:05:01