getting_started:tutorials:sequencer4
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| getting_started:tutorials:sequencer4 [2018/06/28 09:55] – graf | getting_started:tutorials:sequencer4 [2021/03/31 15:40] (current) – [Monitor Checking two Sequences] ursgraf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== How to Organize Sequences and Steps ====== | ||
| - | <code cpp> | ||
| - | class Readying : public Sequence { | ||
| - | public: | ||
| - | Readying(std:: | ||
| - | int action() { | + | ====== Sequence with two Monitors ====== | 
| - | cs.setMaxSpeed(1.0); | + | |
| - | cs.pathPlanner.move(readyPos); | + | |
| - | } | + | |
| - | + | ||
| - | bool checkExitCondition() { | + | |
| - | bool end = cs-> | + | |
| - | if (end) safetySystem-> | + | |
| - | return end; | + | |
| - | } | + | |
| - | }; | + | |
| - | </ | + | |
| + | In the EEROS library you will find a directory with examples. For this example see [[https:// | ||
| - | < | + | Open a shell in the build directory of your EEROS library and run | 
| - | class Move : public Step { | + | < | 
| - | int action() { | + | $ ./ | 
| - | cs.setMaxSpeed(1.0); | + | </ | 
| - | cs.pathPlanner.move(readyPos); | + | |
| - | } | + | This example shows a sequence with two associated monitors. The '' | 
| - | + | [{{ .: | |
| - | bool checkExitCondition() { | + | \\ | 
| - |  | + | |
| - | } | + | |
| - | } | + | |
| + | ==== Altering the Monitor Behavior ==== | ||
| + | Change | ||
| + | If you change the behavior of the timeout monitor to '' | ||
| + | |||
| + | ===== Monitor Checking two Sequences ===== | ||
| + | The next example is [[https:// | ||
| + | Open a shell in the build directory of your EEROS library and run | ||
| + | <code> | ||
| + | $ ./ | ||
| + | </ | ||
| + | |||
| + | This example shows a sequence with two associated monitors. The '' | ||
| + | [{{ .: | ||
| + | \\ | ||
| - | class Readying : public Sequence { | ||
| - | public: | ||
| - | Readying(std:: | ||
| - | int action() { | ||
| - | move(readyPos); | ||
| - | safetySystem-> | ||
| - | } | ||
| - | |||
| - | bool checkExitCondition() { | ||
| - | bool end = cs-> | ||
| - | if (end) safetySystem-> | ||
| - | return end; | ||
| - | } | ||
| - | }; | ||
| - | </ | ||
getting_started/tutorials/sequencer4.1530172531.txt.gz · Last modified: 2018/06/28 09:55 (external edit)
                
                