![]() |
Smart Minotaur
|
Runs the sensor processing logic of the robot. Mehr ...
#include <SensorThread.hpp>
Öffentliche Methoden | |
void | init (RobotOdometry *p_odom, BlockingQueue< SensorMeasurement > *p_queue) |
void | run () |
The content of this method is executed in the thread. | |
SensorThread (SensorCommunicator &p_sensorCommunicator) | |
void | run () |
Control-loop until onStop() is called. | |
void | setSamplingInterval (const int p_samplingIntervalMsec) |
int | getSamplingInterval () |
![]() | |
void | start () |
void | stop () |
void | join () |
Geschützte Methoden | |
void | onStop () |
This method is called when stop() is called. | |
void | onStart () |
This method is called before the thread is started (call of start()). | |
void | onStart () |
This method is called before the thread is started (call of start()). | |
void | onStop () |
This method is called when stop() is called. |
Runs the sensor processing logic of the robot.
Creates a Thread to get sensorvalues from the brick.
|
protectedvirtual |
This method is called before the thread is started (call of start()).
Any adjustments of members should be done here.
Implementiert minotaur::Thread.
|
protectedvirtual |
This method is called before the thread is started (call of start()).
Any adjustments of members should be done here.
Implementiert minotaur::Thread.
|
protectedvirtual |
This method is called when stop() is called.
The correct stopping of the thread should be done here (e.g. set a bool to false).
Implementiert minotaur::Thread.
|
protectedvirtual |
This method is called when stop() is called.
The correct stopping of the thread should be done here (e.g. set a bool to false).
Implementiert minotaur::Thread.
|
virtual |
The content of this method is executed in the thread.
All work done by the thread should be implemented here.
Implementiert minotaur::Thread.