Apollo 10.0
自动驾驶开放平台
|
Management for all data updater. 更多...
#include <updater_manager.h>
Public 成员函数 | |
UpdaterManager () | |
virtual | ~UpdaterManager () |
void | RegisterUpdater (std::string path_name, UpdaterBase *updater) |
Register data updater by websocket path name. | |
bool | Start (const std::string &path_name, const double &time_interval_ms, const std::string &channel_name="", nlohmann::json *subscribe_param=nullptr) |
Start a updater implemetnent. | |
bool | Stop (const std::string &path_name, const std::string &channel_name) |
Stop updater publish data. | |
UpdaterBase * | GetUpdater (const std::string &path_name) |
Get registered updater | |
bool | IsChannelInUpdater (const std::string &path_name, const std::string &message_type, const std::string &channel_name) |
Check if the channel belongs to an updater. | |
Management for all data updater.
在文件 updater_manager.h 第 42 行定义.
|
inline |
在文件 updater_manager.h 第 44 行定义.
|
inlinevirtual |
在文件 updater_manager.h 第 45 行定义.
UpdaterBase * apollo::dreamview::UpdaterManager::GetUpdater | ( | const std::string & | path_name | ) |
Get registered updater
path_name | The path name of the data updater. |
在文件 updater_manager.cc 第 56 行定义.
bool apollo::dreamview::UpdaterManager::IsChannelInUpdater | ( | const std::string & | path_name, |
const std::string & | message_type, | ||
const std::string & | channel_name | ||
) |
Check if the channel belongs to an updater.
path_name | The path name of the data updater. |
message_type | The type of message in channel. |
channel_name | The name of channel. |
在文件 updater_manager.cc 第 63 行定义.
void apollo::dreamview::UpdaterManager::RegisterUpdater | ( | std::string | path_name, |
UpdaterBase * | updater | ||
) |
Register data updater by websocket path name.
path_name | The path name of the data updater. |
updater | The data updater. |
在文件 updater_manager.cc 第 51 行定义.
bool apollo::dreamview::UpdaterManager::Start | ( | const std::string & | path_name, |
const double & | time_interval_ms, | ||
const std::string & | channel_name = "" , |
||
nlohmann::json * | subscribe_param = nullptr |
||
) |
Start a updater implemetnent.
path_name | The path name of the data updater. |
time_interval_ms | Data update frequency, If field time_interval_ms equals to 0, it is considered a single subscribe and will not start timer |
subscribe_param | bring extra params for some updater. |
在文件 updater_manager.cc 第 23 行定义.
bool apollo::dreamview::UpdaterManager::Stop | ( | const std::string & | path_name, |
const std::string & | channel_name | ||
) |
Stop updater publish data.
path_name | The path name of the data updater. |
在文件 updater_manager.cc 第 38 行定义.