bt_cout_logger.h
Go to the documentation of this file.
1 #ifndef BT_COUT_LOGGER_H
2 #define BT_COUT_LOGGER_H
3 
4 #include <cstring>
5 #include "abstract_logger.h"
6 
7 namespace BT
8 {
20 {
21  static std::atomic<bool> ref_count;
22 
23  public:
24  StdCoutLogger(const BT::Tree& tree);
25  ~StdCoutLogger() override;
26 
27  virtual void callback(Duration timestamp, const TreeNode& node, NodeStatus prev_status,
28  NodeStatus status) override;
29 
30  virtual void flush() override;
31 };
32 
33 } // end namespace
34 
35 #endif // BT_COUT_LOGGER_H
static std::atomic< bool > ref_count
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:130
Abstract base class for Behavior Tree Nodes.
Definition: tree_node.h:53
StdCoutLogger(const BT::Tree &tree)
~StdCoutLogger() override
NodeStatus
Definition: basic_types.h:35
virtual void flush() override
AddStdCoutLoggerToTree. Give the root node of a tree, a simple callback is subscribed to any status c...
std::chrono::high_resolution_clock::duration Duration
Definition: basic_types.h:340
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override


behaviotree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Tue May 4 2021 02:56:24