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

Method createTree

src/bt_factory.cpp:468–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468Tree BehaviorTreeFactory::createTree(const std::string& tree_name,
469 Blackboard::Ptr blackboard)
470{
471 // Set the polymorphic cast registry on the blackboard (Issue #943)
472 blackboard->setPolymorphicCastRegistry(_p->polymorphic_registry);
473
474 auto tree = _p->parser->instantiateTree(blackboard, tree_name);
475 tree.manifests = this->manifests();
476 tree.remapManifestPointers();
477 return tree;
478}
479
480void BehaviorTreeFactory::addMetadataToManifest(const std::string& node_id,
481 const KeyValueVector& metadata)

Callers 15

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
mainFunction · 0.80

Calls 3

instantiateTreeMethod · 0.80
remapManifestPointersMethod · 0.80

Tested by 11

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64