#include <DynamicalSystem.h>
Public Member Functions | |
DSLinear (const Eigen::MatrixXd &errorDynamics, const Eigen::VectorXd &equilibriumPoint) | |
virtual DynamicalSystem * | clone () const |
void | step (Eigen::VectorXd &x_dot, const Eigen::VectorXd &x, double dt) const |
Eigen::VectorXd | getGoal () const |
void | setGoal (const Eigen::VectorXd &x_des) |
![]() | |
DynamicalSystem ()=default | |
virtual | ~DynamicalSystem ()=default |
virtual double | goalDistance (const Eigen::VectorXd &x_curr) const |
unsigned int | getStateDim () const |
Protected Attributes | |
Eigen::MatrixXd | errorDynamics |
Eigen::VectorXd | equilibriumPoint |
Additional Inherited Members | |
![]() | |
static DynamicalSystem * | create (PropertySource *properties, unsigned int innerTaskDim) |
![]() | |
Eigen::VectorXd | x_dot_des |
Linear Dynamical System
Definition at line 153 of file DynamicalSystem.h.
Rcs::DSLinear::DSLinear | ( | const Eigen::MatrixXd & | errorDynamics, |
const Eigen::VectorXd & | equilibriumPoint | ||
) |
!Constructor
[in] | errorDynamics | dynamics matrix |
[in] | equilibriumPoint | attractor |
Definition at line 248 of file DynamicalSystem.cpp.
|
virtual |
Create a deep copy of this DynamicalSystem.
Implements Rcs::DynamicalSystem.
Definition at line 251 of file DynamicalSystem.cpp.
|
virtual |
Get the goal state for this dynamical system.
Implements Rcs::DynamicalSystem.
Definition at line 265 of file DynamicalSystem.cpp.
|
virtual |
Set the goal state for this dynamical system. The goal state is the system's desired equilibrium state. In the presence of repellers, this Systems without an explicit goal state do not need to override this. By default, it does othing.
[in] | x_des | desired state for the system to pursue |
Implements Rcs::DynamicalSystem.
Definition at line 270 of file DynamicalSystem.cpp.
|
virtual |
Advance the dynamical system one step in time. Compute the velocity x_dot with the desired velocity in state x. For acceleration-based systems, x_dot is prefilled with the current velocity.
[in,out] | x_dot | current velocity, override with new desired velocity |
[in] | x | current state |
[in] | dt | time step size for integration |
Implements Rcs::DynamicalSystem.
Definition at line 256 of file DynamicalSystem.cpp.
|
protected |
Definition at line 173 of file DynamicalSystem.h.
|
protected |
Definition at line 172 of file DynamicalSystem.h.