joint_dispatcher
Task.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef JOINT_DISPATCHER_TASK_TASK_HPP
4 #define JOINT_DISPATCHER_TASK_TASK_HPP
5 
6 #include "joint_dispatcher/TaskBase.hpp"
7 #include <joint_dispatcher/Dispatcher.hpp>
8 
9 namespace joint_dispatcher {
10 
25  class Task : public TaskBase
26  {
27  friend class TaskBase;
28  protected:
29  typedef RTT::OutputPort<base::samples::Joints> OutputPort;
30  typedef RTT::InputPort<base::samples::Joints> InputPort;
31 
32  std::vector<InputPort*> mInputPorts;
33  std::vector<OutputPort*> mOutputPorts;
34 
35  Dispatcher mDispatcher;
36  base::samples::Joints mJoint;
37 
38  std::map<std::string,std::string> jointToStreamMap;
39 
41  void clearPorts();
42 
43 
44  public:
49  Task(std::string const& name = "joint_dispatcher::Task");
50 
56  Task(std::string const& name, RTT::ExecutionEngine* engine);
57 
60  ~Task();
61 
76  bool configureHook();
77 
83  bool startHook();
84 
99  void updateHook();
100 
107  void errorHook();
108 
112  void stopHook();
113 
118  void cleanupHook();
119  };
120 }
121 
122 #endif
123 
RTT::OutputPort< base::samples::Joints > OutputPort
Definition: Task.hpp:29
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: Task.hpp:25
Definition: joint_dispatcherTypes.hpp:7
std::vector< InputPort * > mInputPorts
Definition: Task.hpp:32
std::vector< OutputPort * > mOutputPorts
Definition: Task.hpp:33
std::map< std::string, std::string > jointToStreamMap
Definition: Task.hpp:38
~Task()
Definition: Task.cpp:19
friend class TaskBase
Definition: Task.hpp:27
void updateHook()
Definition: Task.cpp:147
void stopHook()
Definition: Task.cpp:183
RTT::InputPort< base::samples::Joints > InputPort
Definition: Task.hpp:30
base::samples::Joints mJoint
Definition: Task.hpp:36
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: Task.cpp:29
void cleanupHook()
Definition: Task.cpp:187
Task(std::string const &name="joint_dispatcher::Task")
Definition: Task.cpp:9
void errorHook()
Definition: Task.cpp:179
Dispatcher mDispatcher
Definition: Task.hpp:35
bool startHook()
Definition: Task.cpp:104
void clearPorts()
Definition: Task.cpp:193