eeros_architecture:sequencer:sequence
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
eeros_architecture:sequencer:sequence [2018/06/05 12:31] – [Blocking and Nonblocking Sequences] graf | eeros_architecture:sequencer:sequence [2018/08/07 12:49] – [Waiting for Sequences to Finish] graf | ||
---|---|---|---|
Line 42: | Line 42: | ||
class MoveSequence : public Sequence { | class MoveSequence : public Sequence { | ||
public: | public: | ||
- | MoveSequence(std:: | + | MoveSequence(std:: |
int action() { | int action() { | ||
robot.moveXY(10, | robot.moveXY(10, | ||
Line 54: | Line 54: | ||
The sequence // | The sequence // | ||
+ | |||
+ | ===== Waiting for Sequences to Finish ===== | ||
+ | Usually at some stage in your program you have to wait for a given sequence to finish until the program should continue. There are two methods to accomplish this, '' | ||
+ | The former waits for a given sequence to finish running. It returns as soon as all the steps defined in the sequence have completed to run. However, it does not terminate the associated thread. This allows to restart the same sequence with '' | ||
+ | On the other hand, '' | ||
+ | IMPORTANT | ||
eeros_architecture/sequencer/sequence.txt · Last modified: 2020/05/22 11:08 by ursgraf