orogen/ctrl_lib
JointTorqueController.hpp
Go to the documentation of this file.
1/* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2
3#ifndef CTRL_LIB_JOINTTORQUECONTROLLER_TASK_HPP
4#define CTRL_LIB_JOINTTORQUECONTROLLER_TASK_HPP
5
6#include "ctrl_lib/JointTorqueControllerBase.hpp"
7#include <base/commands/Joints.hpp>
8#include <wbc/controllers/JointTorquePIDController.hpp>
9
10namespace ctrl_lib{
11
12class JointTorquePIDController;
13
15class JointTorqueController : public JointTorqueControllerBase
16{
17 friend class JointTorqueControllerBase;
18
19public:
20 JointTorqueController(std::string const& name = "ctrl_lib::JointTorqueController");
21 JointTorqueController(std::string const& name, RTT::ExecutionEngine* engine);
23 bool configureHook();
24 bool startHook();
25 void updateHook();
26 void errorHook();
27 void stopHook();
28 void cleanupHook();
29
30protected:
32 virtual bool readFeedback();
34 virtual bool readSetpoint();
36 virtual void updateController();
38 virtual const base::VectorXd& computeActivation(wbc::ActivationFunction& activation_function);
39
40 base::commands::Joints setpoint, control_output, feedback;
41 wbc::JointTorquePIDController* controller;
42
43};
44}
45
46#endif
47
Definition JointTorqueController.hpp:16
void stopHook()
Definition JointTorqueController.cpp:45
virtual const base::VectorXd & computeActivation(wbc::ActivationFunction &activation_function)
Definition JointTorqueController.cpp:78
base::commands::Joints feedback
Definition JointTorqueController.hpp:40
bool configureHook()
Definition JointTorqueController.cpp:17
void errorHook()
Definition JointTorqueController.cpp:41
base::commands::Joints setpoint
Definition JointTorqueController.hpp:40
wbc::JointTorquePIDController * controller
Definition JointTorqueController.hpp:41
bool startHook()
Definition JointTorqueController.cpp:29
virtual bool readSetpoint()
Definition JointTorqueController.cpp:62
virtual void updateController()
Definition JointTorqueController.cpp:71
~JointTorqueController()
Definition JointTorqueController.hpp:22
void updateHook()
Definition JointTorqueController.cpp:37
virtual bool readFeedback()
Definition JointTorqueController.cpp:53
base::commands::Joints control_output
Definition JointTorqueController.hpp:40
void cleanupHook()
Definition JointTorqueController.cpp:49
JointTorqueController(std::string const &name="ctrl_lib::JointTorqueController")
Definition JointTorqueController.cpp:8
Definition CartesianForceController.hpp:12