#include <control_node.h>
Public Member Functions | |
void | AddChild (TreeNode *child) |
ControlNode (std::string name) | |
int | Depth () |
std::vector< TreeNode * > | GetChildren () |
unsigned int | GetChildrenNumber () |
void | Halt () |
void | HaltChildren (int i) |
void | ResetColorState () |
bool | WriteState (ReturnStatus new_state) |
~ControlNode () | |
Protected Attributes | |
ReturnStatus | child_i_status_ |
std::vector< TreeNode * > | children_nodes_ |
std::vector< ReturnStatus > | children_states_ |
unsigned int | N_of_children_ |
Definition at line 23 of file control_node.h.
BT::ControlNode::ControlNode | ( | std::string | name | ) | [explicit] |
Definition at line 18 of file control_node.cpp.
Definition at line 27 of file control_node.cpp.
void BT::ControlNode::AddChild | ( | TreeNode * | child | ) |
Definition at line 29 of file control_node.cpp.
int BT::ControlNode::Depth | ( | ) | [virtual] |
Implements BT::TreeNode.
Definition at line 93 of file control_node.cpp.
std::vector< BT::TreeNode * > BT::ControlNode::GetChildren | ( | ) |
Definition at line 55 of file control_node.cpp.
unsigned int BT::ControlNode::GetChildrenNumber | ( | ) |
Definition at line 43 of file control_node.cpp.
void BT::ControlNode::Halt | ( | ) | [virtual] |
Implements BT::TreeNode.
Reimplemented in BT::SequenceNodeWithMemory, BT::FallbackNodeWithMemory, and BT::ParallelNode.
Definition at line 48 of file control_node.cpp.
void BT::ControlNode::HaltChildren | ( | int | i | ) |
Definition at line 69 of file control_node.cpp.
void BT::ControlNode::ResetColorState | ( | ) | [virtual] |
Implements BT::TreeNode.
Definition at line 60 of file control_node.cpp.
bool BT::ControlNode::WriteState | ( | ReturnStatus | new_state | ) |
ReturnStatus BT::ControlNode::child_i_status_ [protected] |
Definition at line 35 of file control_node.h.
std::vector<TreeNode*> BT::ControlNode::children_nodes_ [protected] |
Definition at line 27 of file control_node.h.
std::vector<ReturnStatus> BT::ControlNode::children_states_ [protected] |
Definition at line 30 of file control_node.h.
unsigned int BT::ControlNode::N_of_children_ [protected] |
Definition at line 33 of file control_node.h.