User Tools

Site Tools


eeros_architecture:sequencer:sequencer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eeros_architecture:sequencer:sequencer [2021/04/20 15:27] – [Sequencer] ursgrafeeros_architecture:sequencer:sequencer [2021/12/23 17:40] (current) ursgraf
Line 2: Line 2:
 ====== Sequencer ====== ====== Sequencer ======
 The sequencer is responsible to run the main sequence. There is a single instance of the sequencer and therefore only one main sequence. Further, the sequencer contains a list with all sequences. Whenever you define a sequence it will automatically be added to this list. The list helps to retrieve a reference to a given sequence. This can be helpful is you wish to pass information into this sequence.\\ The sequencer is responsible to run the main sequence. There is a single instance of the sequencer and therefore only one main sequence. Further, the sequencer contains a list with all sequences. Whenever you define a sequence it will automatically be added to this list. The list helps to retrieve a reference to a given sequence. This can be helpful is you wish to pass information into this sequence.\\
-First, get the instance of the sequencer. +First, get the instance of the sequencer. Make sure to set the default logger output to an output stream, as the sequencer uses loggers
 <code cpp> <code cpp>
 +  Logger::setDefaultStreamLogger(std::cout);
   auto& sequencer = Sequencer::instance();               // get instance   auto& sequencer = Sequencer::instance();               // get instance
 </code> </code>
Line 10: Line 11:
 <code cpp> <code cpp>
   MainSequence mainSequence("Main Sequence", sequencer); // define main sequence   MainSequence mainSequence("Main Sequence", sequencer); // define main sequence
-  sequencer.addSequence(mainSequence);                   // add it to the sequencer 
   mainSequence();                                        // start it   mainSequence();                                        // start it
   ...                                                    // do other things such as starting the executor   ...                                                    // do other things such as starting the executor
eeros_architecture/sequencer/sequencer.1618925265.txt.gz · Last modified: 2021/04/20 15:27 by ursgraf