GCOP
1.0
|
#include <point3dcontroller.h>
Public Member Functions | |
Point3dController (const Point3d &sys, Point3dState *xd=0, Vector3d *ad=0) | |
virtual bool | Set (Vector3d &u, double t, const Point3dState &x) |
virtual | ~Point3dController () |
Public Attributes | |
const Point3d & | sys |
point mass system | |
Point3dState * | xd |
desired state (origin by default) | |
Vector3d * | ad |
desired acceleration (zero by default) | |
Vector3d | Kp |
proportional terms (ones by default) | |
Vector3d | Kd |
derivative terms (ones by default) |
Basic PD controller for a point-mass system in 3d
Author: Marin Kobilarov
Point3dController::Point3dController | ( | const Point3d & | sys, |
Point3dState * | xd = 0 , |
||
Vector3d * | ad = 0 |
||
) |
Point3dController::~Point3dController | ( | ) | [virtual] |
bool Point3dController::Set | ( | Vector3d & | u, |
double | t, | ||
const Point3dState & | x | ||
) | [virtual] |
Feedback controller of the form u = k(t, x)
u | controls |
t | time |
x | state |
Implements gcop::Controller< Point3dState, Vector3d >.
References ad, Kd, Kp, gcop::Point3dState::q, gcop::Point3dState::v, and xd.
Vector3d* gcop::Point3dController::ad |
desired acceleration (zero by default)
Referenced by Set().
Vector3d gcop::Point3dController::Kd |
derivative terms (ones by default)
Referenced by Point3dController(), and Set().
Vector3d gcop::Point3dController::Kp |
proportional terms (ones by default)
Referenced by Point3dController(), and Set().
point mass system
desired state (origin by default)
Referenced by Set().