Apollo 10.0
自动驾驶开放平台
|
Base Class for data updater with multiply channels. 更多...
#include <updater_with_channels_base.h>
Public 成员函数 | |
UpdaterWithChannelsBase (const std::vector< std::string > &filter_message_types, const std::vector< std::string > &filter_channels) | |
virtual void | GetChannelMsg (std::vector< std::string > *channels)=0 |
GetChannelMsg | |
void | GetChannelMsgWithFilter (std::vector< std::string > *channels) |
bool | IsChannelInUpdater (const std::string &message_type, const std::string &channel_name) |
Check if the channel belongs to current updater. | |
![]() | |
UpdaterBase () | |
Updaterbase | |
virtual void | StartStream (const double &time_interval_ms, const std::string &channel_name="", nlohmann::json *subscribe_param=nullptr)=0 |
Start data flow. | |
virtual void | StopStream (const std::string &channel_name="")=0 |
Stop data flow. | |
virtual void | PublishMessage (const std::string &channel_name="")=0 |
Publish Message to dreamview frontend. | |
virtual | ~UpdaterBase () |
Public 属性 | |
std::vector< std::string > | channels_ |
std::vector< std::string > | filter_message_types_ |
std::vector< std::string > | filter_channels_ |
Base Class for data updater with multiply channels.
The updater is responsible for maintaining and updating a data type used by the dreamview module, such as simulation_world, pointcloud, camera, pointcloud etc. Each type of data is a data stream that supports front-end and back-end communication of dreamview.
在文件 updater_with_channels_base.h 第 40 行定义.
apollo::dreamview::UpdaterWithChannelsBase::UpdaterWithChannelsBase | ( | const std::vector< std::string > & | filter_message_types, |
const std::vector< std::string > & | filter_channels | ||
) |
在文件 updater_with_channels_base.cc 第 27 行定义.
|
pure virtual |
void apollo::dreamview::UpdaterWithChannelsBase::GetChannelMsgWithFilter | ( | std::vector< std::string > * | channels | ) |
在文件 updater_with_channels_base.cc 第 47 行定义.
bool apollo::dreamview::UpdaterWithChannelsBase::IsChannelInUpdater | ( | const std::string & | message_type, |
const std::string & | channel_name | ||
) |
Check if the channel belongs to current updater.
message_type | The type of message in channel. |
channel_name | The name of channel. |
在文件 updater_with_channels_base.cc 第 33 行定义.
std::vector<std::string> apollo::dreamview::UpdaterWithChannelsBase::channels_ |
在文件 updater_with_channels_base.h 第 58 行定义.
std::vector<std::string> apollo::dreamview::UpdaterWithChannelsBase::filter_channels_ |
在文件 updater_with_channels_base.h 第 60 行定义.
std::vector<std::string> apollo::dreamview::UpdaterWithChannelsBase::filter_message_types_ |
在文件 updater_with_channels_base.h 第 59 行定义.