#include <calibration_parser.h>
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" |
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.
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.
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.
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
vector | vector to be mapped |
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
path | path of the calibration file |
Definition at line 50 of file calibration_parser.cpp.
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.