| 82 | namespace |
| 83 | { |
| 84 | BT::NodeStatus executeWhileRunning(BT::TreeNode& node) |
| 85 | { |
| 86 | auto status = node.executeTick(); |
| 87 | while(status == BT::NodeStatus::RUNNING) |
| 88 | { |
| 89 | status = node.executeTick(); |
| 90 | std::this_thread::sleep_for(Millisecond(1)); |
| 91 | } |
| 92 | return status; |
| 93 | } |
| 94 | } // namespace |
| 95 | |
| 96 | TEST(CoroTest, do_action) |