Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LoadPostureControl Class Reference

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

#include <LoadPostureControl.h>

Inheritance diagram for LoadPostureControl:

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.

List of all members.

Public Member Functions

 LoadPostureControl (const std::string &n)
 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

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  ) 

Constructor.

Definition at line 21 of file LoadPostureControl.h.

virtual LoadPostureControl::~LoadPostureControl (  )  [virtual]

destructor

Definition at line 29 of file LoadPostureControl.h.


Member Function Documentation

virtual void LoadPostureControl::processEvent ( const EventBase  )  [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 (  )  [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  )  [protected, virtual]

does the actual loading of the MotionSequence

Reimplemented from FileBrowserControl.

Definition at line 54 of file LoadPostureControl.h.


Member Data Documentation

std::string LoadPostureControl::file [protected]

last posture file loaded

Definition at line 80 of file LoadPostureControl.h.

Referenced by runFile(), and selectedFile().

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

Definition at line 79 of file LoadPostureControl.h.

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


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:12 2016 by Doxygen 1.6.3