Public Member Functions | Public Attributes | Protected Attributes | Private Attributes
BT::TreeNode Class Reference

#include <tree_node.h>

Inheritance diagram for BT::TreeNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int Depth ()=0
virtual int DrawType ()=0
ReturnStatus get_color_status ()
std::string get_name ()
ReturnStatus get_status ()
NodeType get_type ()
float get_x_pose ()
float get_x_shift ()
virtual void Halt ()=0
bool has_parent ()
ReturnStatus ReadState ()
virtual void ResetColorState ()=0
void set_color_status (ReturnStatus new_color_status)
void set_has_parent (bool value)
void set_name (std::string new_name)
void set_status (ReturnStatus new_status)
void set_x_pose (float x_pose)
void set_x_shift (float x_shift)
void SetNodeState (ReturnStatus new_state)
virtual BT::ReturnStatus Tick ()=0
 TreeNode (std::string name)
 ~TreeNode ()

Public Attributes

std::thread thread_
TickEngine tick_engine

Protected Attributes

std::mutex color_state_mutex_
ReturnStatus color_status_
bool is_state_updated_
std::condition_variable state_condition_variable_
std::mutex state_mutex_
ReturnStatus status_
NodeType type_
float x_pose_
float x_shift_

Private Attributes

bool has_parent_
std::string name_

Detailed Description

Definition at line 103 of file tree_node.h.


Constructor & Destructor Documentation

BT::TreeNode::TreeNode ( std::string  name) [explicit]

Definition at line 17 of file tree_node.cpp.

Definition at line 26 of file tree_node.cpp.


Member Function Documentation

virtual int BT::TreeNode::Depth ( ) [pure virtual]

Implemented in BT::ControlNode, and BT::LeafNode.

virtual int BT::TreeNode::DrawType ( ) [pure virtual]

Definition at line 52 of file tree_node.cpp.

std::string BT::TreeNode::get_name ( )

Definition at line 94 of file tree_node.cpp.

Definition at line 42 of file tree_node.cpp.

Definition at line 100 of file tree_node.cpp.

Definition at line 68 of file tree_node.cpp.

Definition at line 79 of file tree_node.cpp.

virtual void BT::TreeNode::Halt ( ) [pure virtual]

Definition at line 105 of file tree_node.cpp.

virtual void BT::TreeNode::ResetColorState ( ) [pure virtual]

Implemented in BT::ControlNode, and BT::LeafNode.

void BT::TreeNode::set_color_status ( ReturnStatus  new_color_status)

Definition at line 60 of file tree_node.cpp.

void BT::TreeNode::set_has_parent ( bool  value)

Definition at line 110 of file tree_node.cpp.

void BT::TreeNode::set_name ( std::string  new_name)

Definition at line 89 of file tree_node.cpp.

void BT::TreeNode::set_status ( ReturnStatus  new_status)

Definition at line 28 of file tree_node.cpp.

void BT::TreeNode::set_x_pose ( float  x_pose)

Definition at line 73 of file tree_node.cpp.

void BT::TreeNode::set_x_shift ( float  x_shift)

Definition at line 84 of file tree_node.cpp.

virtual BT::ReturnStatus BT::TreeNode::Tick ( ) [pure virtual]

Member Data Documentation

std::mutex BT::TreeNode::color_state_mutex_ [protected]

Definition at line 121 of file tree_node.h.

Definition at line 117 of file tree_node.h.

bool BT::TreeNode::has_parent_ [private]

Definition at line 108 of file tree_node.h.

Definition at line 115 of file tree_node.h.

std::string BT::TreeNode::name_ [private]

Definition at line 107 of file tree_node.h.

std::condition_variable BT::TreeNode::state_condition_variable_ [protected]

Definition at line 122 of file tree_node.h.

std::mutex BT::TreeNode::state_mutex_ [protected]

Definition at line 120 of file tree_node.h.

Definition at line 116 of file tree_node.h.

std::thread BT::TreeNode::thread_

Definition at line 130 of file tree_node.h.

Definition at line 134 of file tree_node.h.

Definition at line 124 of file tree_node.h.

float BT::TreeNode::x_pose_ [protected]

Definition at line 126 of file tree_node.h.

float BT::TreeNode::x_shift_ [protected]

Definition at line 126 of file tree_node.h.


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


behavior_tree_core
Author(s): Michele Colledanchise
autogenerated on Thu Jun 6 2019 18:19:08