Public Member Functions |
| UniformSplineTparam (System< T, nx, nu, np > &sys, const VectorXd &tks, int degree=2) |
bool | To (VectorXd &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 VectorXd &s, Vectormd *p=0) |
void | FindBasis (VectorXd &basis, double u) |
Public Attributes |
const VectorXd & | tks |
int | degree |
template<typename T, int nx, int nu, int np = Dynamic>
class gcop::UniformSplineTparam< T, nx, nu, np >
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...
This version implements the Uniform spline interpolation of the data. It also implements least square fitting of the given control data using spline This is indigenous support which supports only upto degree = 4. Also it assumes tks has atleast 3 points i.e minimum of 2 segments
Author: Marin Kobilarov (c) 2005--2013 Author2: Gowtham Garimella