Decision Module  1.0
ICRA2020 AI Challenge Northwestern Polytechnical University Aoxiang Team Strategy Code
roborts_decision::BehaviorTree Class Reference

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...
 

Detailed Description

Behavior tree class to initialize and execute the whole tree.

Constructor & Destructor Documentation

◆ BehaviorTree()

roborts_decision::BehaviorTree::BehaviorTree ( BehaviorNode::Ptr  root_node,
int  cycle_duration 
)
inline

Constructor of BehaviorTree.

Parameters
root_noderoot node of the behavior tree
cycle_durationtick duration of the behavior tree (unit ms)

Member Function Documentation

◆ Run()

void roborts_decision::BehaviorTree::Run ( )
inline

Loop to tick the behavior tree.

Member Data Documentation

◆ cycle_duration_

std::chrono::milliseconds roborts_decision::BehaviorTree::cycle_duration_
private

tick duration of the behavior tree (unit ms)

◆ root_node_

BehaviorNode::Ptr roborts_decision::BehaviorTree::root_node_
private

root node of the behavior tree


The documentation for this class was generated from the following file: