MRPT  1.9.9
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
mrpt::hmtslam::CTopLCDetector_FabMap Class Reference

Detailed Description

Definition at line 16 of file CTopLCDetector_FabMap.h.

#include <mrpt/hmtslam/CTopLCDetector_FabMap.h>

Inheritance diagram for mrpt::hmtslam::CTopLCDetector_FabMap:

Classes

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

Public Types

using Ptr = std::shared_ptr< CTopLCDetectorBase >
 

Public Member Functions

 ~CTopLCDetector_FabMap () override
 Destructor. More...
 
mrpt::poses::CPose3DPDF::Ptr computeTopologicalObservationModel (const THypothesisID &hypID, const CHMHMapNode::Ptr &currentArea, const CHMHMapNode::Ptr &refArea, double &out_log_lik) override
 This method must compute the topological observation model. More...
 
void OnNewPose (const TPoseID &poseID, const mrpt::obs::CSensoryFrame *SF) override
 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_FabMap (CHMTSLAM *hmtslam)
 

Protected Attributes

void * m_fabmap
 
CHMTSLAMm_hmtslam
 

Member Typedef Documentation

◆ Ptr

Definition at line 82 of file CTopLCDetectorBase.h.

Constructor & Destructor Documentation

◆ CTopLCDetector_FabMap()

CTopLCDetector_FabMap::CTopLCDetector_FabMap ( CHMTSLAM hmtslam)
protected

◆ ~CTopLCDetector_FabMap()

CTopLCDetector_FabMap::~CTopLCDetector_FabMap ( )
override

Destructor.

Definition at line 50 of file CTopLCDetector_FabMap.cpp.

References m_fabmap.

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 61 of file CTopLCDetectorBase.h.

References MRPT_UNUSED_PARAM.

◆ computeTopologicalObservationModel()

CPose3DPDF::Ptr CTopLCDetector_FabMap::computeTopologicalObservationModel ( const THypothesisID hypID,
const CHMHMapNode::Ptr currentArea,
const CHMHMapNode::Ptr refArea,
double &  out_log_lik 
)
overridevirtual

This method must compute the topological observation model.

Parameters
out_log_likThe output, a log-likelihood.
Returns
nullptr (empty smart pointer), or a PDF of the estimated translation between the two areas (can be a multi-modal PDF).
Parameters
out_log_likThe output, a log-likelihood.
Returns
nullptr, or a PDF of the estimated translation between the two areas (can be a multi-modal PDF).

Implements mrpt::hmtslam::CTopLCDetectorBase.

Definition at line 63 of file CTopLCDetector_FabMap.cpp.

References MRPT_UNUSED_PARAM.

◆ createNewInstance()

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

A class factory, to be implemented in derived classes.

Definition at line 26 of file CTopLCDetector_FabMap.h.

References CTopLCDetector_FabMap().

Here is the call graph for this function:

◆ OnNewPose()

void CTopLCDetector_FabMap::OnNewPose ( const TPoseID poseID,
const mrpt::obs::CSensoryFrame SF 
)
overridevirtual

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 78 of file CTopLCDetector_FabMap.cpp.

References mrpt::obs::CSensoryFrame::getObservationByClass(), and MRPT_UNUSED_PARAM.

Here is the call graph for this function:

◆ 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 41 of file CTopLCDetectorBase.h.

Member Data Documentation

◆ m_fabmap

void* mrpt::hmtslam::CTopLCDetector_FabMap::m_fabmap
protected

Definition at line 21 of file CTopLCDetector_FabMap.h.

Referenced by CTopLCDetector_FabMap(), and ~CTopLCDetector_FabMap().

◆ m_hmtslam

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



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 5ec5114f2 Thu Feb 20 07:54:08 2020 +0100 at jue feb 20 08:00:10 CET 2020