Decision Module
1.0
ICRA2020 AI Challenge Northwestern Polytechnical University Aoxiang Team Strategy Code
|
Behavior tree class to initialize and execute the whole tree. More...
#include <behavior_tree.h>
Public Member Functions | |
BehaviorTree (BehaviorNode::Ptr root_node, int cycle_duration) | |
Constructor of BehaviorTree. More... | |
void | Run () |
Loop to tick the behavior tree. More... | |
Private Attributes | |
BehaviorNode::Ptr | root_node_ |
root node of the behavior tree More... | |
std::chrono::milliseconds | cycle_duration_ |
tick duration of the behavior tree (unit ms) More... | |
Behavior tree class to initialize and execute the whole tree.
|
inline |
Constructor of BehaviorTree.
root_node | root node of the behavior tree |
cycle_duration | tick duration of the behavior tree (unit ms) |
|
inline |
Loop to tick the behavior tree.
|
private |
tick duration of the behavior tree (unit ms)
|
private |
root node of the behavior tree