Public Member Functions | Protected Member Functions | Private Attributes
ohm_tsd_slam::ThreadMapping Class Reference

Implements a thread updating an obvious::TsdGrid. More...

#include <ThreadMapping.h>

Inheritance diagram for ohm_tsd_slam::ThreadMapping:
Inheritance graph

List of all members.

Public Member Functions

bool initialized (void)
void initPush (obvious::SensorPolar2D *sensor)
void queuePush (obvious::SensorPolar2D *sensor)
 ThreadMapping (obvious::TsdGrid *grid)
virtual ~ThreadMapping ()

Protected Member Functions

virtual void eventLoop (void)

Private Attributes

bool _initialized
boost::mutex _pushMutex
< obvious::SensorPolar2D * > 

Detailed Description

Implements a thread updating an obvious::TsdGrid.

Philipp Koch, Stefan May

Definition at line 24 of file ThreadMapping.h.

Constructor & Destructor Documentation

ohm_tsd_slam::ThreadMapping::ThreadMapping ( obvious::TsdGrid *  grid)



Definition at line 12 of file ThreadMapping.cpp.


Definition at line 18 of file ThreadMapping.cpp.

Member Function Documentation

void ohm_tsd_slam::ThreadMapping::eventLoop ( void  ) [protected, virtual]

eventLoop Thread event loop

Implements ohm_tsd_slam::ThreadSLAM.

Definition at line 43 of file ThreadMapping.cpp.

initialized Method determining whether the tsd grid contains any data yet

true in case of an initialized grid

Definition at line 23 of file ThreadMapping.cpp.

void ohm_tsd_slam::ThreadMapping::initPush ( obvious::SensorPolar2D *  sensor)

initPush method to init the grid from a certain pose. Is done by the CALLING thread

sensorinitial data

Definition at line 32 of file ThreadMapping.cpp.

void ohm_tsd_slam::ThreadMapping::queuePush ( obvious::SensorPolar2D *  sensor)

queuePush Method to add a top be pushed sensor to the queue (synchronized)

sensorNew data

Definition at line 61 of file ThreadMapping.cpp.

Member Data Documentation

Initialized flag

Definition at line 83 of file ThreadMapping.h.

Push mutex for queue

Definition at line 78 of file ThreadMapping.h.

std::queue<obvious::SensorPolar2D*> ohm_tsd_slam::ThreadMapping::_sensors [private]

Sensor queue

Definition at line 73 of file ThreadMapping.h.

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

Author(s): Philipp Koch, Stefan May, Markus Kühn
autogenerated on Thu Jun 6 2019 17:41:12