DDS_Bridge
一个基于Fast DDS的DDS桥接库
载入中...
搜索中...
未找到
zclcpp::Publisher< MsgPubSubType > 模板类 参考

Represents a DDS publisher. 更多...

#include <publisher.hpp>

Public 类型

using MsgT = typename MsgPubSubType::type
 Message type for Publisher.
using SharedPtr = std::shared_ptr<Publisher<MsgPubSubType>>
 Shared pointer type for Publisher.

Public 成员函数

 Publisher (std::shared_ptr< Node > node, const std::string &topic_name, int qos_depth)
 Construct a new Publisher object, it is recommended to use the create_publisher() method of the Node class instead.
void publish (const typename MsgPubSubType::type &msg)
 Publish a message.

详细描述

template<typename MsgPubSubType>
class zclcpp::Publisher< MsgPubSubType >

Represents a DDS publisher.

模板参数
MsgPubSubTypeThe message type used for publishing.

构造及析构函数说明

◆ Publisher()

template<typename MsgPubSubType>
zclcpp::Publisher< MsgPubSubType >::Publisher ( std::shared_ptr< Node > node,
const std::string & topic_name,
int qos_depth )
inline

Construct a new Publisher object, it is recommended to use the create_publisher() method of the Node class instead.

参数
nodenode pointer
topic_nameThe name of the topic
qos_depthThe QoS depth

成员函数说明

◆ publish()

template<typename MsgPubSubType>
void zclcpp::Publisher< MsgPubSubType >::publish ( const typename MsgPubSubType::type & msg)
inline

Publish a message.

参数
msgThe message to publish.

该类的文档由以下文件生成:
  • C:/Users/ZhouZishun/OneDrive/documents/PhDDoc/PoweredByZZS/DDS_Bridge/src/node.hpp
  • C:/Users/ZhouZishun/OneDrive/documents/PhDDoc/PoweredByZZS/DDS_Bridge/src/publisher.hpp