|
AUTh-ARL Core Stack
0.7
|
Integrates the dynamical system for admittance control. More...
#include <autharl_core/math/admittance.h>
Public Types | |
| typedef boost::array< double, 2 > | State |
| The type of the state of the dynamical system used by this class. More... | |
Public Member Functions | |
| Admittance () | |
| ~Admittance () | |
| State | calc (double current_external_force) |
| The main function for calculating the next state of the system. More... | |
| void | setParams (double zeta, double ts, double stiffness) |
| Sets the parameters (stiffness, damping, inertia) based on desired damping ratio and response time of the system. More... | |
| void | setInitState (const State &x) |
| Sets the initial state of the system. Should be called before the control loops starts. More... | |
Integrates the dynamical system for admittance control.
Example of use:
| typedef boost::array<double, 2> arl::math::Admittance::State |
The type of the state of the dynamical system used by this class.
| arl::math::Admittance::Admittance | ( | ) |
| arl::math::Admittance::~Admittance | ( | ) |
| Admittance::State arl::math::Admittance::calc | ( | double | current_external_force | ) |
The main function for calculating the next state of the system.
The function measures the current time by checking when was the last time that someone called it (within a control loop). Then integrates the ODE defined in Admittance::ode function and returns the state in the current time.
| current_external_force | The current external force |

| void arl::math::Admittance::setInitState | ( | const State & | x | ) |
Sets the initial state of the system. Should be called before the control loops starts.
| x | The initial state |
| void arl::math::Admittance::setParams | ( | double | zeta, |
| double | ts, | ||
| double | stiffness | ||
| ) |
Sets the parameters (stiffness, damping, inertia) based on desired damping ratio and response time of the system.
| zeta | The desired damping ratio |
| ts | The desired response time |
| stiffness | The desired stiffness |