Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

MotionExecThread Class Reference

description of MotionExecThread More...

#include <MotionExecThread.h>

Inheritance diagram for MotionExecThread:

Detailed Description

description of MotionExecThread

Definition at line 20 of file MotionExecThread.h.

List of all members.

Public Member Functions

 MotionExecThread (Resource &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 ()
void applyPostureFeedback ()
 writes output values, delayed by SharedGlobals::MotionSimConfig::feedbackDelay, as "sensor" values for outputs without real feedback into SharedGlobals::sensorState

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

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

Constructor & Destructor Documentation

MotionExecThread ( Resource bl  ) 

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 (  )  [virtual]

Definition at line 34 of file MotionExecThread.h.


Member Function Documentation

void applyPostureFeedback (  ) 

writes output values, delayed by SharedGlobals::MotionSimConfig::feedbackDelay, as "sensor" values for outputs without real feedback into SharedGlobals::sensorState

Definition at line 147 of file MotionExecThread.cc.

Referenced by poll().

static unsigned int getNextMotion (  )  [static]

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

Definition at line 51 of file MotionExecThread.h.

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

void interrupted (  )  [protected, virtual]

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

Reimplemented from PollThread.

Definition at line 141 of file MotionExecThread.cc.

Referenced by launched().

bool launched (  )  [protected, virtual]

Reimplemented from Thread.

Definition at line 125 of file MotionExecThread.cc.

bool poll (  )  [virtual]

Reimplemented from PollThread.

Definition at line 33 of file MotionExecThread.cc.

Referenced by Motion::gotWakeup().

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().


Member Data Documentation

unsigned int lastPoll [protected]

Definition at line 69 of file MotionExecThread.h.

Referenced by applyPostureFeedback(), and poll().

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

Definition at line 67 of file MotionExecThread.h.

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

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

Definition at line 66 of file MotionExecThread.h.

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

Resource& motionLock [protected]

a lock on the motions which should be obtained before updating

Definition at line 64 of file MotionExecThread.h.

Referenced by applyPostureFeedback(), and poll().


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

Tekkotsu Hardware Abstraction Layer 5.1CVS
Generated Mon May 9 05:01:41 2016 by Doxygen 1.6.3