Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LoadPostureControl Class Reference

#include <LoadPostureControl.h>

Inheritance diagram for LoadPostureControl:

List of all members.


Detailed Description

Upon activation, loads a position from a file name read from cin (stored in ms/data/motion...).

Should switch this to use a MotionSequence so it can move more leisurely and not "snap" to position

Definition at line 18 of file LoadPostureControl.h.


Public Member Functions

 LoadPostureControl (const std::string &n, MotionManager::MC_ID estop_id)
 Constructor.
virtual ~LoadPostureControl ()
 destructor
virtual void processEvent (const EventBase &)
 only called when e-stop has been turned off and we're waiting to load a file

Protected Member Functions

void runFile ()
 loads the motion sequence and runs it
virtual ControlBaseselectedFile (const std::string &f)
 does the actual loading of the MotionSequence

Protected Attributes

MotionManager::MC_ID estopid
 MC_ID of the emergency stop (so we can tell if it's active and wait until it's turned off).
MotionManager::MC_ID ledid
 MC_ID of the led we use to signal there's a MotionSequence lined up.
std::string file
 last posture file loaded

Constructor & Destructor Documentation

LoadPostureControl::LoadPostureControl ( const std::string &  n,
MotionManager::MC_ID  estop_id 
) [inline]

Constructor.

Definition at line 21 of file LoadPostureControl.h.

virtual LoadPostureControl::~LoadPostureControl (  )  [inline, virtual]

destructor

Definition at line 29 of file LoadPostureControl.h.


Member Function Documentation

virtual void LoadPostureControl::processEvent ( const EventBase  )  [inline, virtual]

only called when e-stop has been turned off and we're waiting to load a file

Implements EventListener.

Definition at line 36 of file LoadPostureControl.h.

void LoadPostureControl::runFile (  )  [inline, protected]

loads the motion sequence and runs it

Definition at line 45 of file LoadPostureControl.h.

Referenced by processEvent(), and selectedFile().

virtual ControlBase* LoadPostureControl::selectedFile ( const std::string &  f  )  [inline, protected, virtual]

does the actual loading of the MotionSequence

Reimplemented from FileBrowserControl.

Definition at line 54 of file LoadPostureControl.h.


Member Data Documentation

MC_ID of the emergency stop (so we can tell if it's active and wait until it's turned off).

Definition at line 79 of file LoadPostureControl.h.

Referenced by selectedFile().

MC_ID of the led we use to signal there's a MotionSequence lined up.

Definition at line 80 of file LoadPostureControl.h.

Referenced by processEvent(), selectedFile(), and ~LoadPostureControl().

std::string LoadPostureControl::file [protected]

last posture file loaded

Definition at line 81 of file LoadPostureControl.h.

Referenced by runFile(), and selectedFile().


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:28 2007 by Doxygen 1.5.4