From dbaa6da059c6eeb9c7865ad9e8c4a1850db5cfbd Mon Sep 17 00:00:00 2001
From: Shruti Garg <53955086+shrutigarg914@users.noreply.github.com>
Date: Thu, 17 Oct 2024 14:24:41 -0400
Subject: [PATCH] updated definitions for Btree components (#373)
---
book/clutter.html | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/book/clutter.html b/book/clutter.html
index 261b4a85..5f11772a 100644
--- a/book/clutter.html
+++ b/book/clutter.html
@@ -1449,7 +1449,6 @@
Clutter clearing (complete demo)
Behavior Trees
-
Let's reintroduce the terminology of behavior trees. Behavior trees
provide a structure for switching between different tasks in a way that
is both modular and reactive. Behavior trees are a directed rooted tree
@@ -1459,18 +1458,24 @@
Clutter clearing (complete demo)
condition may be "Is my hand empty?" which can be true (thus the
condition succeeds) or can be false (the condition fails).
- We'll consider two categories of control flow nodes:
+ More specifically, each node is periodically checked. In turn it will
+ check its children, and report status as success, failure or running
+ depending on its childrens' statuses. There are different categories
+ of control flow nodes, but we'll consider two categories of control
+ flow nodes:
+
- - Sequence Node: ($\rightarrow$)
- Sequence nodes execute each
- of the child behaviors one after another. The sequence fails if any
- of the children fail. One way to think about this operator is that
+
- Sequence Node: ($\rightarrow$)
- Sequence nodes execute
+ each of the child behaviors left to right. The sequence returns failure
+ if any of the children fail and running if any of the children are
+ running. One way to think about this operator is that
a sequence node takes an "and" over all of the child behaviors.
- Fallback Node: (?)
- Fallback nodes also execute each of the
child behaviors one after another. However, fallback succeeds if any
of the children succeed. One way to think about this operator is
that the fallback node takes an "or" over all of the children
behaviors.
-
+
The symbols are visualized below. Sequence nodes are represented as an
arrow in a box, fallback nodes are represented as a question mark in a box,