GCOP
1.0
|
#include <controltparam.h>
Public Member Functions | |
ControlTparam (System< T, nx, nu, np > &sys, const vector< double > &ts) | |
bool | To (Vectorntpd &s, const vector< double > &ts, const vector< T > &xs, const vector< Vectorcd > &us, const Vectormd *p=0) |
bool | From (vector< double > &ts, vector< T > &xs, vector< Vectorcd > &us, const Vectorntpd &s, Vectormd *p=0) |
Public Attributes | |
const vector< double > & | tks |
knot times |
General trajectory parametrization functionality. A trajectory can be parametrizes using a set of discrete controls, a continuous control paramertization, a set of discrete states, a set of discrete flat outputs, etc...
The default implementation is the simplest: a set of discrete controls
Author: Marin Kobilarov (c) 2005--2013
gcop::ControlTparam< T, nx, nu, np, _ntp >::ControlTparam | ( | System< T, nx, nu, np > & | sys, |
const vector< double > & | ts | ||
) |
bool gcop::ControlTparam< T, nx, nu, np, _ntp >::From | ( | vector< double > & | ts, |
vector< T > & | xs, | ||
vector< Vectorcd > & | us, | ||
const Vectorntpd & | s, | ||
Vectormd * | p = 0 |
||
) | [virtual] |
Convert from trajectory (ts,xs,us,p) to parameters s
ts | times |
xs | states |
us | controls |
s | trajectory parametrization vector |
p | system parameters (optional) |
Reimplemented from gcop::Tparam< T, nx, nu, np, _ntp >.
bool gcop::ControlTparam< T, nx, nu, np, _ntp >::To | ( | Vectorntpd & | s, |
const vector< double > & | ts, | ||
const vector< T > & | xs, | ||
const vector< Vectorcd > & | us, | ||
const Vectormd * | p = 0 |
||
) | [virtual] |
Convert from paramer s to trajectory (ts,xs,us,p)
s | trajectory parametrization vector |
ts | times |
xs | states |
us | controls |
p | system parameters (optional) |
Reimplemented from gcop::Tparam< T, nx, nu, np, _ntp >.
const vector<double>& gcop::ControlTparam< T, nx, nu, np, _ntp >::tks |
knot times