karto::MapperSensorManager Class Reference

#include <Mapper.h>

List of all members.

Public Member Functions

void AddRunningScan (LocalizedRangeScan *pScan)
void AddScan (LocalizedRangeScan *pScan)
void Clear ()
LocalizedRangeScanVector GetAllScans ()
LocalizedRangeScanGetLastScan (const Name &rSensorName)
LocalizedRangeScanVectorGetRunningScans (const Name &rSensorName)
LocalizedRangeScanGetScan (kt_int32s id)
LocalizedRangeScanGetScan (const Name &rSensorName, kt_int32s scanIndex)
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 (const Name &rSensorName)
ScanManagerGetScanManager (LocalizedRangeScan *pScan)

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 1073 of file Mapper.h.


Member Typedef Documentation

Definition at line 1075 of file Mapper.h.


Constructor & Destructor Documentation

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

Constructor

Definition at line 1081 of file Mapper.h.

virtual karto::MapperSensorManager::~MapperSensorManager (  )  [inline, virtual]

Destructor

Definition at line 1091 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 234 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 223 of file Mapper.cpp.

void karto::MapperSensorManager::Clear (  ) 

Deletes all scan managers of all devices

Definition at line 280 of file Mapper.cpp.

LocalizedRangeScanVector karto::MapperSensorManager::GetAllScans (  ) 

Gets all scans of all devices

Returns:
all scans of all devices

Definition at line 263 of file Mapper.cpp.

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

Gets last scan of given device

Parameters:
deviceId 
Returns:
last localized range scan of device

Gets last scan of given device

Parameters:
pLaserRangeFinder 
Returns:
last localized range scan of device

Definition at line 203 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 254 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 1145 of file Mapper.h.

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

Gets scan from given device 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 186 of file Mapper.cpp.

ScanManager* karto::MapperSensorManager::GetScanManager ( const Name rSensorName  )  [inline, private]

Get scan manager for id

Parameters:
rSensorName 
Returns:
ScanManager

Definition at line 1204 of file Mapper.h.

ScanManager* karto::MapperSensorManager::GetScanManager ( LocalizedRangeScan pScan  )  [inline, private]

Get scan manager for localized range scan

Returns:
ScanManager

Definition at line 1194 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 244 of file Mapper.cpp.

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

Gets names of all devices

Returns:
device IDs

Definition at line 1116 of file Mapper.h.

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

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

Parameters:
id 

Definition at line 171 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 214 of file Mapper.cpp.


Member Data Documentation

Definition at line 1221 of file Mapper.h.

Definition at line 1219 of file Mapper.h.

Definition at line 1218 of file Mapper.h.

Definition at line 1216 of file Mapper.h.

Definition at line 1223 of file Mapper.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


karto
Author(s): SRI International (package maintained by Brian Gerkey)
autogenerated on Fri Jan 11 10:07:05 2013