1 #ifndef BT_FILE_LOGGER_H 2 #define BT_FILE_LOGGER_H 14 FileLogger(
const Tree &tree,
const char* filename, uint16_t buffer_size = 10);
21 virtual void flush()
override;
26 std::chrono::high_resolution_clock::time_point
start_time;
28 std::vector<SerializedTransition>
buffer_;
35 #endif // BT_FILE_LOGGER_H FileLogger(const Tree &tree, const char *filename, uint16_t buffer_size=10)
virtual void flush() override
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override
Abstract base class for Behavior Tree Nodes.
std::vector< SerializedTransition > buffer_
std::chrono::high_resolution_clock::time_point start_time
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
virtual ~FileLogger() override
std::chrono::high_resolution_clock::duration Duration