Homepage Demos Overview Downloads Tutorials Reference
Credits

RemoteControllerMC Class Reference

#include <RemoteControllerMC.h>

Inheritance diagram for RemoteControllerMC:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class is used for setting all PIDJoints to a certain set of values (not the gains, just the joint positions).

This is PostureMC's little brother. Not quite so full of features, but straightforward and easy to understand. (hopefully)

Definition at line 11 of file RemoteControllerMC.h.

Public Member Functions

 RemoteControllerMC ()
 constructor, defaults to active, all joints at 0
virtual ~RemoteControllerMC ()
 destructor
void setDirty ()
 sets dirty flag to true
Inherited:
Updates all PIDJoint values

virtual int updateOutputs ()
 is called once per update cycle, can do any processing you need to change your priorities or set output commands on the MotionManager
virtual int isDirty ()
 true if a change has been made since the last updateJointCmds() and we're active
virtual int isAlive ()
 always true

Public Attributes

float cmds [NumPIDJoints]
 current vector of positions

Protected Attributes

bool dirty
 true if a change has been made since last call to updateJointCmds()
bool active
 set by accessor functions, defaults to true


Constructor & Destructor Documentation

RemoteControllerMC::RemoteControllerMC  )  [inline]
 

constructor, defaults to active, all joints at 0

Definition at line 14 of file RemoteControllerMC.h.

virtual RemoteControllerMC::~RemoteControllerMC  )  [inline, virtual]
 

destructor

Definition at line 18 of file RemoteControllerMC.h.


Member Function Documentation

virtual int RemoteControllerMC::isAlive  )  [inline, virtual]
 

always true

Implements MotionCommand.

Definition at line 31 of file RemoteControllerMC.h.

virtual int RemoteControllerMC::isDirty  )  [inline, virtual]
 

true if a change has been made since the last updateJointCmds() and we're active

Implements MotionCommand.

Definition at line 30 of file RemoteControllerMC.h.

Referenced by updateOutputs().

void RemoteControllerMC::setDirty  )  [inline]
 

sets dirty flag to true

Definition at line 34 of file RemoteControllerMC.h.

Referenced by Aibo3DControllerBehavior::updateRC().

virtual int RemoteControllerMC::updateOutputs  )  [inline, virtual]
 

is called once per update cycle, can do any processing you need to change your priorities or set output commands on the MotionManager

Returns:
zero if no changes were made, non-zero otherwise
See also:
RobotInfo::NumFrames

RobotInfo::FrameTime

Implements MotionCommand.

Definition at line 22 of file RemoteControllerMC.h.


Member Data Documentation

bool RemoteControllerMC::active [protected]
 

set by accessor functions, defaults to true

Definition at line 39 of file RemoteControllerMC.h.

Referenced by RemoteControllerMC().

float RemoteControllerMC::cmds[NumPIDJoints]
 

current vector of positions

Definition at line 35 of file RemoteControllerMC.h.

Referenced by RemoteControllerMC(), updateOutputs(), and Aibo3DControllerBehavior::updateRC().

bool RemoteControllerMC::dirty [protected]
 

true if a change has been made since last call to updateJointCmds()

Definition at line 38 of file RemoteControllerMC.h.

Referenced by isDirty(), RemoteControllerMC(), setDirty(), and updateOutputs().


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

Tekkotsu v2.2.1
Generated Tue Nov 23 16:37:51 2004 by Doxygen 1.3.9.1