controldev
JoystickTask.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef CONTROLDEV_JOYSTICKTASK_TASK_HPP
4 #define CONTROLDEV_JOYSTICKTASK_TASK_HPP
5 
6 #include "controldev/JoystickTaskBase.hpp"
7 
8 namespace controldev {
9  class Joystick;
10 
11  class JoystickTask : public JoystickTaskBase
12  {
13  friend class JoystickTaskBase;
14  protected:
15  Joystick *joystick;
16 
17  virtual bool updateRawCommand(RawCommand& rcmd);
18  virtual int getFileDescriptor();
19  public:
20  JoystickTask(std::string const& name = "controldev::JoystickTask");
21  JoystickTask(std::string const& name, RTT::ExecutionEngine* engine);
22 
23  ~JoystickTask();
24 
38  bool configureHook();
39 
45 // bool startHook();
46 
61  void updateHook();
62 
69  // void errorHook();
70 
74 // void stopHook();
75 
80  // void cleanupHook();
81  };
82 }
83 
84 #endif
85 
virtual int getFileDescriptor()
Definition: JoystickTask.cpp:44
JoystickTask(std::string const &name="controldev::JoystickTask")
Definition: JoystickTask.cpp:9
friend class JoystickTaskBase
Definition: JoystickTask.hpp:13
~JoystickTask()
Definition: JoystickTask.cpp:19
Definition: ControlDevTypes.hpp:8
Joystick * joystick
Definition: JoystickTask.hpp:15
bool configureHook()
This hook is called by Orocos when the state machine transitions from PreOperational to Stopped...
Definition: JoystickTask.cpp:28
virtual bool updateRawCommand(RawCommand &rcmd)
Definition: JoystickTask.cpp:49
A data structure for raw data values of input devices.
Definition: ControlDevTypes.hpp:27
Definition: JoystickTask.hpp:11
void updateHook()
This hook is called by Orocos when the state machine transitions from Stopped to Running.
Definition: JoystickTask.cpp:73