eeros_architecture:sequencer:step_or_sequence
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| eeros_architecture:sequencer:step_or_sequence [2019/03/21 07:56] – [Alternative Solution] graf | eeros_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 |
| A robot finished a homing sequence. It should move to a ready position before further action can happen. For this purpose a sequence '' | A robot finished a homing sequence. It should move to a ready position before further action can happen. For this purpose a sequence '' | ||
| <code cpp> | <code cpp> | ||
| Line 9: | Line 9: | ||
| int action() { | int action() { | ||
| cs.pathPlanner.move(readyPos); | cs.pathPlanner.move(readyPos); | ||
| + | return 0; | ||
| } | } | ||
| Line 29: | Line 30: | ||
| int action() { | int action() { | ||
| cs.pathPlanner.move(readyPos); | cs.pathPlanner.move(readyPos); | ||
| + | return 0; | ||
| } | } | ||
| Line 43: | Line 45: | ||
| move(readyPos); | move(readyPos); | ||
| if (Sequencer:: | if (Sequencer:: | ||
| + | return 0; | ||
| } | } | ||
| private: | private: | ||
eeros_architecture/sequencer/step_or_sequence.1553151394.txt.gz · Last modified: 2019/03/21 07:56 by graf