GCOP  1.0
Public Member Functions | Public Attributes
gcop::Point3dController Class Reference

#include <point3dcontroller.h>

Inheritance diagram for gcop::Point3dController:
Inheritance graph
[legend]
Collaboration diagram for gcop::Point3dController:
Collaboration graph
[legend]

List of all members.

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 Point3dsys
 point mass system
Point3dStatexd
 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)

Detailed Description

Basic PD controller for a point-mass system in 3d

Author: Marin Kobilarov


Constructor & Destructor Documentation

Point3dController::Point3dController ( const Point3d sys,
Point3dState xd = 0,
Vector3d *  ad = 0 
)

Point3D PD controller

Parameters:
sysmulti-body system
xddesired state (optional, set to origin by default)
addesired acceleration (optional, set to zero by default)

References Kd, and Kp.


Member Function Documentation

bool Point3dController::Set ( Vector3d &  u,
double  t,
const Point3dState x 
) [virtual]

Feedback controller of the form u = k(t, x)

Parameters:
ucontrols
ttime
xstate
Returns:
true if arguments are valid, false if e.g. x is infeasible

Implements gcop::Controller< Point3dState, Vector3d >.

References ad, Kd, Kp, gcop::Point3dState::q, gcop::Point3dState::v, and xd.


Member Data Documentation

desired acceleration (zero by default)

Referenced by Set().

derivative terms (ones by default)

Referenced by Point3dController(), and Set().

proportional terms (ones by default)

Referenced by Point3dController(), and Set().

point mass system

desired state (origin by default)

Referenced by Set().


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