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
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
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:78
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:339
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:04