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

Method resetChildren

src/control_node.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void ControlNode::resetChildren()
39{
40 for(auto* child : children_nodes_)
41 {
42 if(child->status() == NodeStatus::RUNNING)
43 {
44 child->haltNode();
45 }
46 child->resetStatus();
47 }
48}
49
50const std::vector<TreeNode*>& ControlNode::children() const
51{

Callers

nothing calls this directly

Calls 3

statusMethod · 0.80
haltNodeMethod · 0.80
resetStatusMethod · 0.80

Tested by

no test coverage detected