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

#include <mbscontroller.h>

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

List of all members.

Public Member Functions

 MbsController (const Mbs &sys, MbsState *xd=0, VectorXd *ad=0)
virtual bool Set (VectorXd &u, double t, const MbsState &x)
virtual ~MbsController ()

Public Attributes

const Mbssys
 multi-body system
MbsStatexd
 desired state (origin by default)
VectorXd * ad
 desired acceleration (zero by default)
VectorXd Kp
 proportional terms (ones by default)
VectorXd Kd
 derivative terms (ones by default)

Constructor & Destructor Documentation

MbsController::MbsController ( const Mbs sys,
MbsState xd = 0,
VectorXd *  ad = 0 
)

MBS 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 MbsController::Set ( VectorXd &  u,
double  t,
const MbsState 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< MbsState, VectorXd >.

References ad, gcop::Mbs::Bias(), gcop::MbsState::dr, gcop::Mbs::fixed, gcop::MbsState::gs, gcop::SE3::Instance(), gcop::SE3::inv(), Kd, Kp, gcop::SE3::log(), gcop::Mbs::Mass(), gcop::Mbs::nb, gcop::MbsState::r, sys, gcop::MbsState::vs, and xd.


Member Data Documentation

desired acceleration (zero by default)

Referenced by Set().

derivative terms (ones by default)

Referenced by MbsController(), and Set().

proportional terms (ones by default)

Referenced by MbsController(), and Set().

multi-body system

Referenced by Set().

desired state (origin by default)

Referenced by Set().


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