act_schilling
Task.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef ACT_SCHILLING_TASK_TASK_HPP
4 #define ACT_SCHILLING_TASK_TASK_HPP
5 
6 #include "act_schilling/TaskBase.hpp"
7 
8 namespace act_schilling {
9  class Driver;
24  class Task : public TaskBase
25  {
26  friend class TaskBase;
27  protected:
28  Driver* mDriver;
29 
30 
31 
32 
33  public:
38  Task(std::string const& name = "act_schilling::Task");
39 
45  Task(std::string const& name, RTT::ExecutionEngine* engine);
46 
49  ~Task();
50 
65  bool configureHook();
66 
72  bool startHook();
73 
88  void updateHook();
89 
96  void errorHook();
97 
101  void stopHook();
102 
107  void cleanupHook();
108 
109  void calibrate();
110 
111  void setControlMode(act_schilling::ControlMode const & mode);
112 
113  private:
114  void processIO();
115 
116  void statusCheck(const ActDeviceStatus& devStatus);
117 
118  void run();
119 
120  ActDeviceStatus devLogStatus;
121  };
122 }
123 
124 #endif
125 
bool startHook()
Definition: Task.cpp:52
void calibrate()
Definition: Task.cpp:97
void updateHook()
Definition: Task.cpp:69
void stopHook()
Definition: Task.cpp:84
Task(std::string const &name="act_schilling::Task")
Definition: Task.cpp:13
Driver * mDriver
Definition: Task.hpp:28
void errorHook()
Definition: Task.cpp:74
friend class TaskBase
Definition: Task.hpp:26
void setControlMode(act_schilling::ControlMode const &mode)
Definition: Task.cpp:108
~Task()
Definition: Task.cpp:25
void cleanupHook()
Definition: Task.cpp:89
Definition: PanTiltTask.hpp:8
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: Task.cpp:36
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: Task.hpp:24