FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: Fix some formatting and errors in tutorial 15 by nyibbang · Pull Request #66 · BehaviorTree/btcpp_website · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .md  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
22 changes: 11 additions & 11 deletions docs/tutorial-advanced/tutorial_15_replace_rules.md
This file contains hidden or 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
Expand Up @@ -64,14 +64,14 @@ We will use this XML:
<BehaviorTree ID="MainTree">
<Sequence>
<SaySomething name="talk" message="hello world"/>
<Fallback>
<AlwaysFailure name="failing_action"/>
<SubTree ID="MySub" name="mysub"/>
</Fallback>
<SaySomething message="before last_action"/>
<Script code="msg:='after last_action'"/>
<AlwaysSuccess name="last_action"/>
<SaySomething message="{msg}"/>
<Fallback>
<AlwaysFailure name="failing_action"/>
<SubTree ID="MySub" name="mysub"/>
</Fallback>
<SaySomething message="before last_action"/>
<Script code="msg:='after last_action'"/>
<AlwaysSuccess name="last_action"/>
<SaySomething message="{msg}"/>
</Sequence>
</BehaviorTree>

Expand Down Expand Up @@ -128,8 +128,8 @@ int main(int argc, char** argv)
factory.loadSubstitutionRuleFromJSON(json_text);
}
else {
// Substitute nodes which match this wildcard pattern with TestAction
factory.addSubstitutionRule("mysub/action_*", "TestAction");
// Substitute nodes which match this wildcard pattern with DummyAction
factory.addSubstitutionRule("mysub/action_*", "DummyAction");

// Substitute the node with name [talk] with TestSaySomething
factory.addSubstitutionRule("talk", "TestSaySomething");
Expand Down Expand Up @@ -174,7 +174,7 @@ The JSON file, equivalent to the branch executed when `USE_JSON == false` is:
},

"SubstitutionRules": {
"mysub/action_*": "TestAction",
"mysub/action_*": "DummyAction",
"talk": "TestSaySomething",
"last_action": "MyTest"
}
Expand Down

Back | FazBrowse Home | New Git URL