subtree_node.cpp
Go to the documentation of this file.
2 
3 
6 {
7  setRegistrationName("SubTree");
8 }
9 
11 {
12  NodeStatus prev_status = status();
13  if (prev_status == NodeStatus::IDLE)
14  {
16  }
17  return child_node_->executeTick();
18 }
19 
void setRegistrationName(const std::string &registration_name)
registrationName() is set by the BehaviorTreeFactory
Definition: tree_node.cpp:113
TreeNode * child_node_
std::unordered_map< std::string, std::string > NodeParameters
Definition: tree_node.h:33
NodeStatus status() const
Definition: tree_node.cpp:75
NodeStatus
Definition: basic_types.h:28
virtual BT::NodeStatus executeTick()
The method that will be executed to invoke tick(); and setStatus();.
Definition: tree_node.cpp:35
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
DecoratorSubtreeNode(const std::string &name)
Definition: subtree_node.cpp:4
void setStatus(NodeStatus new_status)
Definition: tree_node.cpp:43


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 04:01:53