4 #include <unordered_map> 7 int main(
int argc,
char* argv[])
11 printf(
"Wrong number of command line arguments\nUsage: %s [filename]\n", argv[0]);
17 std::unordered_set<std::string> default_nodes;
21 default_nodes.insert(
manifest.registration_ID);
29 if (default_nodes.count(
manifest.registration_ID) > 0)
34 std::cout <<
"---------------\n" 36 <<
"]\n NodeParameters: " << params.size();
38 if (params.size() > 0)
43 std::cout << std::endl;
45 for (
auto& param : params)
47 std::cout <<
" - [Key]: \"" << param.first <<
"\"" << std::endl;
int main(int argc, char *argv[])
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
void registerFromPlugin(const std::string &file_path)
registerFromPlugin load a shared library and execute the function BT_REGISTER_NODES (see macro)...
const std::unordered_map< std::string, TreeNodeManifest > & manifests() const
Manifests of all the registered TreeNodes.