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

RunSequenceControl< SequenceSize > Class Template Reference

#include <RunSequenceControl.h>

Inheritance diagram for RunSequenceControl< SequenceSize >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<unsigned int SequenceSize>
class RunSequenceControl< SequenceSize >

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

The template parameter is passed to MotionSequenceMC's template parameter in order to specify the number of keyframes to reserve - larger values use more memory, but will allow you to load more complicated sequences.

Definition at line 17 of file RunSequenceControl.h.

Public Member Functions

 RunSequenceControl (const std::string &n, MotionManager::MC_ID estop_id)
 Constructor, sets filter to *.mot.

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)


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 emergency stop (so we can reset it to the end frame).


Constructor & Destructor Documentation

template<unsigned int SequenceSize>
RunSequenceControl< SequenceSize >::RunSequenceControl const std::string &  n,
MotionManager::MC_ID  estop_id
[inline]
 

Constructor, sets filter to *.mot.

Definition at line 20 of file RunSequenceControl.h.

References config, RunSequenceControl< SequenceSize >::estopid, FileBrowserControl::root, and FileBrowserControl::setFilter().


Member Function Documentation

template<unsigned int SequenceSize>
virtual void RunSequenceControl< SequenceSize >::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 27 of file RunSequenceControl.h.

References erouter, RunSequenceControl< SequenceSize >::estopid, and EventRouter::removeListener().

template<unsigned int SequenceSize>
virtual ControlBase* RunSequenceControl< SequenceSize >::selectedFile const std::string &  f  )  [inline, protected, virtual]
 

does the actual loading of the MotionSequence

Reimplemented from FileBrowserControl.

Definition at line 36 of file RunSequenceControl.h.

References EventRouter::addListener(), MotionManager::addMotion(), TimeET::Age(), EventBase::deactivateETID, erouter, RunSequenceControl< SequenceSize >::estopid, MotionManager::kEmergencyPriority, MotionManager::MC_ID, motman, and EventBase::motmanEGID.


Member Data Documentation

template<unsigned int SequenceSize>
MotionManager::MC_ID RunSequenceControl< SequenceSize >::estopid [protected]
 

MC_ID of the emergency stop (so we can reset it to the end frame).

Definition at line 46 of file RunSequenceControl.h.


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