DDS_Bridge
一个基于Fast DDS的DDS桥接库
|
Represents a DDS subscription. 更多...
#include <subscriber.hpp>
Public 类型 | |
using | MsgT = typename MsgPubSubType::type |
Message type for Subscription. | |
using | SharedPtr = std::shared_ptr<Subscription<MsgPubSubType>> |
Shared pointer type for Subscription. | |
using | Callback = std::function<void(const typename MsgPubSubType::type&)> |
Callback type for message reception. |
Public 成员函数 | |
Subscription (std::shared_ptr< Node > node, const std::string &topic_name, int qos_depth, Callback cb) | |
Construct a new Subscription object, it is recommended to use the create_subscription() method of the Node class instead. | |
void | on_data_available (eprosima::fastdds::dds::DataReader *reader) override |
internal method to handle data availability, user should NOT call this directly. |
Represents a DDS subscription.
MsgPubSubType | The message type used for subscribing. |
|
inline |
Construct a new Subscription object, it is recommended to use the create_subscription() method of the Node class instead.
node | node pointer |
topic_name | The name of the topic |
qos_depth | The QoS depth |
cb | The callback function |
|
inlineoverride |
internal method to handle data availability, user should NOT call this directly.
reader | user should NOT call this directly. |