Skip to content

Commit 35e2e9a

Browse files
JanStaschulatralph-lange
authored andcommitted
rclc_executor: formatting
1 parent 01d382f commit 35e2e9a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • _docs/concepts/client_library/real-time_executor

‎_docs/concepts/client_library/real-time_executor/index.md‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Available spin functions are
296296
- `spin` - spin indefinitly
297297

298298
### Examples
299-
299+
We provide the relevant code snippets how to setup the RCLC-Executor for the embedded use case and for the software design patterns in mobile robotics applications as described above.
300300
#### Embedded use-case
301301

302302
With seqential execution the co-operative scheduling of tasks within a process can be modeled. The trigger condition is used to periodically activate the process which will then execute all callbacks in a pre-defined order. Data will be communicated using the LET-semantics. Every Executor is executed in its own tread, to which an appropriate priority can be assigned.
@@ -362,10 +362,8 @@ rclc_executor_spin(&exe);
362362
#### Sense-plan-act pipeline
363363
364364
In this example we want to realise a sense-plan-act pipeline in a single thread. The trigger condition is demonstrated by activating
365-
the sense-phase when both data for the Laser and IMU are available. Three executors are necessary `exe_sense`, `exe_plan`
366-
and `exe_act`. The two sensor acquisition callbacks `sense_Laser` and `sense_IMU` are registered in the Executor `exe_sense`.
367-
The trigger condition ALL is responsible to activate the sense-phase only when all data for these two callbacks are available.
368-
Finally all three Executors are spinning using a `while`-loop and the `spin_some` function.
365+
the sense-phase when both data for the Laser and IMU are available. Three executors are necessary `exe_sense`, `exe_plan` and `exe_act`. The two sensor acquisition callbacks `sense_Laser` and `sense_IMU` are registered in the Executor `exe_sense`.
366+
The trigger condition ALL is responsible to activate the sense-phase only when all data for these two callbacks are available. Finally all three Executors are spinning using a `while`-loop and the `spin_some` function.
369367
370368
The definitions of callbacks are omitted.
371369

0 commit comments

Comments
 (0)