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

Method rootNode

src/bt_factory.cpp:646–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646TreeNode* Tree::rootNode() const
647{
648 if(subtrees.empty())
649 {
650 return nullptr;
651 }
652 auto& subtree_nodes = subtrees.front()->nodes;
653 return subtree_nodes.empty() ? nullptr : subtree_nodes.front().get();
654}
655
656bool Tree::sleep(std::chrono::system_clock::duration timeout)
657{

Callers 12

StdCoutLoggerMethod · 0.80
Groot2PublisherMethod · 0.80
FileLogger2Method · 0.80
SqliteLoggerMethod · 0.80
TreeObserverMethod · 0.80
MinitraceLoggerMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 2

emptyMethod · 0.45
getMethod · 0.45

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64