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

Method initialize

examples/t08_additional_node_args.cpp:69–73  ·  view source on GitHub ↗

we want this method to be called ONCE and BEFORE the first tick()

Source from the content-addressed store, hash-verified

67
68 // we want this method to be called ONCE and BEFORE the first tick()
69 void initialize(int arg_int, std::string arg_str)
70 {
71 _arg1 = (arg_int);
72 _arg2 = (arg_str);
73 }
74
75 NodeStatus tick() override
76 {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected