orogen/ctrl_lib
ControllerTask.hpp
Go to the documentation of this file.
1/* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2
3#ifndef CTRL_LIB_CONTROLLERTASK_TASK_HPP
4#define CTRL_LIB_CONTROLLERTASK_TASK_HPP
5
6#include "ctrl_lib/ControllerTaskBase.hpp"
7#include <wbc/controllers/ActivationFunction.hpp>
8#include <base/Time.hpp>
9
10namespace ctrl_lib {
11
25class ControllerTask : public ControllerTaskBase
26{
27 friend class ControllerTaskBase;
28protected:
30 virtual bool readFeedback() = 0;
32 virtual bool readSetpoint() = 0;
34 virtual void updateController() = 0;
36 virtual const base::VectorXd& computeActivation(wbc::ActivationFunction& activation_function) = 0;
37
38 std::vector<std::string> field_names;
39 wbc::ActivationFunction activation_function;
40 base::VectorXd tmp;
41 base::Time stamp;
42
43public:
44 ControllerTask(std::string const& name = "ctrl_lib::ControllerTask");
45 ControllerTask(std::string const& name, RTT::ExecutionEngine* engine);
47 bool configureHook();
48 bool startHook();
49 void updateHook();
50 void errorHook();
51 void stopHook();
52 void cleanupHook();
53};
54}
55
56#endif
57
Definition ControllerTask.hpp:26
virtual bool readSetpoint()=0
virtual void updateController()=0
wbc::ActivationFunction activation_function
Definition ControllerTask.hpp:39
~ControllerTask()
Definition ControllerTask.hpp:46
void errorHook()
Definition ControllerTask.cpp:57
void stopHook()
Definition ControllerTask.cpp:61
virtual const base::VectorXd & computeActivation(wbc::ActivationFunction &activation_function)=0
void cleanupHook()
Definition ControllerTask.cpp:65
bool configureHook()
Definition ControllerTask.cpp:15
bool startHook()
Definition ControllerTask.cpp:25
void updateHook()
Definition ControllerTask.cpp:32
std::vector< std::string > field_names
Definition ControllerTask.hpp:38
virtual bool readFeedback()=0
base::Time stamp
Definition ControllerTask.hpp:41
base::VectorXd tmp
Definition ControllerTask.hpp:40
ControllerTask(std::string const &name="ctrl_lib::ControllerTask")
Definition ControllerTask.cpp:7
Definition CartesianForceController.hpp:12