28 std::cout << name() <<
": Started. Send Request to server." << std::endl;
31 bool reply_received =
false;
33 while( !reply_received )
35 std::cout << name() <<
": Waiting reply." << std::endl;
36 reply_received = ++cycle >= 3;
42 setStatusRunningAndYield();
47 std::cout << name() <<
": Done." << std::endl;
53 std::cout << name() <<
": Halted. Do your cleanup here." << std::endl;
79 std::this_thread::sleep_for( std::chrono::milliseconds(1) );
void halt() override
The method used to interrupt the execution of a RUNNING node.
The CoroActionNode class is an ideal candidate for asynchronous actions which need to communicate wit...
NodeStatus tick() override
Method to be implemented by the user.
std::unordered_map< std::string, std::string > NodeParameters
void addChild(TreeNode *child)
MyAsyncAction(const std::string &name)
virtual BT::NodeStatus executeTick()
The method that will be executed to invoke tick(); and setStatus();.
The SequenceNode is used to execute a sequence of children. If any child returns RUNNING, previous children will be ticked again.