23 #ifndef __PLUGINS_JOYSTICK_ACT_THREAD_H_
24 #define __PLUGINS_JOYSTICK_ACT_THREAD_H_
26 #include <core/threading/thread.h>
27 #include <aspect/blocked_timing.h>
28 #include <aspect/logging.h>
29 #include <aspect/configurable.h>
30 #include <aspect/blackboard.h>
33 class JoystickInterface;
59 bool __joystick_connected;
69 protected:
virtual void run() { Thread::run(); }
77 MessageProcessor *__msgproc;
virtual void init()
Initialize the thread.
Thread aspect to access to BlackBoard.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
JoystickInterface Fawkes BlackBoard Interface.
Joystick force feedback actuation thread.
Process incoming messages.
virtual void finalize()
Finalize the thread.
virtual void run()
Stub to see name in backtrace for easier debugging.
MessageProcessor(JoystickAcquisitionThread *aqt, fawkes::JoystickInterface *joystick_if)
Constructor.
Thread class encapsulation of pthreads.
Joystick acqusition thread for Linux joystick API.
Thread aspect to use blocked timing.
virtual void loop()
Code to execute in the thread.
Thread aspect to log output.
Thread aspect to access configuration data.
void process_message(fawkes::Message *msg)
Process a single message.
JoystickActThread(JoystickAcquisitionThread *aqt, JoystickSensorThread *senst)
Constructor.
void process()
Process message currently in the queue.