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

Method FallbackNode

src/controls/fallback_node.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace BT
17{
18FallbackNode::FallbackNode(const std::string& name, bool make_asynch)
19 : ControlNode::ControlNode(name, {}), current_child_idx_(0), asynch_(make_asynch)
20{
21 if(asynch_)
22 {
23 setRegistrationID("AsyncFallback");
24 }
25 else
26 {
27 setRegistrationID("Fallback");
28 }
29}
30
31NodeStatus FallbackNode::tick()
32{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected