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 [2020/05/22 11:09] – [How to Organize Sequences and Steps] ursgraf | 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 30: | Line 30: | ||
| int action() { | int action() { | ||
| cs.pathPlanner.move(readyPos); | cs.pathPlanner.move(readyPos); | ||
| + | return 0; | ||
| } | } | ||
| Line 44: | Line 45: | ||
| move(readyPos); | move(readyPos); | ||
| if (Sequencer:: | if (Sequencer:: | ||
| + | return 0; | ||
| } | } | ||
| private: | private: | ||
eeros_architecture/sequencer/step_or_sequence.1590138575.txt.gz · Last modified: 2020/05/22 11:09 by ursgraf