Skip to content

Commit

Permalink
Fix references to RetryUntilSuccesful (BehaviorTree#308)
Browse files Browse the repository at this point in the history
* Fix github action

* Fix references to RetryUntilSuccesful
  • Loading branch information
sarcasticnature authored Oct 13, 2021
1 parent 4c9807a commit 3c7bea1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial_05_subtrees.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ It is also the first practical example that uses `Decorators` and `Fallback`.
<Inverter>
<IsDoorOpen/>
</Inverter>
<RetryUntilSuccesful num_attempts="4">
<RetryUntilSuccessful num_attempts="4">
<OpenDoor/>
</RetryUntilSuccesful>
</RetryUntilSuccessful>
<PassThroughDoor/>
</Sequence>
</BehaviorTree>
Expand Down
2 changes: 1 addition & 1 deletion docs/uml/CrossDoorSubtree.uxf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<w>150</w>
<h>40</h>
</coordinates>
<panel_attributes>RetryUntilSuccesful
<panel_attributes>RetryUntilSuccesfful
(num_attempts=4)</panel_attributes>
<additional_attributes/>
</element>
Expand Down
2 changes: 1 addition & 1 deletion docs/uml/ReadTheDocs.uxf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Robot Behaviors</panel_attributes>
<w>150</w>
<h>40</h>
</coordinates>
<panel_attributes>RetryUntilSuccesful</panel_attributes>
<panel_attributes>RetryUntilSuccessful</panel_attributes>
<additional_attributes/>
</element>
<element>
Expand Down
4 changes: 2 additions & 2 deletions examples/t05_crossdoor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ static const char* xml_text = R"(
<Inverter>
<Condition ID="IsDoorOpen"/>
</Inverter>
<RetryUntilSuccesful num_attempts="4">
<RetryUntilSuccessful num_attempts="4">
<OpenDoor/>
</RetryUntilSuccesful>
</RetryUntilSuccessful>
<PassThroughDoor/>
</Sequence>
</BehaviorTree>
Expand Down
6 changes: 5 additions & 1 deletion include/behaviortree_cpp_v3/decorators/retry_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ namespace BT
* <RetryUntilSuccessful num_attempts="3">
* <OpenDoor/>
* </RetryUntilSuccessful>
*
* Note:
* RetryNodeTypo is only included to support the depricated typo
* "RetryUntilSuccesful" (note the single 's' in Succesful)
*/
class RetryNode : public DecoratorNode
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3c7bea1

Please sign in to comment.