GCOP
1.0
|
#include <controllertparam.h>
Public Member Functions | |
ControllerTparam (System< Tx, nx, nu, np > &sys, Controller< Tx, Vectorcd, Vectorntpd, Tc > &ctrl, int ntp=_ntp, Constraint< Tx, nx, nu, np, 1 > *con=0) | |
bool | To (Vectorntpd &s, const vector< double > &ts, const vector< Tx > &xs, const vector< Vectorcd > &us, const Vectormd *p=0) |
bool | From (vector< double > &ts, vector< Tx > &xs, vector< Vectorcd > &us, const Vectorntpd &s, Vectormd *p=0) |
virtual bool | SetContext (const Tc &c) |
Public Attributes | |
Controller< Tx, Vectorcd, Vectorntpd, Tc > & | ctrl |
controller | |
Constraint< Tx, nx, nu, np, 1 > * | con |
scalar-valued path constraint to check feasibility | |
bool | stoch |
whether to simulate process noise (true by default) | |
Vectornd | w |
for sampling noise |
Trajectory parametrization using a parametrized controller (a parametric policy). The parameters are typically the gains of the controller, but could also be any other policy parameters.
Author: Marin Kobilarov (c) 2005-2015
gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::ControllerTparam | ( | System< Tx, nx, nu, np > & | sys, |
Controller< Tx, Vectorcd, Vectorntpd, Tc > & | ctrl, | ||
int | ntp = _ntp , |
||
Constraint< Tx, nx, nu, np, 1 > * | con = 0 |
||
) |
bool gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::From | ( | vector< double > & | ts, |
vector< Tx > & | 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< Tx, nx, nu, np, _ntp >.
References gcop::random_normal().
bool gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::SetContext | ( | const Tc & | c | ) | [virtual] |
bool gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::To | ( | Vectorntpd & | s, |
const vector< double > & | ts, | ||
const vector< Tx > & | 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< Tx, nx, nu, np, _ntp >.
Constraint<Tx, nx, nu, np, 1>* gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::con |
scalar-valued path constraint to check feasibility
Controller<Tx, Vectorcd, Vectorntpd, Tc>& gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::ctrl |
controller
bool gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::stoch |
whether to simulate process noise (true by default)
Vectornd gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::w |
for sampling noise
Referenced by gcop::ControllerTparam< Tx, nx, nu, np, _ntp, Tc >::ControllerTparam().