Go to the documentation of this file. 1 #ifndef ABSTRACT_LOGGER_H
2 #define ABSTRACT_LOGGER_H
26 virtual void flush() = 0;
75 this->
callback(timestamp.time_since_epoch(), node, prev, status);
84 auto visitor = [
this, subscribeCallback](
TreeNode* node) {
85 subscribers_.push_back(node->subscribeToStatusChange(std::move(subscribeCallback)));
92 #endif // ABSTRACT_LOGGER_H
bool showsTransitionToIdle() const
std::vector< TreeNode::StatusChangeSubscriber > subscribers_
virtual ~StatusChangeLogger()=default
void enableTransitionToIdle(bool enable)
Abstract base class for Behavior Tree Nodes.
BT::TimePoint first_timestamp_
virtual void callback(BT::Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status)=0
std::array< uint8_t, 12 > SerializedTransition
std::chrono::high_resolution_clock::duration Duration
void applyRecursiveVisitor(const TreeNode *root_node, const std::function< void(const TreeNode *)> &visitor)
StatusChangeLogger(TreeNode *root_node)
void setTimestampType(TimestampType type)
bool show_transition_to_idle_
void setEnabled(bool enabled)
std::chrono::high_resolution_clock::time_point TimePoint
behaviortree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Wed Jun 26 2024 02:51:19