eeros_architecture:safety_system:properties
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| eeros_architecture:safety_system:properties [2024/06/10 09:45] – [Critical Inputs and Outputs] ursgraf | eeros_architecture:safety_system:properties [2025/01/31 11:53] (current) – [Level Actions] ursgraf | ||
|---|---|---|---|
| Line 82: | Line 82: | ||
| </ | </ | ||
| The method // | The method // | ||
| + | |||
| + | === Entry and Exit Actions === | ||
| + | You also have the possibility to define an action which is executed when a safety level is entered. That means when the safety system switches to this level. | ||
| + | <code cpp> | ||
| + | slOff.setEntryAction([this](SafetyContext* privateContext) { | ||
| + | // do anything | ||
| + | }); | ||
| + | </ | ||
| + | |||
| + | Further, you can define an action which is executed when a safety level is left. That means when the safety system switches from this level to another level. | ||
| + | <code cpp> | ||
| + | slOff.setExitAction([this](SafetyContext* privateContext) { | ||
| + | // do anything | ||
| + | }); | ||
| + | </ | ||
| === Counter === | === Counter === | ||
eeros_architecture/safety_system/properties.1718005538.txt.gz · Last modified: 2024/06/10 09:45 by ursgraf
                
                