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 } // namespace BT
34 
35 #endif // BT_COUT_LOGGER_H
BT
Definition: ex01_wrap_legacy.cpp:29
BT::StdCoutLogger::~StdCoutLogger
~StdCoutLogger() override
Definition: bt_cout_logger.cpp:15
BT::StdCoutLogger::flush
virtual void flush() override
Definition: bt_cout_logger.cpp:35
BT::TreeNode
Abstract base class for Behavior Tree Nodes.
Definition: tree_node.h:55
BT::Tree
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:125
BT::StdCoutLogger::callback
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override
Definition: bt_cout_logger.cpp:20
BT::StatusChangeLogger
Definition: abstract_logger.h:17
BT::StdCoutLogger::StdCoutLogger
StdCoutLogger(const BT::Tree &tree)
Definition: bt_cout_logger.cpp:7
BT::Duration
std::chrono::high_resolution_clock::duration Duration
Definition: basic_types.h:371
BT::StdCoutLogger::ref_count
static std::atomic< bool > ref_count
Definition: bt_cout_logger.h:21
BT::NodeStatus
NodeStatus
Definition: basic_types.h:35
abstract_logger.h
BT::StdCoutLogger
AddStdCoutLoggerToTree. Give the root node of a tree, a simple callback is subscribed to any status c...
Definition: bt_cout_logger.h:19


behaviortree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Wed Jun 26 2024 02:51:19