Stores at state comprised of values and higher-order derivatives. More...
#include <state.h>
Public Member Functions | |
const VectorXd | a () const |
const VectorXd | at (Dx deriv) const |
Read the state value or it's derivatives by index. | |
VectorXd & | at (Dx deriv) |
Read or write a specific state derivative by index. | |
const VectorXd | p () const |
State (int dim, int n_derivatives) | |
Constructs a state object. | |
const VectorXd | v () const |
virtual | ~State () |
Private Attributes | |
std::vector< VectorXd > | values_ |
e.g. position, velocity and acceleration, ... |
Stores at state comprised of values and higher-order derivatives.
This state can represent a motion state with position, velocity and accelerations, but also a force-profiles with forces, force-derivatives etc.
towr::State::State | ( | int | dim, |
int | n_derivatives | ||
) | [explicit] |
virtual towr::State::~State | ( | ) | [virtual] |
const Eigen::VectorXd towr::State::a | ( | ) | const |
const Eigen::VectorXd towr::State::at | ( | Dx | deriv | ) | const |
Eigen::VectorXd & towr::State::at | ( | Dx | deriv | ) |
const Eigen::VectorXd towr::State::p | ( | ) | const |
const Eigen::VectorXd towr::State::v | ( | ) | const |
std::vector<VectorXd> towr::State::values_ [private] |