OutputCmd Class Reference#include <OutputCmd.h>
List of all members.
Detailed Description
This object holds all the information needed to control a single output.
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 |
static OutputCmd | unused |
| handy sometimes for returning a reference to a 0,0 cmd
|
Constructor & Destructor Documentation
OutputCmd::OutputCmd |
( |
|
) |
[inline] |
|
OutputCmd::OutputCmd |
( |
float |
v |
) |
[inline] |
|
OutputCmd::OutputCmd |
( |
float |
v, |
|
|
float |
w |
|
) |
[inline] |
|
|
Constructor, see set(a,b,w).
Definition at line 12 of file OutputCmd.h. |
Member Function Documentation
bool OutputCmd::operator!= |
( |
const OutputCmd & |
c |
) |
const [inline] |
|
|
tests for inequality of weight and value
Definition at line 18 of file OutputCmd.h. |
bool OutputCmd::operator== |
( |
const OutputCmd & |
c |
) |
const [inline] |
|
|
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. |
void OutputCmd::set |
( |
float |
v, |
|
|
float |
w = 1 |
|
) |
[inline] |
|
void OutputCmd::unset |
( |
|
) |
[inline] |
|
Member Data Documentation
|
value of the output
Definition at line 20 of file OutputCmd.h.
Referenced by PostureEngine::avgdiff(), PostureEngine::diff(), EmergencyStopMC::freezeJoints(), MotionManager::getOutputs(), TailWagMC::getTilt(), HeadPointerMC::HeadPointerMC(), MotionCommand::interpolate(), HeadPointerMC::markDirty(), PostureEngine::maxdiff(), OldHeadPointerMC::OldHeadPointerMC(), operator!=(), operator==(), MotionSequenceEngine::resume(), set(), PostureEngine::setAverage(), PostureEngine::setCombine(), PostureMC::setDirty(), MotionManager::setOutput(), PostureEngine::takeSnapshot(), unset(), PostureMC::updateOutputs(), OldHeadPointerMC::updateOutputs(), HeadPointerMC::updateOutputs(), and EmergencyStopMC::updateOutputs(). |
|
weight to be used in averaging, 0 to "fall through"
Definition at line 21 of file OutputCmd.h.
Referenced by PostureEngine::avgdiff(), MotionSequenceEngine::compress(), PostureEngine::diff(), EmergencyStopMC::freezeJoints(), PostureEngine::getBinSize(), MotionSequenceEngine::getBinSize(), MotionManager::getOutputs(), MotionCommand::interpolate(), MotionSequenceEngine::makeSafe(), PostureEngine::maxdiff(), operator!=(), operator==(), MotionSequenceEngine::overlayPose(), MotionSequenceEngine::resume(), PostureEngine::SaveBuffer(), MotionSequenceEngine::SaveBuffer(), set(), PostureEngine::setAverage(), PostureEngine::setCombine(), MotionManager::setOutput(), PostureEngine::setOverlay(), PostureEngine::setUnderlay(), OldHeadPointerMC::setWeight(), HeadPointerMC::setWeight(), PostureEngine::setWeights(), LedMC::setWeights(), unset(), TailWagMC::updateOutputs(), and LedMC::updateOutputs(). |
The documentation for this class was generated from the following files:
|