10 #include <mrpt/math/utils.h> 13 #include <mrpt/version.h> 14 #if MRPT_VERSION>=0x199 15 #include <mrpt/containers/stl_containers_utils.h> 16 using namespace mrpt::containers;
30 CPosePDFSOG::Ptr pdf_out = CPosePDFSOG::Create();
31 pdf_out->copyFrom(pdf);
33 pdf_out->getMostLikelyCovarianceAndMean(cov_out, pose_out);
36 ss <<
"--------------------" << endl;
37 ss <<
"Results: " << endl
38 <<
"\tPDFPtr pose: " << pdf.
getMeanVal() << endl
40 <<
"\tAlignment goodness: " << ret_info.
goodness << endl
41 <<
"\tModes size: " << pdf_out->size() << endl
43 <<
"\tMost likely pose: " << pose_out << endl
44 <<
"\tCorresponding covariance matrix: " << endl
46 ss <<
"--------------------" << endl;
std::string getSTLContainerAsString(const T &t)
std::string getGridMapAlignmentResultsAsString(const mrpt::poses::CPosePDF &pdf, const mrpt::slam::CGridMapAligner::TReturnInfo &ret_info)
const double & phi() const
bool isEssentiallyZero(const mrpt::poses::CPose2D &p)
mrpt::utils::TMatchingPairList correspondences
CPose2D getMeanVal() const
bool approximatelyEqual(T1 a, T1 b, T2 epsilon)