RMVL  2.4.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::lpss::async::Subscriber< MsgType > 模板类 参考

异步订阅者代理 更多...

#include <rmvl/lpss/node.hpp>

rm::lpss::async::Subscriber< MsgType > 的协作图:

Public 类型

using ptr = std::shared_ptr<Subscriber<MsgType>>

Public 成员函数

bool invalid () const noexcept
 判断订阅者是否无效

详细描述

template<typename MsgType>
class rm::lpss::async::Subscriber< MsgType >

异步订阅者代理

模板参数
MsgType消息类型
  • 用户需使用 lpss::async::NodecreateSubscriber 方法创建订阅者
  • 订阅者可使用 subscribe 方法 重新 订阅指定话题的消息
  • 在创建订阅者后,自动注册到本地通信端点,并向所有通过 NDP 发现的节点发送 EDP 消息

成员类型定义说明

◆ ptr

template<typename MsgType>
using rm::lpss::async::Subscriber< MsgType >::ptr = std::shared_ptr<Subscriber<MsgType>>

成员函数说明

◆ invalid()

template<typename MsgType>
bool rm::lpss::async::Subscriber< MsgType >::invalid ( ) const
inlinenoexcept

判断订阅者是否无效