User Tools

Site Tools


eeros_architecture:sequencer:step_or_sequence

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:step_or_sequence [2019/03/21 07:56] – [Alternative Solution] grafeeros_architecture:sequencer:step_or_sequence [2026/02/19 15:09] (current) ursgraf
Line 1: Line 1:
 ====== How to Organize Sequences and Steps ====== ====== How to Organize Sequences and Steps ======
-Sometimes its not obvious what sould go into a separate step and what to pack directly into a sequence. Let's study the following example. \\+Sometimes its not obvious what should go into a separate step and what to pack directly into a sequence. Let's study the following example. \\
 A robot finished a homing sequence. It should move to a ready position before further action can happen. For this purpose a sequence ''readying'' is implemented as follows: A robot finished a homing sequence. It should move to a ready position before further action can happen. For this purpose a sequence ''readying'' is implemented as follows:
 <code cpp> <code cpp>
Line 9: Line 9:
   int action() {   int action() {
     cs.pathPlanner.move(readyPos);  // we assume that the control system comprises of a path planner     cs.pathPlanner.move(readyPos);  // we assume that the control system comprises of a path planner
 +    return 0;
   }   }
   
Line 29: Line 30:
   int action() {   int action() {
     cs.pathPlanner.move(readyPos);  // we assume that the control system comprises of a path planner     cs.pathPlanner.move(readyPos);  // we assume that the control system comprises of a path planner
 +    return 0;
   }   }
   
Line 43: Line 45:
     move(readyPos);     move(readyPos);
     if (Sequencer::running) safetySystem->triggerEvent(safetyProperties->readyDone);     if (Sequencer::running) safetySystem->triggerEvent(safetyProperties->readyDone);
 +    return 0;
   }   }
 private: private:
eeros_architecture/sequencer/step_or_sequence.1553151394.txt.gz · Last modified: 2019/03/21 07:56 by graf