Public Member Functions | Private Attributes | List of all members
rtabmap::LocalGridCache Class Reference

#include <LocalGrid.h>

Public Member Functions

void add (int nodeId, const cv::Mat &ground, const cv::Mat &obstacles, const cv::Mat &empty, float cellSize, const cv::Point3f &viewPoint=cv::Point3f(0, 0, 0))
 
void add (int nodeId, const LocalGrid &localGrid)
 
std::map< int, LocalGrid >::const_iterator begin () const
 
void clear (bool temporaryOnly=false)
 
bool empty () const
 
std::map< int, LocalGrid >::const_iterator end () const
 
std::map< int, LocalGrid >::const_iterator find (int nodeId) const
 
unsigned long getMemoryUsed () const
 
 LocalGridCache ()
 
const std::map< int, LocalGrid > & localGrids () const
 
bool shareTo (int nodeId, LocalGridCache &anotherCache) const
 
size_t size () const
 
virtual ~LocalGridCache ()
 

Private Attributes

std::map< int, LocalGridlocalGrids_
 

Detailed Description

Definition at line 56 of file LocalGrid.h.

Constructor & Destructor Documentation

◆ LocalGridCache()

rtabmap::LocalGridCache::LocalGridCache ( )
inline

Definition at line 59 of file LocalGrid.h.

◆ ~LocalGridCache()

virtual rtabmap::LocalGridCache::~LocalGridCache ( )
inlinevirtual

Definition at line 60 of file LocalGrid.h.

Member Function Documentation

◆ add() [1/2]

void rtabmap::LocalGridCache::add ( int  nodeId,
const cv::Mat ground,
const cv::Mat obstacles,
const cv::Mat empty,
float  cellSize,
const cv::Point3f &  viewPoint = cv::Point3f(0,0,0) 
)

Definition at line 55 of file LocalGrid.cpp.

◆ add() [2/2]

void rtabmap::LocalGridCache::add ( int  nodeId,
const LocalGrid localGrid 
)

Definition at line 65 of file LocalGrid.cpp.

◆ begin()

std::map<int, LocalGrid>::const_iterator rtabmap::LocalGridCache::begin ( ) const
inline

Definition at line 81 of file LocalGrid.h.

◆ clear()

void rtabmap::LocalGridCache::clear ( bool  temporaryOnly = false)

Definition at line 103 of file LocalGrid.cpp.

◆ empty()

bool rtabmap::LocalGridCache::empty ( ) const
inline

Definition at line 77 of file LocalGrid.h.

◆ end()

std::map<int, LocalGrid>::const_iterator rtabmap::LocalGridCache::end ( ) const
inline

Definition at line 82 of file LocalGrid.h.

◆ find()

std::map<int, LocalGrid>::const_iterator rtabmap::LocalGridCache::find ( int  nodeId) const
inline

Definition at line 80 of file LocalGrid.h.

◆ getMemoryUsed()

unsigned long rtabmap::LocalGridCache::getMemoryUsed ( ) const

Definition at line 88 of file LocalGrid.cpp.

◆ localGrids()

const std::map<int, LocalGrid>& rtabmap::LocalGridCache::localGrids ( ) const
inline

Definition at line 78 of file LocalGrid.h.

◆ shareTo()

bool rtabmap::LocalGridCache::shareTo ( int  nodeId,
LocalGridCache anotherCache 
) const

Definition at line 77 of file LocalGrid.cpp.

◆ size()

size_t rtabmap::LocalGridCache::size ( ) const
inline

Definition at line 76 of file LocalGrid.h.

Member Data Documentation

◆ localGrids_

std::map<int, LocalGrid> rtabmap::LocalGridCache::localGrids_
private

Definition at line 85 of file LocalGrid.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:27