Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
RunSequenceControl< SequenceSize > Class Template Reference#include <RunSequenceControl.h>
Inheritance diagram for RunSequenceControl< SequenceSize >:
![]() Detailed Descriptiontemplate<unsigned int SequenceSize>
Upon activation, loads a position from a file name read from cin (stored in ms/data/motion...).
|
Public Member Functions | |
RunSequenceControl (const std::string &n, MotionManager::MC_ID estop_id) | |
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 ControlBase * | selectedFile (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 tell if it's active and wait until it's turned off). | |
MotionManager::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 |
RunSequenceControl< SequenceSize >::RunSequenceControl | ( | const std::string & | n, | |
MotionManager::MC_ID | estop_id | |||
) | [inline] |
virtual RunSequenceControl< SequenceSize >::~RunSequenceControl | ( | ) | [inline, virtual] |
virtual void RunSequenceControl< SequenceSize >::processEvent | ( | const EventBase & | ) | [inline, 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.
void RunSequenceControl< SequenceSize >::runFile | ( | ) | [inline, 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().
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 68 of file RunSequenceControl.h.
MotionManager::MC_ID RunSequenceControl< SequenceSize >::estopid [protected] |
MC_ID of the emergency stop (so we can tell if it's active and wait until it's turned off).
Definition at line 93 of file RunSequenceControl.h.
Referenced by RunSequenceControl< SequenceSize >::selectedFile().
MotionManager::MC_ID RunSequenceControl< SequenceSize >::ledid [protected] |
MC_ID of the led we use to signal there's a MotionSequence lined up.
Definition at line 94 of file RunSequenceControl.h.
Referenced by RunSequenceControl< SequenceSize >::processEvent(), RunSequenceControl< SequenceSize >::selectedFile(), and RunSequenceControl< SequenceSize >::~RunSequenceControl().
std::string RunSequenceControl< SequenceSize >::waitingFile [protected] |
filename of the motion sequence waiting to load
Definition at line 95 of file RunSequenceControl.h.
Referenced by RunSequenceControl< SequenceSize >::runFile(), and RunSequenceControl< SequenceSize >::selectedFile().
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:40 2007 by Doxygen 1.5.4 |