Apollo 10.0
自动驾驶开放平台
|
Base Class for Reader Reader is identified by one apollo::cyber::proto::RoleAttribute, it contains the channel_name, channel_id that we subscribe, and host_name, process_id and node that we are located, and qos that describes our transportation quality. 更多...
#include <reader_base.h>
Public 成员函数 | |
ReaderBase (const proto::RoleAttributes &role_attr) | |
virtual | ~ReaderBase () |
virtual bool | Init ()=0 |
Init the Reader object | |
virtual void | Shutdown ()=0 |
Shutdown the Reader object | |
virtual void | ClearData ()=0 |
Clear local data | |
virtual void | Observe ()=0 |
Get stored data | |
virtual bool | Empty () const =0 |
Query whether the Reader has data to be handled | |
virtual bool | HasReceived () const =0 |
Query whether we have received data since last clear | |
virtual double | GetDelaySec () const =0 |
Get time interval of since last receive message | |
virtual uint32_t | PendingQueueSize () const =0 |
Get the value of pending queue size | |
virtual bool | HasWriter () |
Query is there any writer that publish the subscribed channel | |
virtual void | GetWriters (std::vector< proto::RoleAttributes > *writers) |
Get all writers pushlish the channel we subscribes | |
const std::string & | GetChannelName () const |
Get Reader's Channel name | |
uint64_t | ChannelId () const |
Get Reader's Channel id | |
const proto::QosProfile & | QosProfile () const |
Get qos profile. | |
bool | IsInit () const |
Query whether the Reader is initialized | |
Protected 属性 | |
proto::RoleAttributes | role_attr_ |
std::atomic< bool > | init_ |
Base Class for Reader Reader is identified by one apollo::cyber::proto::RoleAttribute, it contains the channel_name, channel_id that we subscribe, and host_name, process_id and node that we are located, and qos that describes our transportation quality.
在文件 reader_base.h 第 46 行定义.
|
inlineexplicit |
在文件 reader_base.h 第 48 行定义.
|
inlinevirtual |
在文件 reader_base.h 第 50 行定义.
|
inline |
Get Reader's Channel id
在文件 reader_base.h 第 134 行定义.
|
pure virtual |
Clear local data
在 apollo::cyber::blocker::IntraReader< MessageT > , 以及 apollo::cyber::Reader< MessageT > 内被实现.
|
pure virtual |
Query whether the Reader has data to be handled
在 apollo::cyber::blocker::IntraReader< MessageT > , 以及 apollo::cyber::Reader< MessageT > 内被实现.
|
inline |
Get Reader's Channel name
在文件 reader_base.h 第 125 行定义.
|
pure virtual |
Get time interval of since last receive message
|
inlinevirtual |
Get all writers pushlish the channel we subscribes
writers | result RoleAttributes vector |
被 apollo::cyber::Reader< MessageT > 重载.
在文件 reader_base.h 第 118 行定义.
|
pure virtual |
Query whether we have received data since last clear
在 apollo::cyber::blocker::IntraReader< MessageT > , 以及 apollo::cyber::Reader< MessageT > 内被实现.
|
inlinevirtual |
Query is there any writer that publish the subscribed channel
被 apollo::cyber::Reader< MessageT > 重载.
在文件 reader_base.h 第 111 行定义.
|
pure virtual |
Init the Reader object
在 apollo::cyber::blocker::IntraReader< MessageT > , 以及 apollo::cyber::Reader< MessageT > 内被实现.
|
inline |
|
pure virtual |
Get stored data
在 apollo::cyber::blocker::IntraReader< MessageT > , 以及 apollo::cyber::Reader< MessageT > 内被实现.
|
pure virtual |
Get the value of pending queue size
|
inline |
Get qos profile.
You can see qos description
在文件 reader_base.h 第 141 行定义.
|
pure virtual |
Shutdown the Reader object
在 apollo::cyber::blocker::IntraReader< MessageT > , 以及 apollo::cyber::Reader< MessageT > 内被实现.
|
protected |
在文件 reader_base.h 第 155 行定义.
|
protected |
在文件 reader_base.h 第 154 行定义.