User Tools

Site Tools


eeros_architecture:sequencer:exceptions

This is an old revision of the document!


Exception Handling

The following examples demonstrate how sequences and their monitors are able to handle various scenarios.

Sequence Supervised by Monitor

The situation below shows a monitor firing during the runtime of a sequence.

Monitor checks condition and causes a switch to an exception sequence after which the original sequence is restarted

As soon as a monitor checking for a certain condition fires, an exception sequence is called. The exception must always be blocking. However, it would be possible to omit it altogether. After this the control goes back to the original sequence. How does this sequence now continue? Every monitor can be assigned one of the following properties:

  • nothing: the sequence continues normally
  • abortOwner: the sequence is aborted and control goes back to its calling sequence
  • restartOwner: the sequence gets restarted, its timeout monitor is reset (that's the situation shown in the figure above)
  • abortCallerOfOwner: TODO
  • restartCallerOfOwner: TODO

The following table shows the behavior for various situations

Propertybehavior of sequence after monitor firesexception sequence if present
nothingsequence continues normallyexception sequence will run for each further step
abortOwnerremaining steps abortedexception sequence will run once
restartOwnerremaining steps aborted, sequence restarts with first stepexception sequence will run once, after restarting will run again if monitor fires again

Sequence Supervised by more than one Monitor

A sequence can be checked by more than one monitor where each monitor checks for a certain condition to be met. While a first monitor could check for a timeout condition a second could supervise whether a payload of a robot didn't get lost.

Two monitors checking the same sequence. While monitor 1 causes the sequence to abort, the second restarts the sequence in case of a condition to be met.

Please note, that each monitor can have a different effect on its associated sequence.

eeros_architecture/sequencer/exceptions.1503256696.txt.gz · Last modified: 2017/08/20 21:18 by graf