Public Member Functions | List of all members
BT::Parser Class Referenceabstract

The BehaviorTreeParser is a class used to read the model of a BehaviorTree from file or text and instantiate the corresponding tree using the BehaviorTreeFactory. More...

#include <bt_parser.h>

Inheritance diagram for BT::Parser:
Inheritance graph
[legend]

Public Member Functions

virtual void clearInternalState ()
 
virtual Tree instantiateTree (const Blackboard::Ptr &root_blackboard, std::string tree_name={})=0
 
virtual void loadFromFile (const std::filesystem::path &filename, bool add_includes=true)=0
 
virtual void loadFromText (const std::string &xml_text, bool add_includes=true)=0
 
Parseroperator= (const Parser &other)=delete
 
Parseroperator= (Parser &&other)=default
 
 Parser ()=default
 
 Parser (const Parser &other)=delete
 
 Parser (Parser &&other)=default
 
virtual std::vector< std::string > registeredBehaviorTrees () const =0
 
virtual ~Parser ()=default
 

Detailed Description

The BehaviorTreeParser is a class used to read the model of a BehaviorTree from file or text and instantiate the corresponding tree using the BehaviorTreeFactory.

Definition at line 26 of file bt_parser.h.

Constructor & Destructor Documentation

◆ Parser() [1/3]

BT::Parser::Parser ( )
default

◆ ~Parser()

virtual BT::Parser::~Parser ( )
virtualdefault

◆ Parser() [2/3]

BT::Parser::Parser ( const Parser other)
delete

◆ Parser() [3/3]

BT::Parser::Parser ( Parser &&  other)
default

Member Function Documentation

◆ clearInternalState()

virtual void BT::Parser::clearInternalState ( )
inlinevirtual

Reimplemented in BT::XMLParser.

Definition at line 49 of file bt_parser.h.

◆ instantiateTree()

virtual Tree BT::Parser::instantiateTree ( const Blackboard::Ptr root_blackboard,
std::string  tree_name = {} 
)
pure virtual

Implemented in BT::XMLParser.

◆ loadFromFile()

virtual void BT::Parser::loadFromFile ( const std::filesystem::path &  filename,
bool  add_includes = true 
)
pure virtual

Implemented in BT::XMLParser.

◆ loadFromText()

virtual void BT::Parser::loadFromText ( const std::string &  xml_text,
bool  add_includes = true 
)
pure virtual

Implemented in BT::XMLParser.

◆ operator=() [1/2]

Parser& BT::Parser::operator= ( const Parser other)
delete

◆ operator=() [2/2]

Parser& BT::Parser::operator= ( Parser &&  other)
default

◆ registeredBehaviorTrees()

virtual std::vector<std::string> BT::Parser::registeredBehaviorTrees ( ) const
pure virtual

Implemented in BT::XMLParser.


The documentation for this class was generated from the following file:


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