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

#include <Mapper.h>

Public Member Functions

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

Private Types

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

Private Member Functions

ScanManagerGetScanManager (LocalizedRangeScan *pScan)
 
ScanManagerGetScanManager (const Name &rSensorName)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

kt_int32s m_NextScanId
 
kt_double m_RunningBufferMaximumDistance
 
kt_int32u m_RunningBufferMaximumSize
 
ScanManagerMap m_ScanManagers
 
std::map< int, LocalizedRangeScan * > m_Scans
 

Friends

class boost::serialization::access
 

Detailed Description

Manages the devices for the mapper

Definition at line 1517 of file Mapper.h.

Member Typedef Documentation

◆ ScanManagerMap

Definition at line 1519 of file Mapper.h.

Constructor & Destructor Documentation

◆ MapperSensorManager() [1/2]

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

Constructor

Definition at line 1525 of file Mapper.h.

◆ MapperSensorManager() [2/2]

karto::MapperSensorManager::MapperSensorManager ( )
inline

Definition at line 1532 of file Mapper.h.

◆ ~MapperSensorManager()

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

Destructor

Definition at line 1538 of file Mapper.h.

Member Function Documentation

◆ AddRunningScan()

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

Adds scan to running scans of device that recorded scan

Parameters
pScan

Definition at line 305 of file Mapper.cpp.

◆ AddScan()

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

Adds scan to scan vector of device that recorded scan

Parameters
pScan

Definition at line 294 of file Mapper.cpp.

◆ Clear()

void karto::MapperSensorManager::Clear ( )

Deletes all scan managers of all devices

Definition at line 386 of file Mapper.cpp.

◆ ClearRunningScans()

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

Clears running scans of device

Definition at line 350 of file Mapper.cpp.

◆ GetAllScans()

LocalizedRangeScanVector karto::MapperSensorManager::GetAllScans ( )

Gets all scans of all devices

Returns
all scans of all devices

Definition at line 365 of file Mapper.cpp.

◆ GetLastScan()

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 274 of file Mapper.cpp.

◆ GetRunningScanBufferSize()

kt_int32u karto::MapperSensorManager::GetRunningScanBufferSize ( const Name rSensorName)
inline

Gets the running scan buffer of device

Definition at line 356 of file Mapper.cpp.

◆ GetRunningScans()

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

Gets running scans of device

Parameters
rSensorName
Returns
running scans of device

Definition at line 345 of file Mapper.cpp.

◆ GetScan() [1/2]

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 249 of file Mapper.cpp.

◆ GetScan() [2/2]

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

Gets the scan with the given unique id

Parameters
id
Returns
scan

Definition at line 1592 of file Mapper.h.

◆ GetScanManager() [1/2]

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

Get scan manager for localized range scan

Returns
ScanManager

Definition at line 1665 of file Mapper.h.

◆ GetScanManager() [2/2]

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

Get scan manager for id

Parameters
rSensorName
Returns
ScanManager

Definition at line 1675 of file Mapper.h.

◆ GetScans()

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

Gets scans of device

Parameters
rSensorName
Returns
scans of device

Definition at line 335 of file Mapper.cpp.

◆ GetSensorNames()

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

Gets names of all sensors

Returns
sensor names

Definition at line 1563 of file Mapper.h.

◆ RegisterSensor()

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

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

Parameters
rSensorName

Definition at line 234 of file Mapper.cpp.

◆ RemoveScan()

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

Finds and replaces a scan from m_scans with NULL

Parameters
pScanFinds and replaces a scan from m_Scans with NULL
pScan

Definition at line 314 of file Mapper.cpp.

◆ serialize()

template<class Archive >
void karto::MapperSensorManager::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

Definition at line 1687 of file Mapper.h.

◆ SetLastScan()

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

Sets the last scan of device of given scan

Parameters
pScan

Definition at line 285 of file Mapper.cpp.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 1685 of file Mapper.h.

Member Data Documentation

◆ m_NextScanId

kt_int32s karto::MapperSensorManager::m_NextScanId
private

Definition at line 1705 of file Mapper.h.

◆ m_RunningBufferMaximumDistance

kt_double karto::MapperSensorManager::m_RunningBufferMaximumDistance
private

Definition at line 1703 of file Mapper.h.

◆ m_RunningBufferMaximumSize

kt_int32u karto::MapperSensorManager::m_RunningBufferMaximumSize
private

Definition at line 1702 of file Mapper.h.

◆ m_ScanManagers

ScanManagerMap karto::MapperSensorManager::m_ScanManagers
private

Definition at line 1700 of file Mapper.h.

◆ m_Scans

std::map<int, LocalizedRangeScan*> karto::MapperSensorManager::m_Scans
private

Definition at line 1707 of file Mapper.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Sat Oct 3 2020 03:51:02