Homepage Demos Overview Downloads Tutorials 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 14 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 &event)
 this is to help reduce the twitch at the end (estop tries to go back to its position when this is removed)
virtual void deactivate ()
 called when this control is being popped from the control stack

Protected Member Functions

virtual ControlBaseselectedFile (const std::string &f)
 does the actual loading of the MotionSequence

Protected Attributes

MotionManager::MC_ID estopid
 MC_ID of the e-stop.
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 17 of file LoadPostureControl.h.

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

Destructor.

Definition at line 23 of file LoadPostureControl.h.


Member Function Documentation

virtual void LoadPostureControl::deactivate  )  [inline, virtual]
 

called when this control is being popped from the control stack

Reimplemented from ControlBase.

Definition at line 38 of file LoadPostureControl.h.

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

this is to help reduce the twitch at the end (estop tries to go back to its position when this is removed)

Implements EventListener.

Definition at line 26 of file LoadPostureControl.h.

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

does the actual loading of the MotionSequence

Reimplemented from FileBrowserControl.

Definition at line 44 of file LoadPostureControl.h.


Member Data Documentation

MotionManager::MC_ID LoadPostureControl::estopid [protected]
 

MC_ID of the e-stop.

Definition at line 54 of file LoadPostureControl.h.

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

std::string LoadPostureControl::file [protected]
 

last posture file loaded

Definition at line 55 of file LoadPostureControl.h.

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


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

Tekkotsu v2.2.2
Generated Tue Jan 4 15:45:27 2005 by Doxygen 1.4.0