Public Member Functions | |
void | AddObject (LocalizedObject *pObject, kt_int32s uniqueId) |
void | AddRunningScan (LocalizedLaserScan *pScan) |
void | Clear () |
LocalizedLaserScan * | GetLastScan () |
LocalizedObjectList & | GetObjects () |
LocalizedLaserScanList & | GetRunningScans () |
kt_int32s | GetScanIndex (LocalizedLaserScan *pScan) |
LocalizedLaserScanList & | GetScans () |
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 |
Manages the data for a sensor
Definition at line 51 of file OpenMapper.cpp.
karto::SensorDataManager::SensorDataManager | ( | kt_int32u | runningBufferMaximumSize, |
kt_double | runningBufferMaximumDistance | ||
) | [inline] |
Default constructor
Definition at line 57 of file OpenMapper.cpp.
virtual karto::SensorDataManager::~SensorDataManager | ( | ) | [inline, virtual] |
Destructor
Definition at line 67 of file OpenMapper.cpp.
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
pObject | object |
uniqueId | unique id |
Definition at line 79 of file OpenMapper.cpp.
void karto::SensorDataManager::AddRunningScan | ( | LocalizedLaserScan * | pScan | ) | [inline] |
void karto::SensorDataManager::Clear | ( | ) | [inline] |
Deletes data of this buffered sensor
Definition at line 182 of file OpenMapper.cpp.
LocalizedLaserScan* karto::SensorDataManager::GetLastScan | ( | ) | [inline] |
LocalizedObjectList& karto::SensorDataManager::GetObjects | ( | ) | [inline] |
kt_int32s karto::SensorDataManager::GetScanIndex | ( | LocalizedLaserScan * | pScan | ) | [inline] |
Gets index of scan in sensor's list of scans
pScan |
Definition at line 138 of file OpenMapper.cpp.
LocalizedLaserScanList& karto::SensorDataManager::GetScans | ( | ) | [inline] |
static kt_int32s karto::SensorDataManager::ScanIndexComparator | ( | const LocalizedLaserScanPtr & | pScan1, |
const LocalizedLaserScanPtr & | pScan2 | ||
) | [inline, static, private] |
Definition at line 191 of file OpenMapper.cpp.
void karto::SensorDataManager::SetLastScan | ( | LocalizedLaserScan * | pScan | ) | [inline] |
Definition at line 197 of file OpenMapper.cpp.
Definition at line 201 of file OpenMapper.cpp.
Definition at line 204 of file OpenMapper.cpp.
Definition at line 203 of file OpenMapper.cpp.
Definition at line 200 of file OpenMapper.cpp.
Definition at line 199 of file OpenMapper.cpp.