subtree_node.cpp
Go to the documentation of this file.
2 
3 
5  DecoratorNode(name, {} )
6 {
7  setRegistrationID("SubTree");
8 }
9 
11 {
12  NodeStatus prev_status = status();
13  if (prev_status == NodeStatus::IDLE)
14  {
16  }
17  return child_node_->executeTick();
18 }
19 
TreeNode * child_node_
void setRegistrationID(StringView ID)
Definition: tree_node.h:158
NodeStatus status() const
Definition: tree_node.cpp:56
NodeStatus
Definition: basic_types.h:35
virtual BT::NodeStatus executeTick()
The method that should be used to invoke tick() and setStatus();.
Definition: tree_node.cpp:33
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:40


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:05