-
Notifications
You must be signed in to change notification settings - Fork 821
Initialise input ports in code #405
Copy link
Copy link
Closed
Description
Hello,
I can't get my head around how to initialise the input ports of a node in the c++ code. I know how to initialise a port in the xml file.
I initialise my tree this way. For the sake of simplicity there is only one node.
BT::BehaviorTreeFactory factory;
// node
factory.registerNodeType<PickUpObject>("PickUpObject");
auto tree = factory.createTreeFromFile(tree_path);
tree.tickRoot();
I want to find a way to set the value of an input port of the node in the code above. How can I do that ?
Thank you
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels