Skip to content

Commit 3c7bea1

Browse files
Fix references to RetryUntilSuccesful (#308)
* Fix github action * Fix references to RetryUntilSuccesful
1 parent 4c9807a commit 3c7bea1

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

docs/tutorial_05_subtrees.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ It is also the first practical example that uses `Decorators` and `Fallback`.
2323
<Inverter>
2424
<IsDoorOpen/>
2525
</Inverter>
26-
<RetryUntilSuccesful num_attempts="4">
26+
<RetryUntilSuccessful num_attempts="4">
2727
<OpenDoor/>
28-
</RetryUntilSuccesful>
28+
</RetryUntilSuccessful>
2929
<PassThroughDoor/>
3030
</Sequence>
3131
</BehaviorTree>

docs/uml/CrossDoorSubtree.uxf

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<w>150</w>
5454
<h>40</h>
5555
</coordinates>
56-
<panel_attributes>RetryUntilSuccesful
56+
<panel_attributes>RetryUntilSuccesfful
5757
(num_attempts=4)</panel_attributes>
5858
<additional_attributes/>
5959
</element>

docs/uml/ReadTheDocs.uxf

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Robot Behaviors</panel_attributes>
4343
<w>150</w>
4444
<h>40</h>
4545
</coordinates>
46-
<panel_attributes>RetryUntilSuccesful</panel_attributes>
46+
<panel_attributes>RetryUntilSuccessful</panel_attributes>
4747
<additional_attributes/>
4848
</element>
4949
<element>

examples/t05_crossdoor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ static const char* xml_text = R"(
2929
<Inverter>
3030
<Condition ID="IsDoorOpen"/>
3131
</Inverter>
32-
<RetryUntilSuccesful num_attempts="4">
32+
<RetryUntilSuccessful num_attempts="4">
3333
<OpenDoor/>
34-
</RetryUntilSuccesful>
34+
</RetryUntilSuccessful>
3535
<PassThroughDoor/>
3636
</Sequence>
3737
</BehaviorTree>

include/behaviortree_cpp_v3/decorators/retry_node.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ namespace BT
3232
* <RetryUntilSuccessful num_attempts="3">
3333
* <OpenDoor/>
3434
* </RetryUntilSuccessful>
35+
*
36+
* Note:
37+
* RetryNodeTypo is only included to support the depricated typo
38+
* "RetryUntilSuccesful" (note the single 's' in Succesful)
3539
*/
3640
class RetryNode : public DecoratorNode
3741
{
@@ -64,7 +68,7 @@ class RetryNode : public DecoratorNode
6468

6569
class
6670
[[deprecated("RetryUntilSuccesful was a typo and deprecated, use RetryUntilSuccessful instead.")]]
67-
RetryNodeTypo : RetryNode{
71+
RetryNodeTypo : public RetryNode{
6872
public:
6973
RetryNodeTypo(const std::string& name, int NTries)
7074
: RetryNode(name, NTries)

0 commit comments

Comments
 (0)