Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
karto::MapperSensorManager Class Reference

#include <Mapper.h>

Public Member Functions

void AddRunningScan (LocalizedRangeScan *pScan)
 
void AddScan (LocalizedRangeScan *pScan)
 
void Clear ()
 
LocalizedRangeScanVector GetAllScans ()
 
LocalizedRangeScanGetLastScan (const Name &rSensorName)
 
LocalizedRangeScanVectorGetRunningScans (const Name &rSensorName)
 
LocalizedRangeScanGetScan (const Name &rSensorName, kt_int32s scanIndex)
 
LocalizedRangeScanGetScan (kt_int32s id)
 
LocalizedRangeScanVectorGetScans (const Name &rSensorName)
 
std::vector< NameGetSensorNames ()
 
 MapperSensorManager (kt_int32u runningBufferMaximumSize, kt_double runningBufferMaximumDistance)
 
void RegisterSensor (const Name &rSensorName)
 
void SetLastScan (LocalizedRangeScan *pScan)
 
virtual ~MapperSensorManager ()
 

Private Types

typedef std::map< Name, ScanManager * > ScanManagerMap
 

Private Member Functions

ScanManagerGetScanManager (LocalizedRangeScan *pScan)
 
ScanManagerGetScanManager (const Name &rSensorName)
 

Private Attributes

kt_int32s m_NextScanId
 
kt_double m_RunningBufferMaximumDistance
 
kt_int32u m_RunningBufferMaximumSize
 
ScanManagerMap m_ScanManagers
 
std::vector< LocalizedRangeScan * > m_Scans
 

Detailed Description

Manages the devices for the mapper

Definition at line 1188 of file Mapper.h.

Member Typedef Documentation

Definition at line 1190 of file Mapper.h.

Constructor & Destructor Documentation

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

Constructor

Definition at line 1196 of file Mapper.h.

virtual karto::MapperSensorManager::~MapperSensorManager ( )
inlinevirtual

Destructor

Definition at line 1206 of file Mapper.h.

Member Function Documentation

void karto::MapperSensorManager::AddRunningScan ( LocalizedRangeScan pScan)
inline

Adds scan to running scans of device that recorded scan

Parameters
pScan

Definition at line 235 of file Mapper.cpp.

void karto::MapperSensorManager::AddScan ( LocalizedRangeScan pScan)

Adds scan to scan vector of device that recorded scan

Parameters
pScan

Definition at line 224 of file Mapper.cpp.

void karto::MapperSensorManager::Clear ( )

Deletes all scan managers of all devices

Definition at line 281 of file Mapper.cpp.

LocalizedRangeScanVector karto::MapperSensorManager::GetAllScans ( )

Gets all scans of all devices

Returns
all scans of all devices

Definition at line 264 of file Mapper.cpp.

LocalizedRangeScan * karto::MapperSensorManager::GetLastScan ( const Name rSensorName)
inline

Gets last scan of given sensor

Parameters
rSensorName
Returns
last localized range scan of sensor

Gets last scan of given device

Parameters
pLaserRangeFinder
Returns
last localized range scan of device

Definition at line 204 of file Mapper.cpp.

LocalizedRangeScanVector & karto::MapperSensorManager::GetRunningScans ( const Name rSensorName)
inline

Gets running scans of device

Parameters
rSensorName
Returns
running scans of device

Definition at line 255 of file Mapper.cpp.

LocalizedRangeScan * karto::MapperSensorManager::GetScan ( const Name rSensorName,
kt_int32s  scanIndex 
)

Gets scan from given sensor with given ID

Parameters
rSensorName
scanIndex
Returns
localized range scan

Gets scan from given device with given ID

Parameters
rSensorName
scanNum
Returns
localized range scan

Definition at line 187 of file Mapper.cpp.

LocalizedRangeScan* karto::MapperSensorManager::GetScan ( kt_int32s  id)
inline

Gets the scan with the given unique id

Parameters
id
Returns
scan

Definition at line 1260 of file Mapper.h.

ScanManager* karto::MapperSensorManager::GetScanManager ( LocalizedRangeScan pScan)
inlineprivate

Get scan manager for localized range scan

Returns
ScanManager

Definition at line 1309 of file Mapper.h.

ScanManager* karto::MapperSensorManager::GetScanManager ( const Name rSensorName)
inlineprivate

Get scan manager for id

Parameters
rSensorName
Returns
ScanManager

Definition at line 1319 of file Mapper.h.

LocalizedRangeScanVector & karto::MapperSensorManager::GetScans ( const Name rSensorName)
inline

Gets scans of device

Parameters
rSensorName
Returns
scans of device

Definition at line 245 of file Mapper.cpp.

std::vector<Name> karto::MapperSensorManager::GetSensorNames ( )
inline

Gets names of all sensors

Returns
sensor names

Definition at line 1231 of file Mapper.h.

void karto::MapperSensorManager::RegisterSensor ( const Name rSensorName)

Registers a sensor (with given name); do nothing if device already registered

Parameters
rSensorName

Definition at line 172 of file Mapper.cpp.

void karto::MapperSensorManager::SetLastScan ( LocalizedRangeScan pScan)
inline

Sets the last scan of device of given scan

Parameters
pScan

Definition at line 215 of file Mapper.cpp.

Member Data Documentation

kt_int32s karto::MapperSensorManager::m_NextScanId
private

Definition at line 1336 of file Mapper.h.

kt_double karto::MapperSensorManager::m_RunningBufferMaximumDistance
private

Definition at line 1334 of file Mapper.h.

kt_int32u karto::MapperSensorManager::m_RunningBufferMaximumSize
private

Definition at line 1333 of file Mapper.h.

ScanManagerMap karto::MapperSensorManager::m_ScanManagers
private

Definition at line 1331 of file Mapper.h.

std::vector<LocalizedRangeScan*> karto::MapperSensorManager::m_Scans
private

Definition at line 1338 of file Mapper.h.


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


open_karto
Author(s):
autogenerated on Sat Apr 6 2019 02:22:46