canbus
InterfaceTask.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef CANBUS_INTERFACETASK_TASK_HPP
4 #define CANBUS_INTERFACETASK_TASK_HPP
5 
6 #include "canbus/InterfaceTaskBase.hpp"
7 #include "canbus.hh"
8 
9 namespace canbus {
10 
25  class InterfaceTask : public InterfaceTaskBase, public canbus::Interface
26  {
27  friend class InterfaceTaskBase;
28  protected:
29 
30 
31 
32  public:
37  InterfaceTask(std::string const& name = "canbus::InterfaceTask", TaskCore::TaskState initial_state = Stopped);
38 
44  InterfaceTask(std::string const& name, RTT::ExecutionEngine* engine, TaskCore::TaskState initial_state = Stopped);
45 
49 
64  bool configureHook();
65 
71  bool startHook();
72 
87  void updateHook();
88 
95  void errorHook();
96 
100  void stopHook();
101 
106  void cleanupHook();
107 
108  virtual bool readCanMsg(canbus::Message& msg);
109  virtual bool sendCanMsg(const canbus::Message &msg);
110  };
111 }
112 
113 #endif
114 
friend class InterfaceTaskBase
Definition: InterfaceTask.hpp:27
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: InterfaceTask.hpp:25
bool configureHook()
Definition: InterfaceTask.cpp:21
void stopHook()
Definition: InterfaceTask.cpp:45
bool startHook()
Definition: InterfaceTask.cpp:28
void updateHook()
Definition: InterfaceTask.cpp:35
~InterfaceTask()
Definition: InterfaceTask.cpp:17
void cleanupHook()
Definition: InterfaceTask.cpp:50
InterfaceTask(std::string const &name="canbus::InterfaceTask", TaskCore::TaskState initial_state=Stopped)
Definition: InterfaceTask.cpp:7
Definition: canTypes.hh:6
virtual bool readCanMsg(canbus::Message &msg)
Definition: InterfaceTask.cpp:56
void errorHook()
Definition: InterfaceTask.cpp:40
virtual bool sendCanMsg(const canbus::Message &msg)
Definition: InterfaceTask.cpp:60