|
Apollo 11.0
自动驾驶开放平台
|
A wrapper around SimulationWorldService and WebSocketHandler to keep pushing SimulationWorld to frontend via websocket while handling the response from frontend. 更多...
#include <simulation_world_updater.h>
Public 成员函数 | |
| SimulationWorldUpdater (WebSocketHandler *websocket, WebSocketHandler *map_ws, WebSocketHandler *camera_ws, WebSocketHandler *plugin_ws, const MapService *map_service, PerceptionCameraUpdater *perception_camera_updater, PluginManager *plugin_manager, bool routing_from_file=false) | |
| Constructor with the websocket handler. | |
| void | Start () |
| Starts to push simulation_world to frontend. | |
| double | LastAdcTimestampSec () |
| SimulationWorldUpdater (WebSocketHandler *websocket, WebSocketHandler *map_ws, WebSocketHandler *plugin_ws, const MapService *map_service, PluginManager *plugin_manager, WebSocketHandler *sim_world_ws, HMI *hmi, bool routing_from_file=false) | |
| Constructor with the websocket handler. | |
| void | StartStream (const double &time_interval_ms, const std::string &channel_name="", nlohmann::json *subscribe_param=nullptr) override |
| Starts to push simulation_world to frontend. | |
| void | StopStream (const std::string &channel_name="") override |
| Stop data flow. | |
| void | PublishMessage (const std::string &channel_name="") override |
| Publish Message to dreamview frontend. | |
| double | LastAdcTimestampSec () |
Public 成员函数 继承自 apollo::dreamview::UpdaterBase | |
| UpdaterBase () | |
| Updaterbase | |
| virtual | ~UpdaterBase () |
Public 属性 | |
| double | time_interval_ms_ |
静态 Public 属性 | |
| static constexpr double | kSimWorldTimeIntervalMs = 100 |
A wrapper around SimulationWorldService and WebSocketHandler to keep pushing SimulationWorld to frontend via websocket while handling the response from frontend.
在文件 simulation_world_updater.h 第 59 行定义.
| apollo::dreamview::SimulationWorldUpdater::SimulationWorldUpdater | ( | WebSocketHandler * | websocket, |
| WebSocketHandler * | map_ws, | ||
| WebSocketHandler * | camera_ws, | ||
| WebSocketHandler * | plugin_ws, | ||
| const MapService * | map_service, | ||
| PerceptionCameraUpdater * | perception_camera_updater, | ||
| PluginManager * | plugin_manager, | ||
| bool | routing_from_file = false |
||
| ) |
Constructor with the websocket handler.
| websocket | Pointer of the websocket handler that has been attached to the server. |
| sim_control | Pointer of sim control. |
| map_service | Pointer of the map service to provide a high-level API of hdmap. |
| routing_from_file | whether to read initial routing from file. |
在文件 simulation_world_updater.cc 第 56 行定义.
| apollo::dreamview::SimulationWorldUpdater::SimulationWorldUpdater | ( | WebSocketHandler * | websocket, |
| WebSocketHandler * | map_ws, | ||
| WebSocketHandler * | plugin_ws, | ||
| const MapService * | map_service, | ||
| PluginManager * | plugin_manager, | ||
| WebSocketHandler * | sim_world_ws, | ||
| HMI * | hmi, | ||
| bool | routing_from_file = false |
||
| ) |
Constructor with the websocket handler.
| websocket | Pointer of the websocket handler that has been attached to the server. |
| sim_control | Pointer of sim control. |
| map_service | Pointer of the map service to provide a high-level API of hdmap. |
| routing_from_file | whether to read initial routing from file. |
在文件 simulation_world_updater.cc 第 57 行定义.
|
inline |
在文件 simulation_world_updater.h 第 87 行定义.
|
inline |
在文件 simulation_world_updater.h 第 91 行定义.
|
overridevirtual |
Publish Message to dreamview frontend.
实现了 apollo::dreamview::UpdaterBase.
在文件 simulation_world_updater.cc 第 1142 行定义.
| void apollo::dreamview::SimulationWorldUpdater::Start | ( | ) |
Starts to push simulation_world to frontend.
在文件 simulation_world_updater.cc 第 709 行定义.
|
overridevirtual |
Starts to push simulation_world to frontend.
实现了 apollo::dreamview::UpdaterBase.
在文件 simulation_world_updater.cc 第 1106 行定义.
|
overridevirtual |
Stop data flow.
实现了 apollo::dreamview::UpdaterBase.
在文件 simulation_world_updater.cc 第 1121 行定义.
|
staticconstexpr |
在文件 simulation_world_updater.h 第 85 行定义.
| double apollo::dreamview::SimulationWorldUpdater::time_interval_ms_ |
在文件 simulation_world_updater.h 第 89 行定义.