Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

MotionExecThread Class Reference

#include <MotionExecThread.h>

Inheritance diagram for MotionExecThread:

List of all members.


Detailed Description

description of MotionExecThread

Definition at line 20 of file MotionExecThread.h.


Public Member Functions

 MotionExecThread (EntryPoint &bl)
 constructor, enables trackPollTime, but not auto-start (call reset() when you're ready to start it)
virtual ~MotionExecThread ()
virtual void reset ()
 starts and stops thread as needed, or interrupts thread to reset sleep time if already running
virtual bool poll ()
const PostureEnginegetPostureFeedback ()
 returns a posture storing the "current" output values, delayed by SharedGlobals::MotionSimConfig::feedbackDelay

Static Public Member Functions

static unsigned int getNextMotion ()
 returns time (in milliseconds) of next motion frame -- multiples of FrameTime*NumFrames

Protected Member Functions

virtual bool launched ()
virtual void interrupted ()
 resets PollThread::delay and PollThread::period to appropriate values for current SharedGlobals::timeScale value

Protected Attributes

EntryPointmotionLock
 a lock on the motions which should be obtained before updating
std::list< float(*) motionBuffers [NumOutputs]>
std::list< float(*) motionBufferPos [NumOutputs]>::iterator
PostureEngine curPose
unsigned int lastPoll

Constructor & Destructor Documentation

MotionExecThread ( EntryPoint bl  )  [inline]

constructor, enables trackPollTime, but not auto-start (call reset() when you're ready to start it)

Definition at line 24 of file MotionExecThread.h.

virtual ~MotionExecThread (  )  [inline, virtual]

Definition at line 35 of file MotionExecThread.h.


Member Function Documentation

void reset (  )  [virtual]

starts and stops thread as needed, or interrupts thread to reset sleep time if already running

Definition at line 15 of file MotionExecThread.cc.

Referenced by Motion::gotWakeup(), and Motion::run().

bool poll (  )  [virtual]

Reimplemented from PollThread.

Definition at line 32 of file MotionExecThread.cc.

Referenced by Motion::gotWakeup().

static unsigned int getNextMotion (  )  [inline, static]

returns time (in milliseconds) of next motion frame -- multiples of FrameTime*NumFrames

Definition at line 52 of file MotionExecThread.h.

Referenced by launched(), poll(), and reset().

const PostureEngine & getPostureFeedback (  ) 

returns a posture storing the "current" output values, delayed by SharedGlobals::MotionSimConfig::feedbackDelay

Definition at line 136 of file MotionExecThread.cc.

Referenced by Motion::gotSensors().

bool launched (  )  [protected, virtual]

Reimplemented from Thread.

Definition at line 114 of file MotionExecThread.cc.

void interrupted (  )  [protected, virtual]

resets PollThread::delay and PollThread::period to appropriate values for current SharedGlobals::timeScale value

Reimplemented from PollThread.

Definition at line 130 of file MotionExecThread.cc.

Referenced by launched().


Member Data Documentation

EntryPoint& motionLock [protected]

a lock on the motions which should be obtained before updating

Definition at line 65 of file MotionExecThread.h.

Referenced by getPostureFeedback(), and poll().

std::list<float(*) motionBuffers[NumOutputs]> [protected]

Definition at line 67 of file MotionExecThread.h.

Referenced by getPostureFeedback(), MotionExecThread(), poll(), and ~MotionExecThread().

std::list<float(*) motionBufferPos[NumOutputs]>::iterator [protected]

Definition at line 68 of file MotionExecThread.h.

Referenced by getPostureFeedback(), MotionExecThread(), and poll().

PostureEngine curPose [protected]

Definition at line 69 of file MotionExecThread.h.

Referenced by getPostureFeedback(), and MotionExecThread().

unsigned int lastPoll [protected]

Definition at line 71 of file MotionExecThread.h.

Referenced by getPostureFeedback(), and poll().


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

Tekkotsu Hardware Abstraction Layer 4.0
Generated Thu Nov 22 01:01:22 2007 by Doxygen 1.5.4