Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

RunSequenceControl< SequenceSize > Class Template Reference

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

#include <RunSequenceControl.h>

Inheritance diagram for RunSequenceControl< SequenceSize >:

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.

The motion sequence doesn't actually start playing until the emergency stop is deactivated. This avoids either cutting off the beginning of the sequence while still in estop, or having to override the estop, which may be unexpected.

Definition at line 32 of file RunSequenceControl.h.

List of all members.

Public Member Functions

 RunSequenceControl (const std::string &n)
 Constructor, sets filter to *.mot.
virtual ~RunSequenceControl ()
 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 waitingFile
 filename of the motion sequence waiting to load

Constructor & Destructor Documentation

template<unsigned int SequenceSize>
RunSequenceControl< SequenceSize >::RunSequenceControl ( const std::string &  n  ) 

Constructor, sets filter to *.mot.

Definition at line 35 of file RunSequenceControl.h.

template<unsigned int SequenceSize>
virtual RunSequenceControl< SequenceSize >::~RunSequenceControl (  )  [virtual]

destructor

Definition at line 43 of file RunSequenceControl.h.


Member Function Documentation

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

template<unsigned int SequenceSize>
void RunSequenceControl< SequenceSize >::runFile (  )  [protected]

loads the motion sequence and runs it

Definition at line 59 of file RunSequenceControl.h.

Referenced by RunSequenceControl< SequenceSize >::processEvent(), and RunSequenceControl< SequenceSize >::selectedFile().

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

does the actual loading of the MotionSequence

Reimplemented from FileBrowserControl.

Definition at line 68 of file RunSequenceControl.h.


Member Data Documentation

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

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

Definition at line 93 of file RunSequenceControl.h.

Referenced by RunSequenceControl< SequenceSize >::processEvent(), RunSequenceControl< SequenceSize >::selectedFile(), and RunSequenceControl< SequenceSize >::~RunSequenceControl().

template<unsigned int SequenceSize>
std::string RunSequenceControl< SequenceSize >::waitingFile [protected]

filename of the motion sequence waiting to load

Definition at line 94 of file RunSequenceControl.h.

Referenced by RunSequenceControl< SequenceSize >::runFile(), and RunSequenceControl< SequenceSize >::selectedFile().


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

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