Classes | Namespaces | Macros | Typedefs | Functions | Variables
bt_factory.h File Reference
#include <filesystem>
#include <functional>
#include <memory>
#include <unordered_map>
#include <set>
#include <vector>
#include "behaviortree_cpp/contrib/magic_enum.hpp"
#include "behaviortree_cpp/behavior_tree.h"
Include dependency graph for bt_factory.h:

Go to the source code of this file.

Classes

class  BT::BehaviorTreeFactory
 The BehaviorTreeFactory is used to create instances of a TreeNode at run-time. More...
 
struct  BT::Tree::Subtree
 
class  BT::Tree
 Struct used to store a tree. If this object goes out of scope, the tree is destroyed. More...
 

Namespaces

 BT
 

Macros

#define BT_REGISTER_NODES(factory)   BTCPP_EXPORT void BT_RegisterNodesFromPlugin(BT::BehaviorTreeFactory& factory)
 
#define BTCPP_EXPORT   static
 

Typedefs

using BT::NodeBuilder = std::function< std::unique_ptr< TreeNode >(const std::string &, const NodeConfig &)>
 The term "Builder" refers to the Builder Pattern (https://en.wikipedia.org/wiki/Builder_pattern) More...
 

Functions

std::vector< Blackboard::Ptr > BT::BlackboardBackup (const BT::Tree &tree)
 BlackboardBackup uses Blackboard::cloneInto to backup all the blackboards of the tree. More...
 
void BT::BlackboardClone (const Blackboard &src, Blackboard &dst)
 BlackboardClone make a copy of the content of the blackboard. More...
 
void BT::BlackboardRestore (const std::vector< Blackboard::Ptr > &backup, BT::Tree &tree)
 BlackboardRestore uses Blackboard::cloneInto to restore all the blackboards of the tree. More...
 
template<typename T , typename... Args>
NodeBuilder BT::CreateBuilder (Args... args)
 
template<typename T >
TreeNodeManifest BT::CreateManifest (const std::string &ID, PortsList portlist=getProvidedPorts< T >())
 
nlohmann::json BT::ExportTreeToJSON (const BT::Tree &tree)
 ExportTreeToJSON it calls ExportBlackboardToJSON for all the blackboards in the tree. More...
 
void BT::ImportTreeFromJSON (const nlohmann::json &json, BT::Tree &tree)
 ImportTreeFromJSON it calls ImportBlackboardFromJSON for all the blackboards in the tree. More...
 
bool BT::WildcardMatch (const std::string &str, StringView filter)
 

Variables

constexpr const char * BT::PLUGIN_SYMBOL = "BT_RegisterNodesFromPlugin"
 

Macro Definition Documentation

◆ BT_REGISTER_NODES

#define BT_REGISTER_NODES (   factory)    BTCPP_EXPORT void BT_RegisterNodesFromPlugin(BT::BehaviorTreeFactory& factory)

Definition at line 80 of file bt_factory.h.

◆ BTCPP_EXPORT

#define BTCPP_EXPORT   static

Definition at line 62 of file bt_factory.h.



behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18