Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
karto::SensorDataManager Class Reference

Public Member Functions

void AddObject (LocalizedObject *pObject, kt_int32s uniqueId)
 
void AddRunningScan (LocalizedLaserScan *pScan)
 
void Clear ()
 
LocalizedLaserScanGetLastScan ()
 
LocalizedObjectListGetObjects ()
 
LocalizedLaserScanListGetRunningScans ()
 
kt_int32s GetScanIndex (LocalizedLaserScan *pScan)
 
LocalizedLaserScanListGetScans ()
 
 SensorDataManager (kt_int32u runningBufferMaximumSize, kt_double runningBufferMaximumDistance)
 
void SetLastScan (LocalizedLaserScan *pScan)
 
virtual ~SensorDataManager ()
 

Static Private Member Functions

static kt_int32s ScanIndexComparator (const LocalizedLaserScanPtr &pScan1, const LocalizedLaserScanPtr &pScan2)
 

Private Attributes

LocalizedObjectList m_Objects
 
LocalizedLaserScanPtr m_pLastScan
 
kt_double m_RunningBufferMaximumDistance
 
kt_int32u m_RunningBufferMaximumSize
 
LocalizedLaserScanList m_RunningScans
 
LocalizedLaserScanList m_Scans
 

Detailed Description

Manages the data for a sensor

Definition at line 51 of file OpenMapper.cpp.

Constructor & Destructor Documentation

karto::SensorDataManager::SensorDataManager ( kt_int32u  runningBufferMaximumSize,
kt_double  runningBufferMaximumDistance 
)
inline

Default constructor

Definition at line 57 of file OpenMapper.cpp.

virtual karto::SensorDataManager::~SensorDataManager ( )
inlinevirtual

Destructor

Definition at line 67 of file OpenMapper.cpp.

Member Function Documentation

void karto::SensorDataManager::AddObject ( LocalizedObject pObject,
kt_int32s  uniqueId 
)
inline

Adds objects to list of objects, tagging object with given unique id; if object is a scan, then scan gets added to list of processed scans

Parameters
pObjectobject
uniqueIdunique id

Definition at line 79 of file OpenMapper.cpp.

void karto::SensorDataManager::AddRunningScan ( LocalizedLaserScan pScan)
inline

Adds scan to list of running scans

Parameters
pScan

Definition at line 157 of file OpenMapper.cpp.

void karto::SensorDataManager::Clear ( )
inline

Deletes data of this buffered sensor

Definition at line 182 of file OpenMapper.cpp.

LocalizedLaserScan* karto::SensorDataManager::GetLastScan ( )
inline

Gets last scan

Returns
last localized scan

Definition at line 101 of file OpenMapper.cpp.

LocalizedObjectList& karto::SensorDataManager::GetObjects ( )
inline

Gets objects

Returns
objects

Definition at line 119 of file OpenMapper.cpp.

LocalizedLaserScanList& karto::SensorDataManager::GetRunningScans ( )
inline

Gets running scans

Returns
running scans

Definition at line 148 of file OpenMapper.cpp.

kt_int32s karto::SensorDataManager::GetScanIndex ( LocalizedLaserScan pScan)
inline

Gets index of scan in sensor's list of scans

Parameters
pScan
Returns
index into scans list; -1 if not found

Definition at line 138 of file OpenMapper.cpp.

LocalizedLaserScanList& karto::SensorDataManager::GetScans ( )
inline

Gets scans

Returns
scans

Definition at line 128 of file OpenMapper.cpp.

static kt_int32s karto::SensorDataManager::ScanIndexComparator ( const LocalizedLaserScanPtr pScan1,
const LocalizedLaserScanPtr pScan2 
)
inlinestaticprivate

Definition at line 191 of file OpenMapper.cpp.

void karto::SensorDataManager::SetLastScan ( LocalizedLaserScan pScan)
inline

Sets the last scan

Parameters
pScan

Definition at line 110 of file OpenMapper.cpp.

Member Data Documentation

LocalizedObjectList karto::SensorDataManager::m_Objects
private

Definition at line 197 of file OpenMapper.cpp.

LocalizedLaserScanPtr karto::SensorDataManager::m_pLastScan
private

Definition at line 201 of file OpenMapper.cpp.

kt_double karto::SensorDataManager::m_RunningBufferMaximumDistance
private

Definition at line 204 of file OpenMapper.cpp.

kt_int32u karto::SensorDataManager::m_RunningBufferMaximumSize
private

Definition at line 203 of file OpenMapper.cpp.

LocalizedLaserScanList karto::SensorDataManager::m_RunningScans
private

Definition at line 200 of file OpenMapper.cpp.

LocalizedLaserScanList karto::SensorDataManager::m_Scans
private

Definition at line 199 of file OpenMapper.cpp.


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


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Jun 6 2019 19:20:25