Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LoadPostureControl Class Reference

#include <LoadPostureControl.h>

Inheritance diagram for LoadPostureControl:

Inheritance graph
[legend]
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 16 of file LoadPostureControl.h.

Public Member Functions

 LoadPostureControl (const std::string &n, MotionManager::MC_ID estop_id)
 Constructor.
virtual ~LoadPostureControl ()
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 19 of file LoadPostureControl.h.

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

Definition at line 26 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 32 of file LoadPostureControl.h.

void LoadPostureControl::runFile  )  [inline, protected]
 

loads the motion sequence and runs it

Definition at line 41 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 50 of file LoadPostureControl.h.


Member Data Documentation

MotionManager::MC_ID LoadPostureControl::estopid [protected]
 

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

Definition at line 67 of file LoadPostureControl.h.

Referenced by selectedFile().

std::string LoadPostureControl::file [protected]
 

last posture file loaded

Definition at line 69 of file LoadPostureControl.h.

Referenced by runFile(), and selectedFile().

MotionManager::MC_ID LoadPostureControl::ledid [protected]
 

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

Definition at line 68 of file LoadPostureControl.h.

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


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

Tekkotsu v2.4.1
Generated Tue Aug 16 16:35:04 2005 by Doxygen 1.4.4