#include <bt_zmq_publisher.h>
Classes | |
struct | Pimpl |
Public Member Functions | |
PublisherZMQ (const BT::Tree &tree, int max_msg_per_second=25) | |
virtual | ~PublisherZMQ () |
Public Member Functions inherited from BT::StatusChangeLogger | |
bool | enabled () const |
void | enableTransitionToIdle (bool enable) |
void | setEnabled (bool enabled) |
void | seTimestampType (TimestampType type) |
bool | showsTransitionToIdle () const |
StatusChangeLogger (TreeNode *root_node) | |
virtual | ~StatusChangeLogger ()=default |
Private Member Functions | |
virtual void | callback (Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status) override |
void | createStatusBuffer () |
virtual void | flush () override |
Private Attributes | |
std::atomic_bool | active_server_ |
TimePoint | deadline_ |
std::chrono::microseconds | min_time_between_msgs_ |
std::mutex | mutex_ |
std::future< void > | send_future_ |
std::atomic_bool | send_pending_ |
std::vector< uint8_t > | status_buffer_ |
std::thread | thread_ |
std::vector< SerializedTransition > | transition_buffer_ |
const BT::Tree & | tree_ |
std::vector< uint8_t > | tree_buffer_ |
Pimpl * | zmq_ |
Static Private Attributes | |
static std::atomic< bool > | ref_count |
Definition at line 11 of file bt_zmq_publisher.h.
BT::PublisherZMQ::PublisherZMQ | ( | const BT::Tree & | tree, |
int | max_msg_per_second = 25 |
||
) |
Definition at line 24 of file bt_zmq_publisher.cpp.
|
virtual |
Definition at line 80 of file bt_zmq_publisher.cpp.
|
overrideprivatevirtual |
Implements BT::StatusChangeLogger.
Definition at line 105 of file bt_zmq_publisher.cpp.
|
private |
Definition at line 93 of file bt_zmq_publisher.cpp.
|
overrideprivatevirtual |
Implements BT::StatusChangeLogger.
Definition at line 127 of file bt_zmq_publisher.cpp.
|
private |
Definition at line 32 of file bt_zmq_publisher.h.
|
private |
Definition at line 37 of file bt_zmq_publisher.h.
|
private |
Definition at line 30 of file bt_zmq_publisher.h.
|
private |
Definition at line 38 of file bt_zmq_publisher.h.
|
staticprivate |
Definition at line 13 of file bt_zmq_publisher.h.
|
private |
Definition at line 41 of file bt_zmq_publisher.h.
|
private |
Definition at line 39 of file bt_zmq_publisher.h.
|
private |
Definition at line 28 of file bt_zmq_publisher.h.
|
private |
Definition at line 33 of file bt_zmq_publisher.h.
|
private |
Definition at line 29 of file bt_zmq_publisher.h.
|
private |
Definition at line 26 of file bt_zmq_publisher.h.
|
private |
Definition at line 27 of file bt_zmq_publisher.h.
|
private |
Definition at line 43 of file bt_zmq_publisher.h.