1 #ifndef BT_ZMQ_PUBLISHER_H 2 #define BT_ZMQ_PUBLISHER_H 24 virtual void flush()
override;
49 #endif // BT_ZMQ_PUBLISHER_H std::vector< uint8_t > status_buffer_
std::chrono::high_resolution_clock::time_point TimePoint
std::vector< uint8_t > tree_buffer_
std::atomic_bool active_server_
static pthread_mutex_t mutex
static std::atomic< bool > ref_count
virtual void flush() override
void createStatusBuffer()
std::future< void > send_future_
virtual void callback(Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override
PublisherZMQ(const BT::Tree &tree, int max_msg_per_second=25)
Abstract base class for Behavior Tree Nodes.
std::chrono::microseconds min_time_between_msgs_
std::vector< SerializedTransition > transition_buffer_
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
std::chrono::high_resolution_clock::duration Duration
std::atomic_bool send_pending_