GCOP
1.0
|
#include <body3dcontroller.h>
Public Types | |
typedef Matrix< double, c, 1 > | Vectorcd |
Public Member Functions | |
Body3dController (const Body3d< c > &sys, Body3dState *xd=0, Vector6d *ad=0) | |
virtual bool | Set (Vectorcd &u, double t, const Body3dState &x) |
virtual | ~Body3dController () |
Public Attributes | |
const Body3d< c > & | sys |
system | |
Body3dState * | xd |
desired state (origin by default) | |
Vector6d * | ad |
desired acceleration (zero by default) | |
Vector6d | Kp |
proportional terms (ones by default) | |
Vector6d | Kd |
derivative terms (twos by default) |
Rigid body PD controller using errors on
Author: Marin Kobilarov, 2007
typedef Matrix<double, c, 1> gcop::Body3dController< c >::Vectorcd |
gcop::Body3dController< c >::Body3dController | ( | const Body3d< c > & | sys, |
Body3dState * | xd = 0 , |
||
Vector6d * | ad = 0 |
||
) |
BODY3D PD controller
sys | multi-body system |
xd | desired state (optional, set to origin by default) |
ad | desired acceleration (optional, set to zero by default) |
References gcop::Body3dController< c >::Kd, and gcop::Body3dController< c >::Kp.
gcop::Body3dController< c >::~Body3dController | ( | ) | [virtual] |
virtual bool gcop::Body3dController< c >::Set | ( | Vectorcd & | u, |
double | t, | ||
const Body3dState & | x | ||
) | [virtual] |
Feedback controller of the form u = k(t, x)
u | controls |
t | time |
x | state |
Implements gcop::Controller< Body3dState, Matrix< double, c, 1 > >.
Vector6d* gcop::Body3dController< c >::ad |
desired acceleration (zero by default)
Vector6d gcop::Body3dController< c >::Kd |
derivative terms (twos by default)
Referenced by gcop::Body3dController< c >::Body3dController().
Vector6d gcop::Body3dController< c >::Kp |
proportional terms (ones by default)
Referenced by gcop::Body3dController< c >::Body3dController().
const Body3d<c>& gcop::Body3dController< c >::sys |
system
Body3dState* gcop::Body3dController< c >::xd |
desired state (origin by default)