GCOP  1.0
Public Member Functions | Public Attributes
gcop::SplineTparam< T, nx, nu, np, _ntp > Class Template Reference

#include <splinetparam.h>

Inheritance diagram for gcop::SplineTparam< T, nx, nu, np, _ntp >:
Inheritance graph
[legend]
Collaboration diagram for gcop::SplineTparam< T, nx, nu, np, _ntp >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SplineTparam (System< T, nx, nu, np > &sys, const VectorXd tks, int degree=2)
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

VectorXd tks
 control times
double tf
 Final time for spline.
int degree
 Degree of the spline p = (m - n - 1) where m is knot vector size(used by bspline to find the basis etc); n is the control vector size (tks size)

Detailed Description

template<typename T, int nx, int nu, int np = Dynamic, int _ntp = Dynamic>
class gcop::SplineTparam< T, nx, nu, np, _ntp >

This version implements the non uniform spline interpolation of the data. It also implements least square fitting of the given control data using spline

Author: Marin Kobilarov (c) 2005--2013 Author2: Gowtham Garimella


Constructor & Destructor Documentation

template<typename T , int nx, int nu, int np, int _ntp>
gcop::SplineTparam< T, nx, nu, np, _ntp >::SplineTparam ( System< T, nx, nu, np > &  sys,
const VectorXd  tks,
int  degree = 2 
)

Constructor

Parameters:
sysSystem used for manifold
tksKnot times for spline
degreeSpline degree

References gcop::SplineTparam< T, nx, nu, np, _ntp >::tf, and gcop::SplineTparam< T, nx, nu, np, _ntp >::tks.


Member Function Documentation

template<typename T , int nx, int nu, int np, int _ntp>
bool gcop::SplineTparam< 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

Parameters:
tstimes
xsstates
uscontrols
strajectory parametrization vector
psystem parameters (optional)
Returns:
true if conversion was successful

Reimplemented from gcop::Tparam< T, nx, nu, np, _ntp >.

template<typename T , int nx, int nu, int np, int _ntp>
bool gcop::SplineTparam< 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)

Parameters:
strajectory parametrization vector
tstimes
xsstates
uscontrols
psystem parameters (optional)
Returns:
true if conversion was successful

Reimplemented from gcop::Tparam< T, nx, nu, np, _ntp >.


Member Data Documentation

template<typename T , int nx, int nu, int np = Dynamic, int _ntp = Dynamic>
int gcop::SplineTparam< T, nx, nu, np, _ntp >::degree

Degree of the spline p = (m - n - 1) where m is knot vector size(used by bspline to find the basis etc); n is the control vector size (tks size)

template<typename T , int nx, int nu, int np = Dynamic, int _ntp = Dynamic>
double gcop::SplineTparam< T, nx, nu, np, _ntp >::tf

Final time for spline.

Referenced by gcop::SplineTparam< T, nx, nu, np, _ntp >::SplineTparam().

template<typename T , int nx, int nu, int np = Dynamic, int _ntp = Dynamic>
VectorXd gcop::SplineTparam< T, nx, nu, np, _ntp >::tks

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