BehaviorTree
Core Library to create and execute Behavior Trees
Loading...
Searching...
No Matches
bt_cout_logger.h
1#ifndef BT_COUT_LOGGER_H
2#define BT_COUT_LOGGER_H
3
4#include "behaviortree_cpp/loggers/abstract_logger.h"
5
6#include <cstring>
7
8namespace BT
9{
10/**
11 * @brief StdCoutLogger is a very simple logger that
12 * displays all the transitions on the console.
13 */
14
16{
17public:
18 StdCoutLogger(const BT::Tree& tree);
19 ~StdCoutLogger() override;
20
21 StdCoutLogger(const StdCoutLogger&) = delete;
22 StdCoutLogger& operator=(const StdCoutLogger&) = delete;
23 StdCoutLogger(StdCoutLogger&&) = delete;
24 StdCoutLogger& operator=(StdCoutLogger&&) = delete;
25
26 virtual void flush() override;
27
28private:
29 virtual void callback(Duration timestamp, const TreeNode& node, NodeStatus prev_status,
30 NodeStatus status) override;
31};
32
33} // namespace BT
34
35#endif // BT_COUT_LOGGER_H
Definition: abstract_logger.h:16
StdCoutLogger is a very simple logger that displays all the transitions on the console.
Definition: bt_cout_logger.h:16
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:96
Abstract base class for Behavior Tree Nodes.
Definition: tree_node.h:154
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34