Struct TopicSampleResult

Struct Documentation

struct TopicSampleResult

Result of a topic sample operation.

Public Members

std::string topic_name
std::string message_type
std::optional<json> data

Message data as JSON (nullopt if unavailable)

bool has_data = {false}

Whether actual data was received.

size_t publisher_count = {0}
size_t subscriber_count = {0}
int64_t timestamp_ns = {0}

Sample timestamp in nanoseconds since epoch.

std::vector<TopicEndpoint> publishers

List of publisher endpoints with QoS.

std::vector<TopicEndpoint> subscribers

List of subscriber endpoints with QoS.