Go to the documentation of this file.
48 const NodeStatistics&
getStatistics(
const std::string& path)
const;
54 const std::unordered_map<uint16_t, NodeStatistics>&
statistics()
const;
57 const std::unordered_map<std::string, uint16_t>&
pathToUID()
const;
59 const std::map<uint16_t, std::string>&
uidToPath()
const;
72 #endif // BT_OBSERVER_H
virtual void flush() override
const NodeStatistics & getStatistics(const std::string &path) const
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override
Abstract base class for Behavior Tree Nodes.
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
unsigned transitions_count
std::chrono::high_resolution_clock::duration Duration
std::unordered_map< std::string, uint16_t > _path_to_uid
NodeStatus current_status
std::unordered_map< uint16_t, NodeStatistics > _statistics
const std::unordered_map< std::string, uint16_t > & pathToUID() const
The TreeObserver is used to collect statistics about which nodes are executed and their returned stat...
TreeObserver(const BT::Tree &tree)
const std::map< uint16_t, std::string > & uidToPath() const
const std::unordered_map< uint16_t, NodeStatistics > & statistics() const
std::map< uint16_t, std::string > _uid_to_path