MRPT  2.0.4
List of all members | Public Types | Public Member Functions
mrpt::maps::CRandomFieldGridMap2D::ConnectivityDescriptor Struct Referenceabstract

Detailed Description

Base class for user-supplied objects capable of describing cells connectivity, used to build prior factors of the MRF graph.

See also

Definition at line 339 of file CRandomFieldGridMap2D.h.

#include <mrpt/maps/CRandomFieldGridMap2D.h>

Inheritance diagram for mrpt::maps::CRandomFieldGridMap2D::ConnectivityDescriptor:

Public Types

using Ptr = std::shared_ptr< ConnectivityDescriptor >

Public Member Functions

 ConnectivityDescriptor ()
virtual ~ConnectivityDescriptor ()
virtual bool getEdgeInformation (const CRandomFieldGridMap2D *parent, size_t icx, size_t icy, size_t jcx, size_t jcy, double &out_edge_information)=0
 Implement the check of whether node i=(icx,icy) is connected with node j=(jcx,jcy). More...

Member Typedef Documentation

◆ Ptr

Definition at line 341 of file CRandomFieldGridMap2D.h.

Constructor & Destructor Documentation

◆ ConnectivityDescriptor()

CRandomFieldGridMap2D::ConnectivityDescriptor::ConnectivityDescriptor ( )

◆ ~ConnectivityDescriptor()

CRandomFieldGridMap2D::ConnectivityDescriptor::~ConnectivityDescriptor ( )

Member Function Documentation

◆ getEdgeInformation()

virtual bool mrpt::maps::CRandomFieldGridMap2D::ConnectivityDescriptor::getEdgeInformation ( const CRandomFieldGridMap2D parent,
size_t  icx,
size_t  icy,
size_t  jcx,
size_t  jcy,
double &  out_edge_information 
pure virtual

Implement the check of whether node i=(icx,icy) is connected with node j=(jcx,jcy).

This visitor method will be called only for immediate neighbors.

true if connected (and the "information" value should be also updated in out_edge_information), false otherwise.
parentThe parent map on which we are running
icx(cx,cy) for node "i"
jcx(cx,cy) for node "j"
out_edge_informationMust output here the inverse of the variance of the constraint edge.

Implemented in MyConnectivityVisitor.

Referenced by mrpt::maps::CRandomFieldGridMap2D::internal_clear().

Here is the caller graph for this function:

Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: c4d914402 Wed Jun 3 12:47:17 2020 +0200 at miƩ jun 3 13:00:13 CEST 2020