In file /home/blah/darwin2k/src/d2k/ctrl/jointController.h:

class jointController

A controller allowing different control modes for each joint.

Inheritance:


Public Fields

[more]d2kCtrlStatus status
current status.
[more]ptrList controllers
list of singleJointControllers, one for each of the robot's joint DOFs
[more]char gainFile[200]
name of file containing gain information, if any
[more]singleJointController** jointToCtrl
mapping from joint to controller
[more]double currentTime
current simulation time

Public Methods

[more] jointController(void)
constructor
[more]int readGains(FILE* fp)
reads gains for all singleJointControllers from a file
[more]int writeGains(FILE* fp)
writes gains for all singleJointControllers to a file
[more]singleJointController* ctrl(int i)
returns the i'th singleJointController
[more]singleJointController* ctrl(joint* jt)
returns the singleJointController for the corresponding joint


Inherited from controller:

Public Fields

ovector accCmd
ovector Tcmd
omechanism* mech
odynoTimer* timer
odofInfluence* inf
oint alwaysUpdate

Public Methods

ovirtual double maxDt(void)
ovirtual int computeTorqueCommand(double currentTime, int &computedAcc)
ovirtual int computeAccelerationCommand(double currentTime)
ovirtual int madeProgress(double currentTime)
ovirtual int reset(void)

Public Members

o inherited from d2kComponent
o not currently used

Protected Fields

odouble _maxDt


Inherited from d2kComponent:

Public Fields

od2kSimulator* sim
oconfiguration* cfg
oconst char* label
oint active

Public Methods

ovirtual int minCfgs(void) const
ovirtual int maxCfgs(void) const
ovirtual const char* getCfgName(int i)
ovirtual int readParams(paramParser* parser)
ovirtual int setVariables(const ptrList* taskParamRecs)
ovirtual int simInit(d2kSimulator* Sim)
ovirtual int init(ptrList* Cfgs)
ovirtual int forceCfgResolution(void)
ovirtual int cleanup(void)
ovirtual int update(int &violated)
ovirtual const cfgLabelRecord* getLabelRec(int i) const


Inherited from synObject:

Public Fields

ostatic int staticClassID
oint objectID
oint verboseLevel

Public Methods

ovirtual const char* className(void) const
ovirtual synObject* copy(void) const
ovirtual int isOfType(int typeNum, int derivedOk)
ostatic int setStaticClassID(void)
ovirtual int classID(void) const


Documentation

A controller allowing different control modes for each joint.

File variables

The file format for the gain file consists of a number of identical entries, one for each of the robot's joints. The order of the entries is the same as the order of the corresponding joints in the configuration's mechanism. Each entry must contain the following floating-point values specified in the order below:
kp, kv, ki, kvi, thresh, kat, kvt, maxAcc
See the singleJointController class for descriptions of these variables.

Also see controller class for other file variables.

od2kCtrlStatus status
current status. Computed from singleJointControllers.

optrList controllers
list of singleJointControllers, one for each of the robot's joint DOFs

ochar gainFile[200]
name of file containing gain information, if any

osingleJointController** jointToCtrl
mapping from joint to controller

odouble currentTime
current simulation time

o jointController(void)
constructor

oint readGains(FILE* fp)
reads gains for all singleJointControllers from a file

oint writeGains(FILE* fp)
writes gains for all singleJointControllers to a file

osingleJointController* ctrl(int i)
returns the i'th singleJointController

osingleJointController* ctrl(joint* jt)
returns the singleJointController for the corresponding joint


Direct child classes:
roverController

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.