Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

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 13 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 16 of file LoadPostureControl.h.

References config, estopid, file, FileBrowserControl::root, and FileBrowserControl::setFilter().

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

Destructor.

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

References erouter, and EventRouter::forgetListener().

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 25 of file LoadPostureControl.h.

References erouter, estopid, file, and EventRouter::removeListener().

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

does the actual loading of the MotionSequence

Reimplemented from FileBrowserControl.

Definition at line 43 of file LoadPostureControl.h.

References EventRouter::addListener(), MotionManager::addMotion(), EventBase::deactivateETID, erouter, estopid, file, MotionManager::kEmergencyPriority, MotionManager::MC_ID, motman, and EventBase::motmanEGID.


Member Data Documentation

MotionManager::MC_ID LoadPostureControl::estopid [protected]
 

MC_ID of the e-stop.

Definition at line 53 of file LoadPostureControl.h.

std::string LoadPostureControl::file [protected]
 

last posture file loaded

Definition at line 54 of file LoadPostureControl.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.4
Generated Sat Jul 19 00:09:01 2003 by Doxygen 1.3.2