From 3c7bea1de428e648cdf728223ed9ad94c6021cbe Mon Sep 17 00:00:00 2001 From: Jake Keller Date: Wed, 13 Oct 2021 11:56:09 -0400 Subject: [PATCH] Fix references to RetryUntilSuccesful (#308) * Fix github action * Fix references to RetryUntilSuccesful --- docs/tutorial_05_subtrees.md | 4 ++-- docs/uml/CrossDoorSubtree.uxf | 2 +- docs/uml/ReadTheDocs.uxf | 2 +- examples/t05_crossdoor.cpp | 4 ++-- include/behaviortree_cpp_v3/decorators/retry_node.h | 6 +++++- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/tutorial_05_subtrees.md b/docs/tutorial_05_subtrees.md index fd7d532f5..553494beb 100644 --- a/docs/tutorial_05_subtrees.md +++ b/docs/tutorial_05_subtrees.md @@ -23,9 +23,9 @@ It is also the first practical example that uses `Decorators` and `Fallback`. - + - + diff --git a/docs/uml/CrossDoorSubtree.uxf b/docs/uml/CrossDoorSubtree.uxf index 8961c8b5b..b5a5e10ad 100644 --- a/docs/uml/CrossDoorSubtree.uxf +++ b/docs/uml/CrossDoorSubtree.uxf @@ -53,7 +53,7 @@ 150 40 - RetryUntilSuccesful + RetryUntilSuccesfful (num_attempts=4) diff --git a/docs/uml/ReadTheDocs.uxf b/docs/uml/ReadTheDocs.uxf index 363b8b169..7b1a773fe 100644 --- a/docs/uml/ReadTheDocs.uxf +++ b/docs/uml/ReadTheDocs.uxf @@ -43,7 +43,7 @@ Robot Behaviors 150 40 - RetryUntilSuccesful + RetryUntilSuccessful diff --git a/examples/t05_crossdoor.cpp b/examples/t05_crossdoor.cpp index 53de346dd..3539e0f4b 100644 --- a/examples/t05_crossdoor.cpp +++ b/examples/t05_crossdoor.cpp @@ -29,9 +29,9 @@ static const char* xml_text = R"( - + - + diff --git a/include/behaviortree_cpp_v3/decorators/retry_node.h b/include/behaviortree_cpp_v3/decorators/retry_node.h index 392f207e1..61d329348 100644 --- a/include/behaviortree_cpp_v3/decorators/retry_node.h +++ b/include/behaviortree_cpp_v3/decorators/retry_node.h @@ -32,6 +32,10 @@ namespace BT * * * + * + * Note: + * RetryNodeTypo is only included to support the depricated typo + * "RetryUntilSuccesful" (note the single 's' in Succesful) */ class RetryNode : public DecoratorNode { @@ -64,7 +68,7 @@ class RetryNode : public DecoratorNode class [[deprecated("RetryUntilSuccesful was a typo and deprecated, use RetryUntilSuccessful instead.")]] -RetryNodeTypo : RetryNode{ +RetryNodeTypo : public RetryNode{ public: RetryNodeTypo(const std::string& name, int NTries) : RetryNode(name, NTries)