auv_control
CommandInjection.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef AUV_CONTROL_COMMANDINJECTION_TASK_HPP
4 #define AUV_CONTROL_COMMANDINJECTION_TASK_HPP
5 
6 #include "auv_control/CommandInjectionBase.hpp"
7 #include <base/Time.hpp>
8 
9 namespace auv_control {
10 
25  class CommandInjection : public CommandInjectionBase
26  {
27  friend class CommandInjectionBase;
28  protected:
30  bool calcOutput(const LinearAngular6DCommandStatus &merged_command);
31  bool receiveCommandInjection(base::LinearAngular6DCommand& cmd_injection);
32 
33  public:
38  CommandInjection(std::string const& name = "auv_control::CommandInjection");
39 
45  CommandInjection(std::string const& name, RTT::ExecutionEngine* engine);
46 
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 }
110 
111 #endif
112 
bool calcOutput(const LinearAngular6DCommandStatus &merged_command)
Definition: CommandInjection.cpp:21
void stopHook()
Definition: CommandInjection.cpp:88
bool receiveCommandInjection(base::LinearAngular6DCommand &cmd_injection)
Definition: CommandInjection.cpp:46
Definition: 6dControl.hpp:12
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: CommandInjection.cpp:65
void cleanupHook()
Definition: CommandInjection.cpp:92
CommandInjection(std::string const &name="auv_control::CommandInjection")
Definition: CommandInjection.cpp:7
void errorHook()
Definition: CommandInjection.cpp:84
~CommandInjection()
Definition: CommandInjection.cpp:17
void updateHook()
Definition: CommandInjection.cpp:80
friend class CommandInjectionBase
Definition: CommandInjection.hpp:27
bool startHook()
Definition: CommandInjection.cpp:74
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: CommandInjection.hpp:25
base::Time newest_injection_sample
Definition: CommandInjection.hpp:29