36 if(children_count != 2 && children_count != 3)
38 throw std::logic_error(
"IfThenElseNode must have either 2 or 3 children");
49 return condition_status;
57 if( children_count == 3){
61 return condition_status;
80 throw std::logic_error(
"Something unexpected happened in IfThenElseNode");
std::vector< TreeNode * > children_nodes_
virtual void halt() override
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)
NodeStatus status() const
void setStatus(NodeStatus new_status)