getting_started:tutorials:mockrobot
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| getting_started:tutorials:mockrobot [2020/12/03 13:22] – [Sequencer] ursgraf | getting_started:tutorials:mockrobot [2026/01/13 08:33] (current) – [Control System] ursgraf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Mock Robot Example ====== | ====== Mock Robot Example ====== | ||
| - | This tutorial demonstrates an EEROS application complete with a control system, a safety system, and a sequencer. You can find the code in the directory with the examples. Start the program with | + | This tutorial demonstrates an EEROS application complete with a control system, a safety system, and a sequencer. You can find the code under [[https:// |
| + | |||
| + | Start the program with | ||
| <code cpp> | <code cpp> | ||
| $ sudo ./ | $ sudo ./ | ||
| Line 6: | Line 8: | ||
| ===== The Full Picture ===== | ===== The Full Picture ===== | ||
| - | This example does not need any hardware. | + | This example does not need any hardware. |
| The main application defines a control system and a safety system. The safety system is assigned as main task and passed to the executor. Further, a main sequence is defined and added to the sequencer and started. After this the executor starts running. | The main application defines a control system and a safety system. The safety system is assigned as main task and passed to the executor. Further, a main sequence is defined and added to the sequencer and started. After this the executor starts running. | ||
| Line 41: | Line 43: | ||
| The main program must wait for the sequencer to stop until it can finish, in order to terminate gracefully without any running thread. | The main program must wait for the sequencer to stop until it can finish, in order to terminate gracefully without any running thread. | ||
| ===== Control System ===== | ===== Control System ===== | ||
| - | The control system is very simple. | + | The control system is very simple. |
| + | |||
| + | [{{ : | ||
| In the constructor of the control system the blocks are created, connected, and the integrator are enabled. All of the blocks are added to a time domain which itself is passed to the executor. This time domain runs in parallel to the safety system task. | In the constructor of the control system the blocks are created, connected, and the integrator are enabled. All of the blocks are added to a time domain which itself is passed to the executor. This time domain runs in parallel to the safety system task. | ||
| ===== Safety System ===== | ===== Safety System ===== | ||
| The safety system has four levels and a couple of safety events to switch between these levels. | The safety system has four levels and a couple of safety events to switch between these levels. | ||
| - | [{{ : | + | [{{ : |
| The event '' | The event '' | ||
getting_started/tutorials/mockrobot.1606998179.txt.gz · Last modified: 2020/12/03 13:22 by ursgraf