Public Member Functions | Private Attributes | Friends
shadow_robot::JointCalibration Class Reference

#include <calibration.hpp>

List of all members.

Public Member Functions

double compute (double raw_reading)
 JointCalibration (std::vector< joint_calibration::Point > calibration_table)
 ~JointCalibration ()

Private Attributes

< joint_calibration::Point
unsigned int calibration_table_size_


std::ostream & operator<< (std::ostream &out, const JointCalibration &calib)

Detailed Description

This class is used to compute the calibrated joint position, given a raw ADC sensor reading, using a N-point piecewise linear calibration table.

Definition at line 69 of file calibration.hpp.

Constructor & Destructor Documentation

Definition at line 40 of file calibration.cpp.

Definition at line 57 of file calibration.cpp.

Member Function Documentation

double shadow_robot::JointCalibration::compute ( double  raw_reading)

Computes the calibrated joint position from the ADC raw reading.

raw_readingthe reading from the ADC
the calibrated joint position in radians.

the two points from the calibration which we'll use to do the linear interpolation.

Definition at line 67 of file calibration.cpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JointCalibration calib 
) [friend]

Overload the << operator, for easier debugging.

Definition at line 87 of file calibration.hpp.

Member Data Documentation

The calibration table. The vector is ordered by growing values of the raw_data

Definition at line 98 of file calibration.hpp.

The size of the calibration table, used for quick access

Definition at line 109 of file calibration.hpp.

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

Author(s): Ugo Cupcic
autogenerated on Fri Aug 28 2015 13:08:44