Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions
MyConnectivityVisitor Struct Reference

Detailed Description

Definition at line 24 of file vision_stereo_rectify/test.cpp.

Inheritance diagram for MyConnectivityVisitor:
Inheritance graph

Public Types

using Ptr = std::shared_ptr< ConnectivityDescriptor >
 

Public Member Functions

bool getEdgeInformation (const CRandomFieldGridMap2D *parent, size_t icx, size_t icy, size_t jcx, size_t jcy, double &out_edge_information) override
 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.

Member Function Documentation

◆ getEdgeInformation()

bool MyConnectivityVisitor::getEdgeInformation ( const CRandomFieldGridMap2D parent,
size_t  icx,
size_t  icy,
size_t  jcx,
size_t  jcy,
double &  out_edge_information 
)
inlineoverridevirtual

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.

Returns
true if connected (and the "information" value should be also updated in out_edge_information), false otherwise.
Parameters
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.

Implements mrpt::maps::CRandomFieldGridMap2D::ConnectivityDescriptor.

Definition at line 33 of file vision_stereo_rectify/test.cpp.




Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST