MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / executeWhileRunning

Function executeWhileRunning

tests/gtest_coroutines.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82namespace
83{
84BT::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
96TEST(CoroTest, do_action)

Callers 1

TESTFunction · 0.85

Calls 1

executeTickMethod · 0.45

Tested by

no test coverage detected