gps
BaseTask.hpp
Go to the documentation of this file.
1 /*
2  * Author: Alexander Duda / Alexander.Duda@dfki.define
3  *
4  * Created on 12. October 2010
5  */
6 
7 
8 /*
9  * Base Class for orogen GPS Drivers
10  */
11 
12 #ifndef GPS_BASETASK_TASK_HPP
13 #define GPS_BASETASK_TASK_HPP
14 
15 #include "gps/BaseTaskBase.hpp"
16 
17 class OGRCoordinateTransformation;
18 
19 namespace gps {
20  class BaseTask : public BaseTaskBase
21  {
22  friend class BaseTaskBase;
23  protected:
24  OGRCoordinateTransformation *coTransform;
25  base::Time last_update;
26 
27  protected:
28  /*
29  * Updates the solution and calculates the position in UTM coordinates
30  */
31  void update(const gps::Solution &solution);
32 
33  public:
34  BaseTask(std::string const& name = "gps::BaseTask", TaskCore::TaskState initial_state = Stopped);
35  BaseTask(std::string const& name, RTT::ExecutionEngine* engine, TaskCore::TaskState initial_state = Stopped);
36 
50  bool configureHook();
51 
57  bool startHook();
58 
75  // void updateHook();
76 
77 
84  // void errorHook();
85 
89  // void stopHook();
90 
95  // void cleanupHook();
96  };
97 }
98 
99 #endif
100 
Definition: BaseTask.hpp:19
BaseTask(std::string const &name="gps::BaseTask", TaskCore::TaskState initial_state=Stopped)
Definition: BaseTask.cpp:7
Definition: BaseTask.hpp:20
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: BaseTask.cpp:26
bool startHook()
Definition: BaseTask.cpp:46
OGRCoordinateTransformation * coTransform
Definition: BaseTask.hpp:24
void update(const gps::Solution &solution)
Definition: BaseTask.cpp:51
friend class BaseTaskBase
Definition: BaseTask.hpp:22
base::Time last_update
Definition: BaseTask.hpp:25