DDS_Bridge
一个基于Fast DDS的DDS桥接库
载入中...
搜索中...
未找到
zclcpp::Node类 参考

Represents a DDS node. 更多...

#include <node.hpp>

类 zclcpp::Node 继承关系图:
zclcpp::Node 的协作图:

Public 成员函数

 Node (const std::string &name, eprosima::fastdds::dds::DomainId_t domain_id=0)
eprosima::fastdds::dds::DomainParticipant * participant () const
 Get the DDS DomainParticipant.
template<typename PubSubT>
auto create_publisher (const std::string &topic_name, int qos_depth=10)
 Create a publisher object
template<typename PubSubT>
auto create_subscription (const std::string &topic_name, int qos_depth, typename Subscription< PubSubT >::Callback cb)
 Create a subscription object

详细描述

Represents a DDS node.

This class is responsible for creating and managing DDS publishers and subscribers.

成员函数说明

◆ create_publisher()

template<typename PubSubT>
auto zclcpp::Node::create_publisher ( const std::string & topic_name,
int qos_depth = 10 )
inline

Create a publisher object

模板参数
PubSubTpublisher pubsub type
参数
topic_nameThe name of the topic
qos_depthThe QoS depth
返回
auto the created publisher

◆ create_subscription()

template<typename PubSubT>
auto zclcpp::Node::create_subscription ( const std::string & topic_name,
int qos_depth,
typename Subscription< PubSubT >::Callback cb )
inline

Create a subscription object

模板参数
PubSubTsubscription pubsub type
参数
topic_nameThe name of the topic
qos_depthThe QoS depth
cbThe callback to be called when a message is received
返回
auto the created subscription

◆ participant()

eprosima::fastdds::dds::DomainParticipant * zclcpp::Node::participant ( ) const
inline

Get the DDS DomainParticipant.

返回
eprosima::fastdds::dds::DomainParticipant*

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