28 #ifndef TMatchingPair_H
29 #define TMatchingPair_H
37 using namespace mrpt::poses;
48 this_idx(0), other_idx(0),
49 this_x(0),this_y(0),this_z(0),
50 other_x(0),other_y(0),other_z(0),
51 errorSquareAfterTransformation(0)
55 TMatchingPair(
unsigned int _this_idx,
unsigned int _other_idx,
float _this_x,
float _this_y,
float _this_z,
float _other_x,
float _other_y,
float _other_z ) :
56 this_idx(_this_idx), other_idx(_other_idx),
57 this_x(_this_x),this_y(_this_y),this_z(_this_z),
58 other_x(_other_x),other_y(_other_y),other_z(_other_z),
59 errorSquareAfterTransformation(0)
71 #pragma pack(pop) // End of pack = 1
85 bool indexOtherMapHasCorrespondence(
unsigned int idx);
89 void dumpToFile(
const std::string &fileName);
93 void saveAsMATLABScript(
const std::string &filName );
100 float overallSquareError(
const CPose2D &q )
const;
107 float overallSquareErrorAndPoints(
125 void squareErrorVector(