Apollo 10.0
自动驾驶开放平台
|
A wrapper around WebSocketHandler to keep pushing PointCloud to frontend via websocket while handling the response from frontend. 更多...
#include <point_cloud_updater.h>
Public 类型 | |
using | DvCallback = std::function< bool(const std::string &string)> |
Public 成员函数 | |
PointCloudUpdater (WebSocketHandler *websocket, SimulationWorldUpdater *sim_world_updater) | |
Constructor with the websocket handler. | |
~PointCloudUpdater () | |
void | Start (DvCallback callback_api) |
Starts to push PointCloud to frontend. | |
void | Stop () |
PointCloudUpdater (WebSocketHandler *websocket) | |
Constructor with the websocket handler. | |
~PointCloudUpdater () | |
void | Stop () |
Starts to push PointCloud to frontend. | |
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. | |
void | GetChannelMsg (std::vector< std::string > *channels) override |
GetChannelMsg | |
![]() | |
UpdaterWithChannelsBase (const std::vector< std::string > &filter_message_types, const std::vector< std::string > &filter_channels) | |
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 | ~UpdaterBase () |
静态 Public 成员函数 | |
static void | LoadLidarHeight (const std::string &file_path) |
静态 Public 属性 | |
static float | lidar_height_ = kDefaultLidarHeight |
static boost::shared_mutex | mutex_ |
额外继承的成员函数 | |
![]() | |
std::vector< std::string > | channels_ |
std::vector< std::string > | filter_message_types_ |
std::vector< std::string > | filter_channels_ |
A wrapper around WebSocketHandler to keep pushing PointCloud to frontend via websocket while handling the response from frontend.
在文件 point_cloud_updater.h 第 53 行定义.
using apollo::dreamview::PointCloudUpdater::DvCallback = std::function<bool(const std::string &string)> |
在文件 point_cloud_updater.h 第 66 行定义.
apollo::dreamview::PointCloudUpdater::PointCloudUpdater | ( | WebSocketHandler * | websocket, |
SimulationWorldUpdater * | sim_world_updater | ||
) |
Constructor with the websocket handler.
websocket | Pointer of the websocket handler that has been attached to the server. |
simulationworldupdater | pointer |
在文件 point_cloud_updater.cc 第 42 行定义.
apollo::dreamview::PointCloudUpdater::~PointCloudUpdater | ( | ) |
在文件 point_cloud_updater.cc 第 52 行定义.
|
explicit |
Constructor with the websocket handler.
websocket | Pointer of the websocket handler that has been attached to the server. |
simulationworldupdater | pointer |
在文件 point_cloud_updater.cc 第 43 行定义.
apollo::dreamview::PointCloudUpdater::~PointCloudUpdater | ( | ) |
|
overridevirtual |
GetChannelMsg
|
static |
在文件 point_cloud_updater.cc 第 54 行定义.
void apollo::dreamview::PointCloudUpdater::OnTimer | ( | const std::string & | channel_name = "" | ) |
在文件 point_cloud_updater.cc 第 109 行定义.
|
overridevirtual |
Publish Message to dreamview frontend.
实现了 apollo::dreamview::UpdaterBase.
在文件 point_cloud_updater.cc 第 126 行定义.
void apollo::dreamview::PointCloudUpdater::Start | ( | DvCallback | callback_api | ) |
Starts to push PointCloud to frontend.
在文件 point_cloud_updater.cc 第 205 行定义.
|
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.
在文件 point_cloud_updater.cc 第 84 行定义.
void apollo::dreamview::PointCloudUpdater::Stop | ( | ) |
在文件 point_cloud_updater.cc 第 215 行定义.
void apollo::dreamview::PointCloudUpdater::Stop | ( | ) |
Starts to push PointCloud to frontend.
|
overridevirtual |
Stop data flow.
实现了 apollo::dreamview::UpdaterBase.
在文件 point_cloud_updater.cc 第 112 行定义.
|
static |
在文件 point_cloud_updater.h 第 75 行定义.
|
static |
在文件 point_cloud_updater.h 第 79 行定义.