heading_calculator
Task.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef HEADING_CALCULATOR_TASK_TASK_HPP
4 #define HEADING_CALCULATOR_TASK_TASK_HPP
5 
6 #include "heading_calculator/TaskBase.hpp"
7 
8 namespace heading_calculator {
9 
13  class Task : public TaskBase
14  {
15  friend class TaskBase;
16  protected:
17 
18  base::Trajectory mTrajectory;
19  base::samples::RigidBodyState mPose;
20  double mGuess;
21  double mPosSpline;
23 
24  public:
25 
26  Task(std::string const& name = "heading_calculator::Task", TaskCore::TaskState initial_state = Stopped);
27 
28  Task(std::string const& name, RTT::ExecutionEngine* engine, TaskCore::TaskState initial_state = Stopped);
29 
30  ~Task();
31 
46  bool configureHook();
47 
53  bool startHook();
54 
69  void updateHook();
70 
77  void errorHook();
78 
82  void stopHook();
83 
88  void cleanupHook();
89  };
90 }
91 
92 #endif
93 
~Task()
Definition: Task.cpp:19
Task(std::string const &name="heading_calculator::Task", TaskCore::TaskState initial_state=Stopped)
Definition: Task.cpp:7
void updateHook()
Definition: Task.cpp:50
void stopHook()
Definition: Task.cpp:146
void cleanupHook()
Definition: Task.cpp:151
bool startHook()
Definition: Task.cpp:36
Definition: Task.hpp:13
base::Trajectory mTrajectory
Definition: Task.hpp:18
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: Task.cpp:29
double mPosSpline
Guessed robot position on the spline.
Definition: Task.hpp:21
Definition: heading_calculatorTypes.hpp:11
bool mTrajectoryReceived
Robot position on the spline.
Definition: Task.hpp:22
friend class TaskBase
Definition: Task.hpp:15
double mGuess
Definition: Task.hpp:20
base::samples::RigidBodyState mPose
Definition: Task.hpp:19
void errorHook()
Definition: Task.cpp:141