subtree_node.cpp
Go to the documentation of this file.
00001 #include "behaviortree_cpp/decorators/subtree_node.h"
00002 
00003 
00004 BT::DecoratorSubtreeNode::DecoratorSubtreeNode(const std::string &name) :
00005   DecoratorNode(name, NodeParameters())
00006 {
00007     setRegistrationName("SubTree");
00008 }
00009 
00010 BT::NodeStatus BT::DecoratorSubtreeNode::tick()
00011 {
00012     NodeStatus prev_status = status();
00013     if (prev_status == NodeStatus::IDLE)
00014     {
00015         setStatus(NodeStatus::RUNNING);
00016     }
00017     return child_node_->executeTick();
00018 }
00019 


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 03:50:10