orogen/ctrl_lib
JointLimitAvoidance.hpp
Go to the documentation of this file.
1/* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2
3#ifndef CTRL_LIB_JOINTLIMITAVOIDANCE_TASK_HPP
4#define CTRL_LIB_JOINTLIMITAVOIDANCE_TASK_HPP
5
6#include "ctrl_lib/JointLimitAvoidanceBase.hpp"
7#include <base/commands/Joints.hpp>
8#include <wbc/controllers/JointLimitAvoidanceController.hpp>
9
10namespace ctrl_lib{
11
12class JointLimitAvoidanceController;
13
16class JointLimitAvoidance : public JointLimitAvoidanceBase
17{
18 friend class JointLimitAvoidanceBase;
19
20public:
21 JointLimitAvoidance(std::string const& name = "ctrl_lib::JointLimitAvoidance");
22 JointLimitAvoidance(std::string const& name, RTT::ExecutionEngine* engine);
24 bool configureHook();
25 bool startHook();
26 void updateHook();
27 void errorHook();
28 void stopHook();
29 void cleanupHook();
30
31protected:
33 virtual bool readFeedback();
35 virtual bool readSetpoint();
37 virtual void updateController();
39 virtual const base::VectorXd& computeActivation(wbc::ActivationFunction& activation_function);
40
41 base::JointLimits joint_limits;
42 base::samples::Joints feedback;
43 base::VectorXd position_raw;
44 base::commands::Joints control_output;
45 base::VectorXd influence_distance;
46 wbc::JointLimitAvoidanceController* controller;
47};
48}
49
50#endif
51
Definition JointLimitAvoidance.hpp:17
base::commands::Joints control_output
Definition JointLimitAvoidance.hpp:44
wbc::JointLimitAvoidanceController * controller
Definition JointLimitAvoidance.hpp:46
JointLimitAvoidance(std::string const &name="ctrl_lib::JointLimitAvoidance")
Definition JointLimitAvoidance.cpp:10
virtual bool readFeedback()
Definition JointLimitAvoidance.cpp:56
void cleanupHook()
Definition JointLimitAvoidance.cpp:51
void updateHook()
Definition JointLimitAvoidance.cpp:39
virtual void updateController()
Definition JointLimitAvoidance.cpp:69
base::VectorXd influence_distance
Definition JointLimitAvoidance.hpp:45
bool configureHook()
Definition JointLimitAvoidance.cpp:18
~JointLimitAvoidance()
Definition JointLimitAvoidance.hpp:23
base::JointLimits joint_limits
Definition JointLimitAvoidance.hpp:41
base::VectorXd position_raw
Definition JointLimitAvoidance.hpp:43
bool startHook()
Definition JointLimitAvoidance.cpp:32
base::samples::Joints feedback
Definition JointLimitAvoidance.hpp:42
virtual const base::VectorXd & computeActivation(wbc::ActivationFunction &activation_function)
Definition JointLimitAvoidance.cpp:77
virtual bool readSetpoint()
Definition JointLimitAvoidance.cpp:65
void stopHook()
Definition JointLimitAvoidance.cpp:47
void errorHook()
Definition JointLimitAvoidance.cpp:43
Definition CartesianForceController.hpp:12