From 9dbfeaf799a95148dad4c85dd23b7f9fee586dbc Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Sun, 11 Jul 2021 10:26:07 +0200 Subject: [PATCH] file renamed and documentation fixed --- ...utorial_04_sequence_star.md => tutorial_04_sequence.md} | 0 examples/t04_reactive_sequence.cpp | 7 +++---- mkdocs.yml | 2 +- src/bt_factory.cpp | 3 ++- 4 files changed, 6 insertions(+), 6 deletions(-) rename docs/{tutorial_04_sequence_star.md => tutorial_04_sequence.md} (100%) diff --git a/docs/tutorial_04_sequence_star.md b/docs/tutorial_04_sequence.md similarity index 100% rename from docs/tutorial_04_sequence_star.md rename to docs/tutorial_04_sequence.md diff --git a/examples/t04_reactive_sequence.cpp b/examples/t04_reactive_sequence.cpp index cec330a5a..6e241973a 100644 --- a/examples/t04_reactive_sequence.cpp +++ b/examples/t04_reactive_sequence.cpp @@ -7,7 +7,7 @@ using namespace BT; /** This tutorial will teach you: * - * - The difference between Sequence and SequenceStar + * - The difference between Sequence and ReactiveSequence * * - How to create an asynchronous ActionNode (an action that is execute in * its own thread). @@ -111,14 +111,11 @@ Robot says: "mission started..." [ MoveBase: STARTED ]. goal: x=1 y=2.0 theta=3.00 --- 2nd executeTick() --- -[ Battery: OK ] [ MoveBase: FINISHED ] --- 3rd executeTick() --- -[ Battery: OK ] Robot says: "mission completed!" - ------------ BUILDING A NEW TREE ------------ --- 1st executeTick() --- @@ -127,9 +124,11 @@ Robot says: "mission started..." [ MoveBase: STARTED ]. goal: x=1 y=2.0 theta=3.00 --- 2nd executeTick() --- +[ Battery: OK ] [ MoveBase: FINISHED ] --- 3rd executeTick() --- +[ Battery: OK ] Robot says: "mission completed!" */ diff --git a/mkdocs.yml b/mkdocs.yml index a76d768fc..c781ebcc2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -45,7 +45,7 @@ nav: - "Tutorial 1: Create a Tree": tutorial_01_first_tree.md - "Tutorial 2: Basic Ports": tutorial_02_basic_ports.md - "Tutorial 3: Generic ports": tutorial_03_generic_ports.md - - "Tutorial 4: Sequences": tutorial_04_sequence_star.md + - "Tutorial 4: Sequences": tutorial_04_sequence.md - "Tutorial 5: Subtrees and Loggers": tutorial_05_subtrees.md - "Tutorial 6: Ports remapping": tutorial_06_subtree_ports.md - "Tutorial 7: Wrap legacy code": tutorial_07_legacy.md diff --git a/src/bt_factory.cpp b/src/bt_factory.cpp index b8501297e..c25e73ef8 100644 --- a/src/bt_factory.cpp +++ b/src/bt_factory.cpp @@ -33,7 +33,8 @@ BehaviorTreeFactory::BehaviorTreeFactory() registerNodeType("WhileDoElse"); registerNodeType("Inverter"); - registerNodeType("RetryUntilSuccesful"); + registerNodeType("RetryUntilSuccesful"); //typo but back compatibility + registerNodeType("RetryUntilSuccessful"); // correct one registerNodeType("KeepRunningUntilFailure"); registerNodeType("Repeat"); registerNodeType>("Timeout");