Skip to content

Commit 2e6bcd8

Browse files
committed
fixing the example
1 parent c559ef2 commit 2e6bcd8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/crossdoor_example.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ const std::string xml_text = R"(
1313
<root main_tree_to_execute = "MainTree" >
1414
1515
<BehaviorTree ID="MainTree">
16-
<Fallback name="root_selector">
16+
<FallbackStar name="root_selector">
1717
1818
<Sequence name="door_open_sequence">
1919
<Condition ID="IsDoorOpen"/>
2020
<Action ID="PassThroughDoor"/>
2121
</Sequence>
2222
23-
<Sequence name="door_closed_sequence">
23+
<SequenceStar name="door_closed_sequence">
2424
<Negation>
2525
<Condition ID="IsDoorOpen"/>
2626
</Negation>
@@ -29,11 +29,11 @@ const std::string xml_text = R"(
2929
</RetryUntilSuccesful>
3030
<Action ID="PassThroughDoor" />
3131
<Action ID="CloseDoor" />
32-
</Sequence>
32+
</SequenceStar>
3333
3434
<Action ID="PassThroughWindow" />
3535
36-
</Fallback>
36+
</FallbackStar>
3737
</BehaviorTree>
3838
3939
</root>
@@ -46,6 +46,7 @@ using namespace BT;
4646
int main()
4747
{
4848
BT::BehaviorTreeFactory factory;
49+
4950
auto blackboard = Blackboard::create<BlackboardLocal>();
5051
blackboard->set("door_open", false);
5152
blackboard->set("door_locked", true);

0 commit comments

Comments
 (0)