#include <ControllerTask.hpp>
Base class for all controllers. Implements the controller state machine. Basic functionality is as follows:
- Update Properties
- Read Feedback term.
- If a feedback term is available, read setpoint. Once there is a setpoint, control output will be written at all times.
- Compute and write control output, depending on the implementation of the controller (derived task)
- Compute activation. The activation indicates how much influence a control output has, compared to the other control outputs. Activation values will be within 0..1. The activation ports can e.g. be connected to WBC in order to deactivate constraint variables and make unneeded dof available for other tasks. A typical example is Joint limits avoidance. Usually one wants to activate the avoidance behavior only when being close to the joint limits and not disturb other tasks when moving freely. Different activation functions can be chosen (e.g. linear, quadratic, ...) in order to achieve smooth transitions.
◆ ControllerTask() [1/2]
ControllerTask::ControllerTask |
( |
std::string const & | name = "ctrl_lib::ControllerTask" | ) |
|
◆ ControllerTask() [2/2]
ControllerTask::ControllerTask |
( |
std::string const & | name, |
|
|
RTT::ExecutionEngine * | engine ) |
◆ ~ControllerTask()
ctrl_lib::ControllerTask::~ControllerTask |
( |
| ) |
|
|
inline |
◆ cleanupHook()
void ControllerTask::cleanupHook |
( |
| ) |
|
◆ computeActivation()
virtual const base::VectorXd & ctrl_lib::ControllerTask::computeActivation |
( |
wbc::ActivationFunction & | activation_function | ) |
|
|
protectedpure virtual |
Compute Activation function
◆ configureHook()
bool ControllerTask::configureHook |
( |
| ) |
|
◆ errorHook()
void ControllerTask::errorHook |
( |
| ) |
|
◆ readFeedback()
virtual bool ctrl_lib::ControllerTask::readFeedback |
( |
| ) |
|
|
protectedpure virtual |
Read all feedback values of the controller. Return false if there is no feedback, true otherwise
◆ readSetpoint()
virtual bool ctrl_lib::ControllerTask::readSetpoint |
( |
| ) |
|
|
protectedpure virtual |
Read all setpoints of the controller. Return false if there is no setpoint, true otherwise
◆ startHook()
bool ControllerTask::startHook |
( |
| ) |
|
◆ stopHook()
void ControllerTask::stopHook |
( |
| ) |
|
◆ updateController()
virtual void ctrl_lib::ControllerTask::updateController |
( |
| ) |
|
|
protectedpure virtual |
Compute output of the controller
◆ updateHook()
void ControllerTask::updateHook |
( |
| ) |
|
◆ ControllerTaskBase
friend class ControllerTaskBase |
|
friend |
◆ activation_function
wbc::ActivationFunction ctrl_lib::ControllerTask::activation_function |
|
protected |
◆ field_names
std::vector<std::string> ctrl_lib::ControllerTask::field_names |
|
protected |
◆ stamp
base::Time ctrl_lib::ControllerTask::stamp |
|
protected |
◆ tmp
base::VectorXd ctrl_lib::ControllerTask::tmp |
|
protected |
The documentation for this class was generated from the following files: