The Blackboard is the mechanism used by BehaviorTrees to exchange typed data.
More...
#include <blackboard.h>
|
| void | addSubtreeRemapping (std::string internal, std::string external) |
| |
| void | debugMessage () const |
| |
| template<typename T > |
| bool | get (const std::string &key, T &value) const |
| |
| template<typename T > |
| T | get (const std::string &key) const |
| |
| const Any * | getAny (const std::string &key) const |
| | The method getAny allow the user to access directly the type erased value. More...
|
| |
| Any * | getAny (const std::string &key) |
| |
| const PortInfo * | portInfo (const std::string &key) |
| |
| template<typename T > |
| void | set (const std::string &key, const T &value) |
| | Update the entry with the given key. More...
|
| |
| void | setPortInfo (std::string key, const PortInfo &info) |
| |
| virtual | ~Blackboard ()=default |
| |
The Blackboard is the mechanism used by BehaviorTrees to exchange typed data.
Definition at line 23 of file blackboard.h.
| virtual BT::Blackboard::~Blackboard |
( |
| ) |
|
|
virtualdefault |
| void BT::Blackboard::addSubtreeRemapping |
( |
std::string |
internal, |
|
|
std::string |
external |
|
) |
| |
Use this static method to create an instance of the BlackBoard to share among all your NodeTrees.
Definition at line 38 of file blackboard.h.
| void BT::Blackboard::debugMessage |
( |
| ) |
const |
template<typename T >
| bool BT::Blackboard::get |
( |
const std::string & |
key, |
|
|
T & |
value |
|
) |
| const |
|
inline |
Return true if the entry with the given key was found. Note that this method may throw an exception if the cast to T failed.
Definition at line 87 of file blackboard.h.
template<typename T >
| T BT::Blackboard::get |
( |
const std::string & |
key | ) |
const |
|
inline |
| const Any* BT::Blackboard::getAny |
( |
const std::string & |
key | ) |
const |
|
inline |
The method getAny allow the user to access directly the type erased value.
- Returns
- the pointer or nullptr if it fails.
Definition at line 51 of file blackboard.h.
| Any* BT::Blackboard::getAny |
( |
const std::string & |
key | ) |
|
|
inline |
| const PortInfo * BT::Blackboard::portInfo |
( |
const std::string & |
key | ) |
|
template<typename T >
| void BT::Blackboard::set |
( |
const std::string & |
key, |
|
|
const T & |
value |
|
) |
| |
|
inline |
Update the entry with the given key.
Definition at line 117 of file blackboard.h.
| void BT::Blackboard::setPortInfo |
( |
std::string |
key, |
|
|
const PortInfo & |
info |
|
) |
| |
| std::unordered_map<std::string,std::string> BT::Blackboard::internal_to_external_ |
|
private |
| std::mutex BT::Blackboard::mutex_ |
|
mutableprivate |
| std::weak_ptr<Blackboard> BT::Blackboard::parent_bb_ |
|
private |
| std::unordered_map<std::string, Entry> BT::Blackboard::storage_ |
|
private |
The documentation for this class was generated from the following files: