auv_control
ThrustersBase.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef AUV_CONTROL_THRUSTERSBASE_TASK_HPP
4 #define AUV_CONTROL_THRUSTERSBASE_TASK_HPP
5 
6 #include "auv_control/ThrustersBaseBase.hpp"
7 
8 namespace auv_control{
9 
26  class ThrustersBase : public ThrustersBaseBase
27  {
28  friend class ThrustersBaseBase;
29  protected:
30 
31  base::VectorXd coeffPos;
32  base::VectorXd coeffNeg;
33  std::vector<base::JointState::MODE> controlModes;
36  bool checkControlInput(base::samples::Joints const &cmd_in, base::JointState::MODE mode);
37 
38  public:
43  ThrustersBase(std::string const& name = "auv_control::ThrustersBase");
44 
50  ThrustersBase(std::string const& name, RTT::ExecutionEngine* engine);
51 
55 
70  bool configureHook();
71 
77  bool startHook();
78 
93  void updateHook();
94 
101  void errorHook();
102 
106  void stopHook();
107 
112  void cleanupHook();
113  };
114 }
115 
116 #endif
117 
ThrustersBase(std::string const &name="auv_control::ThrustersBase")
Definition: ThrustersBase.cpp:8
void updateHook()
Definition: ThrustersBase.cpp:104
Definition: 6dControl.hpp:12
base::VectorXd coeffPos
Definition: ThrustersBase.hpp:31
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: ThrustersBase.cpp:28
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: ThrustersBase.hpp:26
std::vector< base::JointState::MODE > controlModes
Definition: ThrustersBase.hpp:33
void errorHook()
Definition: ThrustersBase.cpp:108
double thrusterVoltage
Definition: ThrustersBase.hpp:34
void stopHook()
Definition: ThrustersBase.cpp:112
friend class ThrustersBaseBase
Definition: ThrustersBase.hpp:28
bool checkControlInput(base::samples::Joints const &cmd_in, base::JointState::MODE mode)
Definition: ThrustersBase.cpp:120
base::VectorXd coeffNeg
Definition: ThrustersBase.hpp:32
uint numberOfThrusters
Definition: ThrustersBase.hpp:35
~ThrustersBase()
Definition: ThrustersBase.cpp:18
void cleanupHook()
Definition: ThrustersBase.cpp:116
bool startHook()
Definition: ThrustersBase.cpp:98