Main MRPT website > C++ reference for MRPT 1.5.6
List of all members | Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
mrpt::hmtslam::CTopLCDetector_GridMatching Class Reference

Detailed Description

Definition at line 21 of file CTopLCDetector_GridMatching.h.

#include <mrpt/hmtslam/CTopLCDetector_GridMatching.h>

Inheritance diagram for mrpt::hmtslam::CTopLCDetector_GridMatching:
Inheritance graph

Classes

struct  TOptions
 Options for a TLC-detector of type gridmap-matching, used from CHMTSLAM. More...
 

Public Member Functions

virtual ~CTopLCDetector_GridMatching ()
 Destructor. More...
 
mrpt::poses::CPose3DPDFPtr computeTopologicalObservationModel (const THypothesisID &hypID, const CHMHMapNodePtr &currentArea, const CHMHMapNodePtr &refArea, double &out_log_lik)
 This method must compute the topological observation model. More...
 
void OnNewPose (const TPoseID &poseID, const mrpt::obs::CSensoryFrame *SF)
 Hook method for being warned about the insertion of a new poses into the maps. More...
 
virtual void reset ()
 Reset the internal state of the TLCD, if any. More...
 
virtual bool computeSSOBetweenObservations (const THypothesisID &hypID, const TPoseID &poseID1, const TPoseID &poseID2, double &out_SSO)
 If implemented, this method provides the evaluation of an additional term to be added to the SSO between each pair of observations. More...
 

Static Public Member Functions

static CTopLCDetectorBasecreateNewInstance (CHMTSLAM *hmtslam)
 A class factory, to be implemented in derived classes. More...
 

Protected Member Functions

 CTopLCDetector_GridMatching (CHMTSLAM *hmtslam)
 

Protected Attributes

CHMTSLAMm_hmtslam
 

Constructor & Destructor Documentation

◆ CTopLCDetector_GridMatching()

CTopLCDetector_GridMatching::CTopLCDetector_GridMatching ( CHMTSLAM hmtslam)
protected

Definition at line 24 of file CTopLCDetector_GridMatching.cpp.

◆ ~CTopLCDetector_GridMatching()

CTopLCDetector_GridMatching::~CTopLCDetector_GridMatching ( )
virtual

Destructor.

Definition at line 30 of file CTopLCDetector_GridMatching.cpp.

Member Function Documentation

◆ computeSSOBetweenObservations()

virtual bool mrpt::hmtslam::CTopLCDetectorBase::computeSSOBetweenObservations ( const THypothesisID hypID,
const TPoseID poseID1,
const TPoseID poseID2,
double &  out_SSO 
)
inlinevirtualinherited

If implemented, this method provides the evaluation of an additional term to be added to the SSO between each pair of observations.

Parameters
out_SSOThe output, in the range [0,1].
Returns
true if computed SSO is meaningful. The default virtual method returns false.

Definition at line 63 of file CTopLCDetectorBase.h.

References MRPT_UNUSED_PARAM.

◆ computeTopologicalObservationModel()

CPose3DPDFPtr CTopLCDetector_GridMatching::computeTopologicalObservationModel ( const THypothesisID hypID,
const CHMHMapNodePtr &  currentArea,
const CHMHMapNodePtr &  refArea,
double &  out_log_lik 
)
virtual

This method must compute the topological observation model.

Parameters
out_log_likThe output, a log-likelihood.
Returns
NULL, or a PDF of the estimated translation between the two areas (should be a SOG PDF): it's the pose of "refArea", relative to "currentArea".
Parameters
out_log_likThe output, a log-likelihood.
Returns
NULL, or a PDF of the estimated translation between the two areas (can be a multi-modal PDF).

Implements mrpt::hmtslam::CTopLCDetectorBase.

Definition at line 39 of file CTopLCDetector_GridMatching.cpp.

References mrpt::slam::CMetricMapsAlignmentAlgorithm::Align(), ASSERT_, CFileGZOutputStream, mrpt::system::createDirectory(), mrpt::utils::CLoadableOptions::dumpToConsole(), mrpt::format(), info, mrpt::hmtslam::CHMTSLAM::TOptions::LOG_OUTPUT_DIR, mrpt::hmtslam::CTopLCDetectorBase::m_hmtslam, mrpt::hmtslam::CHMTSLAM::m_options, mrpt::hmtslam::CTopLCDetector_GridMatching::TOptions::matchingOptions, NODE_ANNOTATION_METRIC_MAPS, mrpt::slam::CGridMapAligner::options, mrpt::utils::CStream::printf(), mrpt::utils::CStream::printf_vector(), mrpt::hmtslam::CHMTSLAM::saveState(), and mrpt::hmtslam::CHMTSLAM::TOptions::TLC_grid_options.

◆ createNewInstance()

static CTopLCDetectorBase* mrpt::hmtslam::CTopLCDetector_GridMatching::createNewInstance ( CHMTSLAM hmtslam)
inlinestatic

A class factory, to be implemented in derived classes.

Definition at line 29 of file CTopLCDetector_GridMatching.h.

Referenced by mrpt::hmtslam::CHMTSLAM::CHMTSLAM().

◆ OnNewPose()

void CTopLCDetector_GridMatching::OnNewPose ( const TPoseID poseID,
const mrpt::obs::CSensoryFrame SF 
)
virtual

Hook method for being warned about the insertion of a new poses into the maps.

This should be independent of hypothesis IDs.

Reimplemented from mrpt::hmtslam::CTopLCDetectorBase.

Definition at line 127 of file CTopLCDetector_GridMatching.cpp.

References MRPT_UNUSED_PARAM.

◆ reset()

virtual void mrpt::hmtslam::CTopLCDetectorBase::reset ( )
inlinevirtualinherited

Reset the internal state of the TLCD, if any.

This is needed since the objects are created while loading HMT-SLAM options, but the algorithm may be re-started after that at any time.

Definition at line 44 of file CTopLCDetectorBase.h.

Member Data Documentation

◆ m_hmtslam

CHMTSLAM* mrpt::hmtslam::CTopLCDetectorBase::m_hmtslam
protectedinherited



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019