|
Apollo 11.0
自动驾驶开放平台
|
A wrapper around WebSocketHandler to keep pushing map to frontend via websocket. 更多...
#include <map_updater.h>
Public 成员函数 | |
| MapUpdater (WebSocketHandler *websocket, const MapService *map_service) | |
| Constructor with the websocket handler. | |
| ~MapUpdater () 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 | OnTimer (const std::string &channel_name="") |
| 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 map to frontend via websocket.
在文件 map_updater.h 第 50 行定义.
| apollo::dreamview::MapUpdater::MapUpdater | ( | WebSocketHandler * | websocket, |
| const MapService * | map_service | ||
| ) |
Constructor with the websocket handler.
| websocket | Pointer of the websocket handler that has been attached to the server. |
| map_service | A service object that handles map data. |
在文件 map_updater.cc 第 34 行定义.
|
inlineoverride |
在文件 map_updater.h 第 59 行定义.
| void apollo::dreamview::MapUpdater::OnTimer | ( | const std::string & | channel_name = "" | ) |
在文件 map_updater.cc 第 70 行定义.
|
overridevirtual |
Publish Message to dreamview frontend.
实现了 apollo::dreamview::UpdaterBase.
在文件 map_updater.cc 第 55 行定义.
|
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.
在文件 map_updater.cc 第 72 行定义.
|
overridevirtual |
Stop data flow.
实现了 apollo::dreamview::UpdaterBase.
在文件 map_updater.cc 第 101 行定义.