Public Member Functions | Private Attributes
towr::State Class Reference

Stores at state comprised of values and higher-order derivatives. More...

#include <state.h>

Inheritance diagram for towr::State:
Inheritance graph
[legend]

List of all members.

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, ...

Detailed Description

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.

Definition at line 49 of file state.h.


Constructor & Destructor Documentation

towr::State::State ( int  dim,
int  n_derivatives 
) [explicit]

Constructs a state object.

Parameters:
dimThe number of dimensions this state has (e.g. x,y,z).
n_derivativesThe number of derivatives. In control a state is usually made up of two (positions and velocities.

Definition at line 35 of file state.cc.

virtual towr::State::~State ( ) [virtual]

Member Function Documentation

const Eigen::VectorXd towr::State::a ( ) const
Returns:
read access to the second-derivative of the state, e.g. acceleration.

Definition at line 65 of file state.cc.

const Eigen::VectorXd towr::State::at ( Dx  deriv) const

Read the state value or it's derivatives by index.

Parameters:
derivIndex for that specific derivative (pos=0, vel=1, acc=2).
Returns:
Read-only n-dimensional position, velocity or acceleration.

Definition at line 41 of file state.cc.

Eigen::VectorXd & towr::State::at ( Dx  deriv)

Read or write a specific state derivative by index.

Parameters:
derivIndex for that specific derivative (pos=0, vel=1, acc=2).
Returns:
Read/write n-dimensional position, velocity or acceleration.

Definition at line 47 of file state.cc.

const Eigen::VectorXd towr::State::p ( ) const
Returns:
read access to the zero-derivative of the state, e.g. position.

Definition at line 53 of file state.cc.

const Eigen::VectorXd towr::State::v ( ) const
Returns:
read access to the first-derivative of the state, e.g. velocity.

Definition at line 59 of file state.cc.


Member Data Documentation

std::vector<VectorXd> towr::State::values_ [private]

e.g. position, velocity and acceleration, ...

Definition at line 93 of file state.h.


The documentation for this class was generated from the following files:


towr_core
Author(s): Alexander W. Winkler
autogenerated on Mon Apr 9 2018 03:12:44