skid4_control
Controller.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef SKID4_CONTROL_CONTROLLER_TASK_HPP
4 #define SKID4_CONTROL_CONTROLLER_TASK_HPP
5 
6 #include "skid4_control/ControllerBase.hpp"
7 #include <base/commands/Joints.hpp>
8 
9 namespace skid4_control {
10  class Controller : public ControllerBase
11  {
12  friend class ControllerBase;
13 
14  protected:
15  std::vector<size_t> m_rightIndexes;
16  std::vector<size_t> m_leftIndexes;
17 
18  std::vector<std::string> m_RightWheelNames;
19  std::vector<std::string> m_LeftWheelNames;
20 
21  base::commands::Joints m_jointCmd;
22 
23  public:
24  Controller(std::string const& name = "skid4_control::Controller", TaskCore::TaskState initial_state = Stopped);
25  Controller(std::string const& name, RTT::ExecutionEngine* engine, TaskCore::TaskState initial_state = Stopped);
26 
27  ~Controller();
28 
42  bool configureHook();
43 
49  bool startHook();
50 
65  // void updateHook();
66 
73  // void errorHook();
74 
78  // void stopHook();
79 
84  // void cleanupHook();
85  };
86 }
87 
88 #endif
89 
~Controller()
Definition: Controller.cpp:17
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: Controller.cpp:26
friend class ControllerBase
Definition: Controller.hpp:12
Definition: Controller.hpp:9
Controller(std::string const &name="skid4_control::Controller", TaskCore::TaskState initial_state=Stopped)
Definition: Controller.cpp:7
base::commands::Joints m_jointCmd
Definition: Controller.hpp:21
bool startHook()
Definition: Controller.cpp:56
std::vector< size_t > m_rightIndexes
Definition: Controller.hpp:15
std::vector< size_t > m_leftIndexes
Definition: Controller.hpp:16
std::vector< std::string > m_LeftWheelNames
Definition: Controller.hpp:19
Definition: Controller.hpp:10
std::vector< std::string > m_RightWheelNames
Definition: Controller.hpp:18