[Positioner] Autocalibration: cosmetics

init_cp() becomes private instead of protected and is documented.
Class description improved.
This commit is contained in:
Matteo Cypriani 2013-07-03 10:14:04 -04:00
parent 9fca1926f9
commit b724ad7ab7
1 changed files with 6 additions and 7 deletions

View File

@ -23,10 +23,7 @@ class Point3D ;
#include <vector> #include <vector>
#include <unordered_map> #include <unordered_map>
/** /// Generates reference points from autocalibration measurements
* The class Autocalibration contains the code used to generate single
* reference points from the autocalibration measurements.
*/
class Autocalibration class Autocalibration
{ {
private: private:
@ -64,6 +61,11 @@ private:
/// Generated measurements' list /// Generated measurements' list
std::unordered_map<std::string, Measurement> measurements ; std::unordered_map<std::string, Measurement> measurements ;
/// Initialises a struct cp with the values from `s`
void init_cp(
std::map<double, std::pair<double, std::unordered_map<
std::string, CapturePoint>::const_iterator> >::const_iterator s) ;
protected: protected:
/// Number of generated "virtual" mobiles /// Number of generated "virtual" mobiles
static uint32_t nb_virtual_mobiles ; static uint32_t nb_virtual_mobiles ;
@ -77,9 +79,6 @@ protected:
void sort_reference_cps(void) ; void sort_reference_cps(void) ;
/// Computes the weight of the selected CP(s) /// Computes the weight of the selected CP(s)
void weight_cps(void) ; void weight_cps(void) ;
void init_cp(
std::map<double, std::pair<double, std::unordered_map<
std::string, CapturePoint>::const_iterator> >::const_iterator s) ;
/// Weights two CPs according to their angles /// Weights two CPs according to their angles
void weight_2_cps(void) ; void weight_2_cps(void) ;
/// Computes the SS of the virtual mobile /// Computes the SS of the virtual mobile