sensor_thread.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __PLUGINS_JOYSTICK_SENSOR_THREAD_H_
00024 #define __PLUGINS_JOYSTICK_SENSOR_THREAD_H_
00025
00026 #include <core/threading/thread.h>
00027 #include <aspect/blocked_timing.h>
00028 #include <aspect/logging.h>
00029 #include <aspect/configurable.h>
00030 #include <aspect/blackboard.h>
00031
00032 namespace fawkes {
00033 class JoystickInterface;
00034 }
00035
00036 class JoystickAcquisitionThread;
00037
00038 class JoystickSensorThread
00039 : public fawkes::Thread,
00040 public fawkes::BlockedTimingAspect,
00041 public fawkes::LoggingAspect,
00042 public fawkes::ConfigurableAspect,
00043 public fawkes::BlackBoardAspect
00044 {
00045 public:
00046 JoystickSensorThread(JoystickAcquisitionThread *aqt);
00047
00048 virtual void init();
00049 virtual void finalize();
00050 virtual void loop();
00051
00052
00053 protected: virtual void run() { Thread::run(); }
00054
00055 private:
00056 fawkes::JoystickInterface *__joystick_if;
00057
00058 JoystickAcquisitionThread *__aqt;
00059 };
00060
00061
00062 #endif