#include <DynamicalSystem.h>
A dynamical system that only affects a slice of the state x.
Definition at line 250 of file DynamicalSystem.h.
◆ DSSlice()
Rcs::DSSlice::DSSlice |
( |
DynamicalSystem * |
wrapped, |
|
|
unsigned int |
offset, |
|
|
unsigned int |
length |
|
) |
| |
◆ ~DSSlice()
Rcs::DSSlice::~DSSlice |
( |
| ) |
|
◆ clone()
◆ getGoal()
Eigen::VectorXd Rcs::DSSlice::getGoal |
( |
| ) |
const |
|
virtual |
◆ getWrapped()
◆ goalDistance()
double Rcs::DSSlice::goalDistance |
( |
const Eigen::VectorXd & |
x_curr | ) |
const |
|
virtual |
Compute the L2 norm between the current state and the goal state.
- Parameters
-
[in] | x_curr | current system state |
- Returns
- euclidean distance to goal
Reimplemented from Rcs::DynamicalSystem.
Definition at line 425 of file DynamicalSystem.cpp.
◆ setGoal()
void Rcs::DSSlice::setGoal |
( |
const Eigen::VectorXd & |
x_des | ) |
|
|
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.
- Parameters
-
[in] | x_des | desired state for the system to pursue |
Implements Rcs::DynamicalSystem.
Definition at line 413 of file DynamicalSystem.cpp.
◆ step()
void Rcs::DSSlice::step |
( |
Eigen::VectorXd & |
x_dot, |
|
|
const Eigen::VectorXd & |
x, |
|
|
double |
dt |
|
) |
| const |
|
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.
- Parameters
-
[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 398 of file DynamicalSystem.cpp.
◆ goal
Eigen::VectorXd Rcs::DSSlice::goal |
|
private |
◆ length
unsigned int Rcs::DSSlice::length |
|
private |
◆ offset
unsigned int Rcs::DSSlice::offset |
|
private |
◆ wrapped
The documentation for this class was generated from the following files: