Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Private Attributes
mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks Struct Reference

Detailed Description

The list of landmarks: the wrapper class is just for maintaining the KD-Tree representation.

Definition at line 135 of file CLandmarksMap.h.

#include <mrpt/maps/CLandmarksMap.h>

Public Types

using iterator = internal::TSequenceLandmarks::iterator
 
using const_iterator = internal::TSequenceLandmarks::const_iterator
 

Public Member Functions

 TCustomSequenceLandmarks ()
 Default constructor. More...
 
iterator begin ()
 
iterator end ()
 
void clear ()
 
size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 
void push_back (const CLandmark &lm)
 The object is copied, thus the original copy passed as a parameter can be released. More...
 
CLandmarkget (unsigned int indx)
 
const CLandmarkget (unsigned int indx) const
 
void isToBeModified (unsigned int indx)
 
void hasBeenModified (unsigned int indx)
 
void hasBeenModifiedAll ()
 
void erase (unsigned int indx)
 
mrpt::containers::CDynamicGrid< std::vector< int32_t > > * getGrid ()
 
const CLandmarkgetByID (CLandmark::TLandmarkID ID) const
 Returns the landmark with a given landmrk ID, or nullptr if not found. More...
 
const CLandmarkgetByBeaconID (unsigned int ID) const
 Returns the landmark with a given beacon ID, or nullptr if not found. More...
 
float getLargestDistanceFromOrigin () const
 This method returns the largest distance from the origin to any of the points, such as a sphere centered at the origin with this radius cover ALL the points in the map (the results are buffered, such as, if the map is not modified, the second call will be much faster than the first one). More...
 

Private Attributes

internal::TSequenceLandmarks m_landmarks
 The actual list. More...
 
mrpt::containers::CDynamicGrid< std::vector< int32_t > > m_grid
 A grid-map with the set of landmarks falling into each cell. More...
 
float m_largestDistanceFromOrigin
 Auxiliary variables used in "getLargestDistanceFromOrigin". More...
 
bool m_largestDistanceFromOriginIsUpdated
 Auxiliary variables used in "getLargestDistanceFromOrigin". More...
 

Member Typedef Documentation

◆ const_iterator

using mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::const_iterator = internal::TSequenceLandmarks::const_iterator

Definition at line 166 of file CLandmarksMap.h.

◆ iterator

using mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::iterator = internal::TSequenceLandmarks::iterator

Definition at line 161 of file CLandmarksMap.h.

Constructor & Destructor Documentation

◆ TCustomSequenceLandmarks()

CLandmarksMap::TCustomSequenceLandmarks::TCustomSequenceLandmarks ( )

Default constructor.

Definition at line 1862 of file CLandmarksMap.cpp.

Member Function Documentation

◆ begin() [1/2]

iterator mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::begin ( )
inline

◆ begin() [2/2]

const_iterator mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::begin ( ) const
inline

Definition at line 167 of file CLandmarksMap.h.

References m_landmarks.

◆ clear()

void CLandmarksMap::TCustomSequenceLandmarks::clear ( )

◆ end() [1/2]

iterator mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::end ( )
inline

◆ end() [2/2]

const_iterator mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::end ( ) const
inline

Definition at line 168 of file CLandmarksMap.h.

References m_landmarks.

◆ erase()

void CLandmarksMap::TCustomSequenceLandmarks::erase ( unsigned int  indx)

Definition at line 1930 of file CLandmarksMap.cpp.

Referenced by mrpt::maps::CLandmarksMap::fuseWith().

◆ get() [1/2]

CLandmark * CLandmarksMap::TCustomSequenceLandmarks::get ( unsigned int  indx)

◆ get() [2/2]

const CLandmark * CLandmarksMap::TCustomSequenceLandmarks::get ( unsigned int  indx) const

Definition at line 1906 of file CLandmarksMap.cpp.

◆ getByBeaconID()

const CLandmark * CLandmarksMap::TCustomSequenceLandmarks::getByBeaconID ( unsigned int  ID) const

Returns the landmark with a given beacon ID, or nullptr if not found.

Definition at line 2639 of file CLandmarksMap.cpp.

Referenced by mrpt::slam::CRejectionSamplingRangeOnlyLocalization::setParams().

◆ getByID()

const CLandmark * CLandmarksMap::TCustomSequenceLandmarks::getByID ( CLandmark::TLandmarkID  ID) const

Returns the landmark with a given landmrk ID, or nullptr if not found.

Definition at line 2618 of file CLandmarksMap.cpp.

◆ getGrid()

mrpt::containers::CDynamicGrid<std::vector<int32_t> >* mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::getGrid ( )
inline

Definition at line 180 of file CLandmarksMap.h.

References m_grid.

Referenced by mrpt::maps::CLandmarksMap::computeLikelihood_RSLC_2007().

◆ getLargestDistanceFromOrigin()

float CLandmarksMap::TCustomSequenceLandmarks::getLargestDistanceFromOrigin ( ) const

This method returns the largest distance from the origin to any of the points, such as a sphere centered at the origin with this radius cover ALL the points in the map (the results are buffered, such as, if the map is not modified, the second call will be much faster than the first one).

Definition at line 1994 of file CLandmarksMap.cpp.

References begin(), and mrpt::square().

Referenced by mrpt::maps::CLandmarksMap::compute3DMatchingRatio().

◆ hasBeenModified()

void CLandmarksMap::TCustomSequenceLandmarks::hasBeenModified ( unsigned int  indx)

Definition at line 1936 of file CLandmarksMap.cpp.

References min.

Referenced by mrpt::maps::CLandmarksMap::fuseWith().

◆ hasBeenModifiedAll()

void CLandmarksMap::TCustomSequenceLandmarks::hasBeenModifiedAll ( )

Definition at line 1954 of file CLandmarksMap.cpp.

References min, MRPT_END, and MRPT_START.

Referenced by mrpt::maps::CLandmarksMap::changeCoordinatesReference().

◆ isToBeModified()

void CLandmarksMap::TCustomSequenceLandmarks::isToBeModified ( unsigned int  indx)

Definition at line 1912 of file CLandmarksMap.cpp.

Referenced by mrpt::maps::CLandmarksMap::fuseWith().

◆ push_back()

void CLandmarksMap::TCustomSequenceLandmarks::push_back ( const CLandmark lm)

◆ size()

size_t mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::size ( ) const
inline

Member Data Documentation

◆ m_grid

mrpt::containers::CDynamicGrid<std::vector<int32_t> > mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::m_grid
private

A grid-map with the set of landmarks falling into each cell.

Todo:
Use the KD-tree instead?

Definition at line 144 of file CLandmarksMap.h.

Referenced by getGrid().

◆ m_landmarks

internal::TSequenceLandmarks mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::m_landmarks
private

The actual list.

Definition at line 139 of file CLandmarksMap.h.

Referenced by begin(), end(), and size().

◆ m_largestDistanceFromOrigin

float mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::m_largestDistanceFromOrigin
mutableprivate

Auxiliary variables used in "getLargestDistanceFromOrigin".

See also
getLargestDistanceFromOrigin

Definition at line 149 of file CLandmarksMap.h.

◆ m_largestDistanceFromOriginIsUpdated

bool mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks::m_largestDistanceFromOriginIsUpdated
mutableprivate

Auxiliary variables used in "getLargestDistanceFromOrigin".

See also
getLargestDistanceFromOrigin

Definition at line 154 of file CLandmarksMap.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019