From 235f09dc59dc4e3564dbdb7f79e197420ef3de87 Mon Sep 17 00:00:00 2001 From: Christian Henkel Date: Tue, 12 Mar 2024 14:22:01 +0100 Subject: [PATCH 1/2] resetting the toTick variable in the control nodes with memory Signed-off-by: Christian Henkel --- rep-2018.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rep-2018.rst b/rep-2018.rst index 792894554..6b2eb50ba 100644 --- a/rep-2018.rst +++ b/rep-2018.rst @@ -216,6 +216,7 @@ as shown below. response ← child(j).tick() if response != Success then return response + toTick ← 1 return Success The *Fallback with Memory* node executes, which corresponds to routing @@ -243,6 +244,7 @@ below. response ← child(j).tick() if response != Failure then return response + toTick ← 1 return Failure The *(Reactive) Parallel* node with success threshold :math:`k` From 69fd93057a335277311235372dc5ed0547928316 Mon Sep 17 00:00:00 2001 From: Christian Henkel Date: Tue, 12 Mar 2024 14:22:32 +0100 Subject: [PATCH 2/2] explanation of toTickFromLastIteration function Signed-off-by: Christian Henkel --- rep-2018.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rep-2018.rst b/rep-2018.rst index 6b2eb50ba..cb75159fb 100644 --- a/rep-2018.rst +++ b/rep-2018.rst @@ -211,6 +211,11 @@ as shown below. :: +In the following pseudocode and the one for *Fallback with Memory*, the +function *toTickFromLastIteration* returns the value of the variable toTick +from the last iteration of this control flow node. If it is the first +iteration, it returns 1. + toTick ← toTickFromLastIteration(); for j ← toTick to n do response ← child(j).tick()