Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <OutputCmd.h>
Definition at line 6 of file OutputCmd.h.
Public Member Functions | |
OutputCmd () | |
Constructor. | |
OutputCmd (float v) | |
Constructor. | |
OutputCmd (float v, float w) | |
Constructor. | |
OutputCmd (const OutputCmd &a, const OutputCmd &b, float w) | |
Constructor, see set(a,b,w). | |
void | set (float v, float w=1) |
sets the value to v and weight to w | |
void | set (const OutputCmd &a, const OutputCmd &b, float w) |
sets the value to a weighted average of a and b (higher w, more a) | |
void | unset () |
sets value and weight to 0 | |
bool | operator== (const OutputCmd &c) const |
tests for equality of weight and value | |
bool | operator!= (const OutputCmd &c) const |
tests for inequality of weight and value | |
Public Attributes | |
float | value |
value of the output | |
float | weight |
weight to be used in averaging, 0 to "fall through" | |
Static Public Attributes | |
OutputCmd | unused |
handy sometimes for returning a reference to a 0,0 cmd |
|
Constructor.
Definition at line 9 of file OutputCmd.h. |
|
Constructor.
Definition at line 10 of file OutputCmd.h. |
|
Constructor.
Definition at line 11 of file OutputCmd.h. |
|
Constructor, see set(a,b,w).
Definition at line 12 of file OutputCmd.h. |
|
tests for inequality of weight and value
Definition at line 18 of file OutputCmd.h. |
|
tests for equality of weight and value
Definition at line 17 of file OutputCmd.h. |
|
sets the value to a weighted average of a and b (higher w, more a)
Definition at line 15 of file OutputCmd.h. |
|
sets the value to v and weight to w
Definition at line 14 of file OutputCmd.h. Referenced by MotionSequence::calcOutput(), EmergencyStopMC::freezeJoints(), MotionCommand::interpolate(), PostureEngine::LoadBuffer(), EmergencyStopMC::releaseJoints(), PostureEngine::setAverage(), TailWagMC::setTilt(), PostureEngine::takeSnapshot(), and TailWagMC::updateOutputs(). |
|
sets value and weight to 0
Definition at line 16 of file OutputCmd.h. Referenced by PostureEngine::clear(), EmergencyStopMC::freezeJoints(), MotionSequence::getOutputCmd(), EmergencyStopMC::releaseJoints(), TailWagMC::unsetTilt(), MotionSequenceMC< MAXMOVE >::updateOutputs(), and DynamicMotionSequence::updateOutputs(). |
|
handy sometimes for returning a reference to a 0,0 cmd
Definition at line 3 of file OutputCmd.cc. Referenced by HeadPointerMC::getOutputCmd(). |
|
|
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:19 2004 by Doxygen 1.3.4 |