-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple BT.CPP solutions to Problems 2 and 3
- Loading branch information
Showing
3 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
technologies/BehaviorTree.CPP/pyrobosim_btcpp/trees/problem3.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<root BTCPP_format="4"> | ||
|
||
<BehaviorTree ID="MainTree"> | ||
<Sequence> | ||
<RetryUntilSuccessful num_attempts="5"> | ||
<Sequence> | ||
<Navigate name="ToPantry" target="pantry"/> | ||
<Open name="OpenPantry" target="pantry"/> | ||
<PickObject name="PickBread" object="bread0"/> | ||
</Sequence> | ||
</RetryUntilSuccessful> | ||
<RetryUntilSuccessful num_attempts="5"> | ||
<Sequence> | ||
<Navigate name="ToTable" target="table"/> | ||
<PlaceObject name="PlaceBread" object="bread0"/> | ||
</Sequence> | ||
</RetryUntilSuccessful> | ||
<RetryUntilSuccessful num_attempts="5"> | ||
<Sequence> | ||
<Navigate name="ToPantry" target="pantry"/> | ||
<Close name="ClosePantry" target="pantry"/> | ||
</Sequence> | ||
</RetryUntilSuccessful> | ||
|
||
<RetryUntilSuccessful num_attempts="5"> | ||
<Sequence> | ||
<Navigate name="ToFridge" target="fridge"/> | ||
<Open name="OpenFridge" target="fridge"/> | ||
<PickObject name="PickButter" object="butter0"/> | ||
</Sequence> | ||
</RetryUntilSuccessful> | ||
<RetryUntilSuccessful num_attempts="5"> | ||
<Sequence> | ||
<Navigate name="ToTable" target="table"/> | ||
<PlaceObject name="PlaceButter" object="butter0"/> | ||
</Sequence> | ||
</RetryUntilSuccessful> | ||
<RetryUntilSuccessful num_attempts="5"> | ||
<Sequence> | ||
<Navigate name="ToFridge" target="fridge"/> | ||
<Close name="CloseFridge" target="fridge"/> | ||
</Sequence> | ||
</RetryUntilSuccessful> | ||
|
||
</Sequence> | ||
</BehaviorTree> | ||
|
||
</root> |