|
Apollo 11.0
自动驾驶开放平台
|
A wrapper around WebSocketHandler to keep pushing specified channels info to frontend via websocket. 更多...
#include <channels_updater.h>
Public 类型 | |
| using | ReaderMap = std::unordered_map< std::string, ChannelUpdater > |
Public 成员函数 | |
| ChannelsUpdater (WebSocketHandler *websocket) | |
| Constructor with the websocket handler. | |
| ~ChannelsUpdater () override | |
| void | StartStream (const double &time_interval_ms, const std::string &channel_name="", nlohmann::json *subscribe_param=nullptr) override |
| Start data flow. | |
| void | StopStream (const std::string &channel_name="") override |
| Stop data flow. | |
| void | PublishMessage (const std::string &channel_name="") override |
| Publish Message to dreamview frontend. | |
Public 成员函数 继承自 apollo::dreamview::UpdaterBase | |
| UpdaterBase () | |
| Updaterbase | |
| virtual | ~UpdaterBase () |
A wrapper around WebSocketHandler to keep pushing specified channels info to frontend via websocket.
在文件 channels_updater.h 第 53 行定义.
| using apollo::dreamview::ChannelsUpdater::ReaderMap = std::unordered_map<std::string, ChannelUpdater> |
在文件 channels_updater.h 第 55 行定义.
|
explicit |
Constructor with the websocket handler.
| websocket | Pointer of the websocket handler that has been attached to the server. |
在文件 channels_updater.cc 第 36 行定义.
|
inlineoverride |
在文件 channels_updater.h 第 62 行定义.
|
overridevirtual |
Publish Message to dreamview frontend.
实现了 apollo::dreamview::UpdaterBase.
在文件 channels_updater.cc 第 40 行定义.
|
overridevirtual |
Start data flow.
| time_interval_ms | Data stream sending frequency. 0 means single subscribe |
| subscribe_param | subscribe some updater may need extra params |
实现了 apollo::dreamview::UpdaterBase.
在文件 channels_updater.cc 第 79 行定义.
|
overridevirtual |
Stop data flow.
实现了 apollo::dreamview::UpdaterBase.
在文件 channels_updater.cc 第 113 行定义.