33 if (children_count != 2 && children_count != 3)
35 throw std::logic_error(
"IfThenElseNode must have either 2 or 3 children");
46 return condition_status;
54 if (children_count == 3)
60 return condition_status;
80 throw std::logic_error(
"Something unexpected happened in IfThenElseNode");
std::vector< TreeNode * > children_nodes_
virtual void halt() override
NodeStatus status() const
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
IfThenElseNode(const std::string &name)
virtual void halt() override
void setRegistrationID(StringView ID)
void setStatus(NodeStatus new_status)