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

Method executeTick

src/decorator_node.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77NodeStatus DecoratorNode::executeTick()
78{
79 const NodeStatus status = TreeNode::executeTick();
80 const NodeStatus child_status = child()->status();
81 if(child_status == NodeStatus::SUCCESS || child_status == NodeStatus::FAILURE)
82 {
83 child()->resetStatus();
84 }
85 return status;
86}
87
88} // namespace BT

Callers 1

tickMethod · 0.45

Calls 2

statusMethod · 0.80
resetStatusMethod · 0.80

Tested by

no test coverage detected