Skip to content

Commit 55149c8

Browse files
Merge pull request #690 from galou/cleanup-sequencestar
Remove traces of SequenceStar
2 parents f3dbcc5 + 593e968 commit 55149c8

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ list(APPEND BT_SOURCE
111111
src/controls/reactive_sequence.cpp
112112
src/controls/reactive_fallback.cpp
113113
src/controls/sequence_node.cpp
114-
src/controls/sequence_star_node.cpp
114+
src/controls/sequence_with_memory_node.cpp
115115
src/controls/switch_node.cpp
116116
src/controls/while_do_else_node.cpp
117117

examples/test_files/Check.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<root>
22

33
<BehaviorTree ID="CheckStatus">
4-
<SequenceStar>
4+
<SequenceWithMemory>
55
<Action ID="CheckBattery"/>
66
<Action ID="CheckTemperature"/>
7-
</SequenceStar>
7+
</SequenceWithMemory>
88
</BehaviorTree>
99

1010
</root>

examples/test_files/subtrees/Talk.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<root BTCPP_format="4">
22

33
<BehaviorTree ID="SayStuff">
4-
<SequenceStar>
4+
<SequenceWithMemory>
55
<Action ID="SaySomething" message="Hello World"/>
66
<Action ID="SayHello"/>
7-
</SequenceStar>
7+
</SequenceWithMemory>
88
</BehaviorTree>
99

1010
</root>

include/behaviortree_cpp/behavior_tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "behaviortree_cpp/controls/reactive_fallback.h"
2020
#include "behaviortree_cpp/controls/fallback_node.h"
2121
#include "behaviortree_cpp/controls/sequence_node.h"
22-
#include "behaviortree_cpp/controls/sequence_star_node.h"
22+
#include "behaviortree_cpp/controls/sequence_with_memory_node.h"
2323
#include "behaviortree_cpp/controls/switch_node.h"
2424
#include "behaviortree_cpp/controls/if_then_else_node.h"
2525
#include "behaviortree_cpp/controls/while_do_else_node.h"

include/behaviortree_cpp/controls/sequence_star_node.h renamed to include/behaviortree_cpp/controls/sequence_with_memory_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace BT
1919
{
2020
/**
21-
* @brief The SequenceStarNode is used to tick children in an ordered sequence.
21+
* @brief The SequenceWithMemory is used to tick children in an ordered sequence.
2222
* If any child returns RUNNING, previous children are not ticked again.
2323
*
2424
* - If all the children return SUCCESS, this node returns SUCCESS.

src/controls/sequence_star_node.cpp renamed to src/controls/sequence_with_memory_node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1212
*/
1313

14-
#include "behaviortree_cpp/controls/sequence_star_node.h"
14+
#include "behaviortree_cpp/controls/sequence_with_memory_node.h"
1515

1616
namespace BT
1717
{
1818
SequenceWithMemory::SequenceWithMemory(const std::string& name) :
1919
ControlNode::ControlNode(name, {}), current_child_idx_(0)
2020
{
21-
setRegistrationID("SequenceStar");
21+
setRegistrationID("SequenceWithMemory");
2222
}
2323

2424
NodeStatus SequenceWithMemory::tick()

src/xml_parsing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ void VerifyXML(const std::string& xml_text,
432432
"attribute [ID]");
433433
}
434434
}
435-
else if (name == "Sequence" || name == "SequenceStar" ||
436-
name == "Fallback")
435+
else if (name == "Sequence" || name == "ReactiveSequence" ||
436+
name == "SequenceWithMemory" || name == "Fallback")
437437
{
438438
if (children_count == 0)
439439
{

tests/navigation_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ static const char* xml_text = R"(
1515
<Inverter>
1616
<Condition ID="IsStuck"/>
1717
</Inverter>
18-
<SequenceStar name="navigate">
18+
<SequenceWithMemory name="navigate">
1919
<Action ID="ComputePathToPose"/>
2020
<Action ID="FollowPath"/>
21-
</SequenceStar>
21+
</SequenceWithMemory>
2222
</ReactiveSequence>
2323
24-
<SequenceStar name="stuck_recovery">
24+
<SequenceWithMemory name="stuck_recovery">
2525
<Condition ID="IsStuck"/>
2626
<Action ID="BackUpAndSpin"/>
27-
</SequenceStar>
27+
</SequenceWithMemory>
2828
2929
</Fallback>
3030
</BehaviorTree>

0 commit comments

Comments
 (0)