Apollo 10.0
自动驾驶开放平台
apollo::dreamview::UpdaterBase类 参考abstract

Base Class for all data updater. 更多...

#include <updater_base.h>

类 apollo::dreamview::UpdaterBase 继承关系图:
apollo::dreamview::UpdaterBase 的协作图:

Public 成员函数

 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 ()
 

详细描述

Base Class for all data updater.

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_base.h38 行定义.

构造及析构函数说明

◆ UpdaterBase()

apollo::dreamview::UpdaterBase::UpdaterBase ( )

Updaterbase

在文件 updater_base.cc22 行定义.

22{}

◆ ~UpdaterBase()

virtual apollo::dreamview::UpdaterBase::~UpdaterBase ( )
inlinevirtual

在文件 updater_base.h64 行定义.

64{}

成员函数说明

◆ PublishMessage()

virtual void apollo::dreamview::UpdaterBase::PublishMessage ( const std::string &  channel_name = "")
pure virtual

◆ StartStream()

virtual void apollo::dreamview::UpdaterBase::StartStream ( const double &  time_interval_ms,
const std::string &  channel_name = "",
nlohmann::json *  subscribe_param = nullptr 
)
pure virtual

Start data flow.

参数
time_interval_msData stream sending frequency. 0 means single subscribe
subscribe_paramsubscribe some updater may need extra params

apollo::dreamview::ChannelsUpdater, apollo::dreamview::HMI, apollo::dreamview::MapUpdater, apollo::dreamview::ObstacleUpdater, apollo::dreamview::PerceptionCameraUpdater, apollo::dreamview::PointCloudUpdater , 以及 apollo::dreamview::SimulationWorldUpdater 内被实现.

◆ StopStream()

virtual void apollo::dreamview::UpdaterBase::StopStream ( const std::string &  channel_name = "")
pure virtual

该类的文档由以下文件生成: