You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,15 +90,15 @@ The repository [my-behavior-tree-project](https://github.com/miccol/my-behavior-
90
90
91
91
CREATE YOUR OWN ACTION NODE
92
92
------
93
-
1) Implement your action node class inheriting the abstract class`BT::ActionNode`.
93
+
1) Implement your action node class extending the abstract class`BT::ActionNode`.
94
94
2) Implement the method `BT::ReturnStatus Tick()` with the code you want to execute while the action is running. Use the method `is_halted()` to check if the action has been prempted. When the execution of your action finished, return `BT::SUCCESS` or `BT::FAILURE` accordingly.
95
95
3) Implement the method `void Halt()` with the code you want to execute when the action gets preempted (halted).
96
96
See the file `src/example.cpp` for an example.
97
97
98
98
CREATE YOUR OWN CONDITION NODE
99
99
------
100
-
1) Implement your condition node class inheriting the abstract class`BT::ConditionNode`.
101
-
2) Implement the method `Tick()` with the code you want to execute to check the condition. Return `BT::SUCCESS` or `BT::FAILURE` accordingly.
100
+
1) Implement your condition node class extending the abstract class`BT::ConditionNode`.
101
+
2) Implement the method `BT::ReturnStatus Tick()` with the code you want to execute to check the condition. Return `BT::SUCCESS` or `BT::FAILURE` accordingly.
0 commit comments