diff --git a/corrected_behavior_tree.svg b/corrected_behavior_tree.svg new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/corrected_behavior_tree.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/learn-the-basics/images/FetchBeer.svg b/docs/learn-the-basics/images/FetchBeer.svg index 880a142..e530a7b 100644 --- a/docs/learn-the-basics/images/FetchBeer.svg +++ b/docs/learn-the-basics/images/FetchBeer.svg @@ -1 +1,183 @@ -SequenceSequenceOpenFridgeOpenFridgeGrabBeerGrabBeerCloseFridgeCloseFridgeForceSuccessForceSuccessSequenceSequenceOpenFridgeOpenFridgeGrabBeerGrabBeerCloseFridgeCloseFridgeFallbackFallbackForceFailureForceFailureCloseFridgeCloseFridge \ No newline at end of file + + + + + + + + + + + + + + + + Sequence + + + + Sequence + + + + + + + + + OpenFridge + + + + OpenFridge + + + + + + + + + GrabBeer + + + + GrabBeer + + + + + + + + + CloseFridge + + + + CloseFridge + + + + + + + + + + + ForceSuccess + + + + ForceSuccess + + + + + + + + + + + + + + + Sequence + + + + Sequence + + + + + + + + + OpenFridge + + + + OpenFridge + + + + + + + + + GrabBeer + + + + GrabBeer + + + + + + + + + CloseFridge + + + + CloseFridge + + + + + + + + + + + + + Fallback + + + + Fallback + + + + + + + + + + + ForceFailure + + + + ForceFailure + + + + + + + + + CloseFridge + + + + CloseFridge + + + + diff --git a/docs/nodes-library/DecoratorNode.md b/docs/nodes-library/DecoratorNode.md index 940ae57..a77e94c 100644 --- a/docs/nodes-library/DecoratorNode.md +++ b/docs/nodes-library/DecoratorNode.md @@ -5,6 +5,8 @@ A decorator is a node that must have a single child. It is up to the Decorator to decide if, when and how many times the child should be ticked. +> Some nodes are not listed yet. See [decorators](https://github.com/BehaviorTree/BehaviorTree.CPP/tree/master/include/behaviortree_cpp/decorators) on Github for complete definitions. + ## Inverter Tick the child once and return SUCCESS if the child failed or FAILURE if diff --git a/docs/nodes-library/FallbackNode.md b/docs/nodes-library/FallbackNode.md index 85639f7..54639ed 100644 --- a/docs/nodes-library/FallbackNode.md +++ b/docs/nodes-library/FallbackNode.md @@ -1,4 +1,4 @@ -# Fallbacks +# Fallbacks (Controls) This family of nodes are known as "Selector" or "Priority" in other frameworks. @@ -36,6 +36,8 @@ To understand how the two ControlNodes differ, refer to the following table: same child is ticked again. Previous siblings, which returned FAILURE already, are not ticked again. +> Some nodes are not listed yet. See [controls](https://github.com/BehaviorTree/BehaviorTree.CPP/tree/master/include/behaviortree_cpp/controls) on Github for complete definitions. + ## Fallback In this example, we try different strategies to open the door. diff --git a/docs/nodes-library/SequenceNode.md b/docs/nodes-library/SequenceNode.md index db21e1f..73e8fc5 100644 --- a/docs/nodes-library/SequenceNode.md +++ b/docs/nodes-library/SequenceNode.md @@ -34,6 +34,8 @@ To understand how the three ControlNodes differ, refer to the following table: same child is ticked again. Previous siblings, which returned SUCCESS already, are not ticked again. +> Some nodes are not listed yet. See [controls](https://github.com/BehaviorTree/BehaviorTree.CPP/tree/master/include/behaviortree_cpp/controls) on Github for complete definitions. + ## Sequence This tree represents the behavior of a sniper in a computer game. @@ -45,7 +47,7 @@ This tree represents the behavior of a sniper in a computer game. This node is particularly useful to continuously check Conditions; but the user should also be careful when using asynchronous children, to be -sure that they are not ticked more often that expected. +sure that they are not ticked more often than expected. Let's take a look at another example: @@ -72,4 +74,4 @@ If the action __GoTo(B)__ fails, __GoTo(A)__ will not be ticked again. On the other hand, __isBatteryOK__ must be checked at every tick, for this reason its parent must be a `ReactiveSequence`. -![SequenceWithMemory](images/SequenceStar.svg) +![SequenceWithMemory](images/SequenceWithMemory.svg) diff --git a/docs/nodes-library/images/SequenceStar.svg b/docs/nodes-library/images/SequenceStar.svg deleted file mode 100644 index 335116f..0000000 --- a/docs/nodes-library/images/SequenceStar.svg +++ /dev/null @@ -1 +0,0 @@ -SequenceWithMemorySequenceWithMemoryGoTo(C)GoTo(C)RetryUntilSuccessfulRetryUntilSuccessfulGoTo(A)GoTo(A)GoTo(B)GoTo(B) \ No newline at end of file diff --git a/docs/nodes-library/images/SequenceWithMemory.svg b/docs/nodes-library/images/SequenceWithMemory.svg new file mode 100644 index 0000000..932d4bb --- /dev/null +++ b/docs/nodes-library/images/SequenceWithMemory.svg @@ -0,0 +1,4 @@ + + + +
RetryUntilSuccessful
RetryUntilSuccessful
ReactiveSequence
ReactiveSequence
isBatteryOK
isBatteryOK
SequenceWithMemory
SequenceWithMemory
GoTo(A)
GoTo(A)
GoTo(B)
GoTo(B)
GoTo(C)
GoTo(C)
Text is not SVG - cannot display
diff --git a/versioned_docs/version-3.8/learn-the-basics/images/FetchBeer.svg b/versioned_docs/version-3.8/learn-the-basics/images/FetchBeer.svg index 880a142..e530a7b 100644 --- a/versioned_docs/version-3.8/learn-the-basics/images/FetchBeer.svg +++ b/versioned_docs/version-3.8/learn-the-basics/images/FetchBeer.svg @@ -1 +1,183 @@ -SequenceSequenceOpenFridgeOpenFridgeGrabBeerGrabBeerCloseFridgeCloseFridgeForceSuccessForceSuccessSequenceSequenceOpenFridgeOpenFridgeGrabBeerGrabBeerCloseFridgeCloseFridgeFallbackFallbackForceFailureForceFailureCloseFridgeCloseFridge \ No newline at end of file + + + + + + + + + + + + + + + + Sequence + + + + Sequence + + + + + + + + + OpenFridge + + + + OpenFridge + + + + + + + + + GrabBeer + + + + GrabBeer + + + + + + + + + CloseFridge + + + + CloseFridge + + + + + + + + + + + ForceSuccess + + + + ForceSuccess + + + + + + + + + + + + + + + Sequence + + + + Sequence + + + + + + + + + OpenFridge + + + + OpenFridge + + + + + + + + + GrabBeer + + + + GrabBeer + + + + + + + + + CloseFridge + + + + CloseFridge + + + + + + + + + + + + + Fallback + + + + Fallback + + + + + + + + + + + ForceFailure + + + + ForceFailure + + + + + + + + + CloseFridge + + + + CloseFridge + + + + diff --git a/versioned_docs/version-3.8/nodes-library/SequenceNode.md b/versioned_docs/version-3.8/nodes-library/SequenceNode.md index 7abb714..133db9b 100644 --- a/versioned_docs/version-3.8/nodes-library/SequenceNode.md +++ b/versioned_docs/version-3.8/nodes-library/SequenceNode.md @@ -45,7 +45,7 @@ This tree represents the behavior of a sniper in a computer game. This node is particularly useful to continuously check Conditions; but the user should also be careful when using asynchronous children, to be -sure that they are not ticked more often that expected. +sure that they are not ticked more often than expected. Let's take a look at another example: diff --git a/versioned_docs/version-3.8/nodes-library/images/SequenceStar.svg b/versioned_docs/version-3.8/nodes-library/images/SequenceStar.svg index 335116f..932d4bb 100644 --- a/versioned_docs/version-3.8/nodes-library/images/SequenceStar.svg +++ b/versioned_docs/version-3.8/nodes-library/images/SequenceStar.svg @@ -1 +1,4 @@ -SequenceWithMemorySequenceWithMemoryGoTo(C)GoTo(C)RetryUntilSuccessfulRetryUntilSuccessfulGoTo(A)GoTo(A)GoTo(B)GoTo(B) \ No newline at end of file + + + +
RetryUntilSuccessful
RetryUntilSuccessful
ReactiveSequence
ReactiveSequence
isBatteryOK
isBatteryOK
SequenceWithMemory
SequenceWithMemory
GoTo(A)
GoTo(A)
GoTo(B)
GoTo(B)
GoTo(C)
GoTo(C)
Text is not SVG - cannot display
diff --git a/versioned_docs/version-4.0.2/learn-the-basics/images/FetchBeer.svg b/versioned_docs/version-4.0.2/learn-the-basics/images/FetchBeer.svg index 880a142..e530a7b 100644 --- a/versioned_docs/version-4.0.2/learn-the-basics/images/FetchBeer.svg +++ b/versioned_docs/version-4.0.2/learn-the-basics/images/FetchBeer.svg @@ -1 +1,183 @@ -SequenceSequenceOpenFridgeOpenFridgeGrabBeerGrabBeerCloseFridgeCloseFridgeForceSuccessForceSuccessSequenceSequenceOpenFridgeOpenFridgeGrabBeerGrabBeerCloseFridgeCloseFridgeFallbackFallbackForceFailureForceFailureCloseFridgeCloseFridge \ No newline at end of file + + + + + + + + + + + + + + + + Sequence + + + + Sequence + + + + + + + + + OpenFridge + + + + OpenFridge + + + + + + + + + GrabBeer + + + + GrabBeer + + + + + + + + + CloseFridge + + + + CloseFridge + + + + + + + + + + + ForceSuccess + + + + ForceSuccess + + + + + + + + + + + + + + + Sequence + + + + Sequence + + + + + + + + + OpenFridge + + + + OpenFridge + + + + + + + + + GrabBeer + + + + GrabBeer + + + + + + + + + CloseFridge + + + + CloseFridge + + + + + + + + + + + + + Fallback + + + + Fallback + + + + + + + + + + + ForceFailure + + + + ForceFailure + + + + + + + + + CloseFridge + + + + CloseFridge + + + + diff --git a/versioned_docs/version-4.0.2/nodes-library/SequenceNode.md b/versioned_docs/version-4.0.2/nodes-library/SequenceNode.md index 133db9b..6dcdb2e 100644 --- a/versioned_docs/version-4.0.2/nodes-library/SequenceNode.md +++ b/versioned_docs/version-4.0.2/nodes-library/SequenceNode.md @@ -71,7 +71,7 @@ If the action __GoTo(B)__ fails, __GoTo(A)__ will not be ticked again. On the other hand, __isBatteryOK__ must be checked at every tick, for this reason its parent must be a `ReactiveSequence`. -![SequenceWithMemory](images/SequenceStar.svg) +![SequenceWithMemory](images/SequenceWithMemory.svg) diff --git a/versioned_docs/version-4.0.2/nodes-library/images/SequenceStar.svg b/versioned_docs/version-4.0.2/nodes-library/images/SequenceStar.svg deleted file mode 100644 index 335116f..0000000 --- a/versioned_docs/version-4.0.2/nodes-library/images/SequenceStar.svg +++ /dev/null @@ -1 +0,0 @@ -SequenceWithMemorySequenceWithMemoryGoTo(C)GoTo(C)RetryUntilSuccessfulRetryUntilSuccessfulGoTo(A)GoTo(A)GoTo(B)GoTo(B) \ No newline at end of file diff --git a/versioned_docs/version-4.0.2/nodes-library/images/SequenceWithMemory.svg b/versioned_docs/version-4.0.2/nodes-library/images/SequenceWithMemory.svg new file mode 100644 index 0000000..932d4bb --- /dev/null +++ b/versioned_docs/version-4.0.2/nodes-library/images/SequenceWithMemory.svg @@ -0,0 +1,4 @@ + + + +
RetryUntilSuccessful
RetryUntilSuccessful
ReactiveSequence
ReactiveSequence
isBatteryOK
isBatteryOK
SequenceWithMemory
SequenceWithMemory
GoTo(A)
GoTo(A)
GoTo(B)
GoTo(B)
GoTo(C)
GoTo(C)
Text is not SVG - cannot display