From 3e3880f0d33d1ffd84326e383f47259a584a244a Mon Sep 17 00:00:00 2001 From: hlzl Date: Fri, 8 Mar 2019 23:30:41 +0100 Subject: [PATCH] Fixed some typos in the documentation --- .DS_Store | Bin 0 -> 6148 bytes docs/BT_basics.md | 18 +++++++++--------- docs/FallbackNode.md | 8 ++++---- docs/SequenceNode.md | 10 +++++----- docs/tutorial_02_basic_ports.md | 10 +++++----- docs/tutorial_03_generic_ports.md | 8 ++++---- docs/tutorial_04_sequence_star.md | 6 +++--- docs/tutorial_05_subtrees.md | 4 ++-- docs/tutorial_06_subtree_ports.md | 6 +++--- docs/tutorial_08_additional_args.md | 6 +++--- docs/tutorial_09_coroutines.md | 12 ++++++------ 11 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 @@ -49,7 +49,7 @@ Le't consider this Beahavior Tree. You may notice that: -- We have a `MainTree` that include a suntree called `MoveRobot`. +- We have a `MainTree` that includes a subtree called `MoveRobot`. - We want to "connect" (i.e. "remap") ports inside the `MoveRobot` subtree with other ports in the `MainTree`. - This is done using the XMl tag ____, where the words __internal/external__ @@ -64,7 +64,7 @@ respective blackboard, not the relationship in terms of Behavior Trees. ![ports remapping](images/t06_remapping.png) In terms of C++, we don't need to do much. For debugging purpose, we may show some -information about the current state of a blackaboard with the method `debugMessage()`. +information about the current state of a blackboard with the method `debugMessage()`. ```C++ int main() diff --git a/docs/tutorial_08_additional_args.md b/docs/tutorial_08_additional_args.md index b504255e9..83ae4a388 100644 --- a/docs/tutorial_08_additional_args.md +++ b/docs/tutorial_08_additional_args.md @@ -11,9 +11,9 @@ constructor with the following signature In same cases, it is desirable to pass to the constructor of our class additional arguments, parameters, pointers, references, etc. -We will just use with the word _"parameter"_ for the rest of the tutorial. +We will just use the word _"parameter"_ for the rest of the tutorial. -Even if, theoretically, this parameters can be passed using Input Ports, +Even if, theoretically, these parameters can be passed using Input Ports, that would be the wrong way to do it if: - The parameters are know at _deployment-time_. @@ -24,7 +24,7 @@ If all these conditions are met, using ports is just cumbersome and highly disco ## The C++ example -Next, we can see two alternatice ways to pass parameters to a class: +Next, we can see two alternative ways to pass parameters to a class: either as arguments of the constructor of the class or in an `init()` method. ```C++ diff --git a/docs/tutorial_09_coroutines.md b/docs/tutorial_09_coroutines.md index 959995516..83e22321e 100644 --- a/docs/tutorial_09_coroutines.md +++ b/docs/tutorial_09_coroutines.md @@ -1,21 +1,21 @@ # Async Actions using Coroutines BehaviorTree.CPP provides two easy-to-use abstractions to create an -asynchronous Action, i.e those actions which: +asynchronous Action, i.e. those actions which: - Take a long time to be concluded. - May return "RUNNING". - Can be __halted__. -The first class is __AsyncActionNode__, that execute the tick() method in a +The first class is a __AsyncActionNode__ that executes the tick() method in a _separate thread_. -In this tutorial, we introduce __CoroActionNode__, a different action that uses +In this tutorial, we introduce the __CoroActionNode__, a different action that uses [coroutines](https://www.geeksforgeeks.org/coroutines-in-c-cpp/) to achieve similar results. The main reason is that Coroutines do not spawn a new thread and are much more efficient. -Furthermore, you don't need to worry about thread-safety in your code.. +Furthermore, you don't need to worry about thread-safety in your code... In Coroutines, the user should explicitly call a __yield__ method when he/she wants the execution of the Action to be suspended. @@ -25,7 +25,7 @@ he/she wants the execution of the Action to be suspended. ## The C++ source example -The next example can be used as a "template" of your own implementation. +The next example can be used as a "template" for your own implementation. ``` c++ @@ -113,7 +113,7 @@ class MyAsyncAction: public CoroActionNode ``` -As you may notice, the action "pretends" to wait for a request message; +As you may have noticed, the action "pretends" to wait for a request message; the latter will arrive after _100 milliseconds_. To spice things up, we create a Sequence with two actions, but the entire