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

Method resetChild

src/decorator_node.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void DecoratorNode::resetChild()
54{
55 if(child_node_ == nullptr)
56 {
57 return;
58 }
59 if(child_node_->status() == NodeStatus::RUNNING)
60 {
61 child_node_->haltNode();
62 }
63 child_node_->resetStatus();
64}
65
66SimpleDecoratorNode::SimpleDecoratorNode(const std::string& name,
67 TickFunctor tick_functor,

Callers

nothing calls this directly

Calls 3

statusMethod · 0.80
haltNodeMethod · 0.80
resetStatusMethod · 0.80

Tested by

no test coverage detected