24 while (!stop_loop_ && i++ < time_)
26 std::this_thread::sleep_for(std::chrono::milliseconds(100));
31 virtual void halt()
override 59 std::cout << count++ <<
" : " << root.
status() <<
" / " << action1.
status() <<
" / " 60 << action2.status() << std::endl;
62 std::this_thread::sleep_for(std::chrono::milliseconds(100));
std::atomic_bool stop_loop_
virtual void halt() override
NodeStatus tick() override
void haltAllActions(TreeNode *root_node)
static volatile int count
The SimpleActionNode provides an easy to use SyncActionNode. The user should simply provide a callbac...
void addChild(TreeNode *child)
The method used to add nodes to the children vector.
NodeStatus status() const
ActionTestNode(const std::string &name)
virtual BT::NodeStatus executeTick()
The method that should be used to invoke tick() and setStatus();.
The SequenceNode is used to tick children in an ordered sequence. If any child returns RUNNING...