Go to the documentation of this file.
21 file_os_.open(filename, std::ofstream::binary | std::ofstream::out);
25 flatbuffers::WriteScalar(size_buff,
static_cast<int32_t
>(builder.
GetSize()));
60 for (
const auto& array :
buffer_)
62 file_os_.write(
reinterpret_cast<const char*
>(array.data()), array.size());
Helper class to hold data needed in creation of a FlatBuffer. To serialize data, you typically call o...
void enableTransitionToIdle(bool enable)
Abstract base class for Behavior Tree Nodes.
uint8_t * GetBufferPointer() const
Get the serialized buffer (after you call Finish()).
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
virtual ~FileLogger() override
FileLogger(const Tree &tree, const char *filename, uint16_t buffer_size=10)
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override
SerializedTransition SerializeTransition(uint16_t UID, Duration timestamp, NodeStatus prev_status, NodeStatus status)
std::array< uint8_t, 12 > SerializedTransition
static raw_event_t * buffer
void CreateFlatbuffersBehaviorTree(flatbuffers::FlatBufferBuilder &builder, const BT::Tree &tree)
std::chrono::high_resolution_clock::duration Duration
uoffset_t GetSize() const
The current size of the serialized buffer, counting from the end.
virtual void flush() override
std::vector< SerializedTransition > buffer_
behaviortree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Wed Jun 26 2024 02:51:19