Apollo 10.0
自动驾驶开放平台
|
#include <hmi_worker.h>
Public 类型 | |
using | DvCallback = std::function< nlohmann::json(const std::string &function_name, const nlohmann::json ¶m_json)> |
using | StatusUpdateHandler = std::function< void(const bool status_changed, HMIStatus *status)> |
using | DvCallback = std::function< nlohmann::json(const std::string &function_name, const nlohmann::json ¶m_json)> |
using | StatusUpdateHandler = std::function< void(const bool status_changed, HMIStatus *status)> |
Public 成员函数 | |
HMIWorker () | |
HMIWorker (const std::shared_ptr< apollo::cyber::Node > &node) | |
void | Start (DvCallback callback_api) |
void | Stop () |
bool | Trigger (const HMIAction action) |
bool | Trigger (const HMIAction action, const std::string &value) |
void | RegisterStatusUpdateHandler (StatusUpdateHandler handler) |
void | SubmitAudioEvent (const uint64_t event_time_ms, const int obstacle_id, const int audio_type, const int moving_result, const int audio_direction, const bool is_siren_on) |
void | SubmitDriveEvent (const uint64_t event_time_ms, const std::string &event_msg, const std::vector< std::string > &event_types, const bool is_reportable) |
void | SensorCalibrationPreprocess (const std::string &task_type) |
void | VehicleCalibrationPreprocess () |
HMIStatus | GetStatus () const |
bool | UpdateScenarioSetToStatus (const std::string &scenario_set_id, const std::string &scenario_set_name) |
bool | UpdateScenarioSet (const std::string &scenario_set_id, const std::string &scenario_set_name, ScenarioSet *new_scenario_set) |
bool | UpdateDynamicModelToStatus (const std::string &dynamic_model_name) |
void | UpdateComponentStatus () |
bool | LoadRecords () |
bool | ReloadVehicles () |
bool | GetScenarioSetPath (const std::string &scenario_set_id, std::string *scenario_set_path) |
void | UpdateCameraSensorChannelToStatus (const std::string &channel_name) |
void | UpdatePointCloudChannelToStatus (const std::string &channel_name) |
HMIWorker (apollo::common::monitor::MonitorLogBuffer monitor_log_buffer) | |
HMIWorker (const std::shared_ptr< apollo::cyber::Node > &node, const apollo::common::monitor::MonitorLogBuffer &monitor_log_buffer) | |
void | Start (DvCallback callback_api) |
void | Stop () |
bool | Trigger (const HMIAction action) |
bool | Trigger (const HMIAction action, const std::string &value) |
void | RegisterStatusUpdateHandler (StatusUpdateHandler handler) |
void | SubmitAudioEvent (const uint64_t event_time_ms, const int obstacle_id, const int audio_type, const int moving_result, const int audio_direction, const bool is_siren_on) |
void | SubmitDriveEvent (const uint64_t event_time_ms, const std::string &event_msg, const std::vector< std::string > &event_types, const bool is_reportable) |
void | SensorCalibrationPreprocess (const std::string &task_type) |
void | VehicleCalibrationPreprocess () |
HMIStatus | GetStatus () const |
bool | UpdateDynamicModelToStatus (const std::string &dynamic_model_name) |
void | UpdateComponentStatus () |
bool | UpdateMapToStatus (const std::string &map_name) |
bool | LoadRecords () |
bool | LoadRecordAndChangeStatus (const std::string &record_name) |
bool | LoadRecord (const std::string &record_name, const std::string &record_file_path, double *total_time_s) |
bool | RecordIsLoaded (const std::string &record_id) |
bool | RePlayRecord () |
bool | LoadRtkRecords () |
void | UpdateRtkRecordToStatus (const std::string &new_name) |
bool | handlePlayRecordProcess (const std::string &action_type) |
control the nohup play record process by action_type | |
bool | ResetRecordProgress (const double &progress) |
reset the play record progress to jump. | |
bool | ReloadVehicles () |
void | GetScenarioSetPath (const std::string &scenario_set_id, std::string *scenario_set_path) |
void | UpdateCameraSensorChannelToStatus (const std::string &channel_name) |
void | UpdatePointCloudChannelToStatus (const std::string &channel_name) |
bool | StartDataRecorder () |
bool | StopDataRecorder () |
int | SaveDataRecorder (const std::string &new_name) |
bool | DeleteDataRecorder () |
bool | StartRtkDataRecorder () |
bool | StopRtkDataRecorder () |
bool | DeleteRtkDataRecorder () |
int | SaveRtkDataRecorder (const std::string &new_name) |
bool | StopPlayRtkRecorder () |
nlohmann::json | StartPlayRtkRecorder () |
void | ChangeMapVal (const std::string &map_name) |
bool | AddOrModifyObjectToDB (const std::string &key, const std::string &value) |
bool | DeleteObjectToDB (const std::string &key) |
std::string | GetObjectFromDB (const std::string &key) |
std::vector< std::pair< std::string, std::string > > | GetTuplesWithTypeFromDB (const std::string &type) |
bool | StartTerminal () |
bool | isProcessRunning (const std::string &process_name) |
Check if a process exists | |
std::string | GetCurrentModeDefaultLayout () |
Get dv current mode default layout. | |
std::string | GetDvPluginPanelsJsonStr () |
Get dv plugin panels json of frontend. | |
在文件 hmi_worker.h 第 56 行定义.
using apollo::dreamview::HMIWorker::DvCallback = std::function<nlohmann::json( const std::string& function_name, const nlohmann::json& param_json)> |
在文件 hmi_worker.h 第 58 行定义.
using apollo::dreamview::HMIWorker::DvCallback = std::function<nlohmann::json( const std::string& function_name, const nlohmann::json& param_json)> |
在文件 hmi_worker.h 第 58 行定义.
using apollo::dreamview::HMIWorker::StatusUpdateHandler = std::function<void(const bool status_changed, HMIStatus* status)> |
在文件 hmi_worker.h 第 72 行定义.
using apollo::dreamview::HMIWorker::StatusUpdateHandler = std::function<void(const bool status_changed, HMIStatus* status)> |
在文件 hmi_worker.h 第 76 行定义.
|
inline |
在文件 hmi_worker.h 第 60 行定义.
|
explicit |
|
inlineexplicit |
在文件 hmi_worker.h 第 60 行定义.
apollo::dreamview::HMIWorker::HMIWorker | ( | const std::shared_ptr< apollo::cyber::Node > & | node, |
const apollo::common::monitor::MonitorLogBuffer & | monitor_log_buffer | ||
) |
bool apollo::dreamview::HMIWorker::AddOrModifyObjectToDB | ( | const std::string & | key, |
const std::string & | value | ||
) |
在文件 hmi_worker.cc 第 1925 行定义.
void apollo::dreamview::HMIWorker::ChangeMapVal | ( | const std::string & | map_name | ) |
bool apollo::dreamview::HMIWorker::DeleteDataRecorder | ( | ) |
在文件 hmi_worker.cc 第 1827 行定义.
bool apollo::dreamview::HMIWorker::DeleteObjectToDB | ( | const std::string & | key | ) |
在文件 hmi_worker.cc 第 1930 行定义.
bool apollo::dreamview::HMIWorker::DeleteRtkDataRecorder | ( | ) |
在文件 hmi_worker.cc 第 2072 行定义.
std::string apollo::dreamview::HMIWorker::GetCurrentModeDefaultLayout | ( | ) |
Get dv current mode default layout.
在文件 hmi_worker.cc 第 2164 行定义.
std::string apollo::dreamview::HMIWorker::GetDvPluginPanelsJsonStr | ( | ) |
Get dv plugin panels json of frontend.
在文件 hmi_worker.cc 第 2208 行定义.
std::string apollo::dreamview::HMIWorker::GetObjectFromDB | ( | const std::string & | key | ) |
在文件 hmi_worker.cc 第 1934 行定义.
bool apollo::dreamview::HMIWorker::GetScenarioSetPath | ( | const std::string & | scenario_set_id, |
std::string * | scenario_set_path | ||
) |
在文件 hmi_worker.cc 第 792 行定义.
void apollo::dreamview::HMIWorker::GetScenarioSetPath | ( | const std::string & | scenario_set_id, |
std::string * | scenario_set_path | ||
) |
HMIStatus apollo::dreamview::HMIWorker::GetStatus | ( | ) | const |
在文件 hmi_worker.cc 第 681 行定义.
HMIStatus apollo::dreamview::HMIWorker::GetStatus | ( | ) | const |
std::vector< std::pair< std::string, std::string > > apollo::dreamview::HMIWorker::GetTuplesWithTypeFromDB | ( | const std::string & | type | ) |
在文件 hmi_worker.cc 第 1939 行定义.
bool apollo::dreamview::HMIWorker::handlePlayRecordProcess | ( | const std::string & | action_type | ) |
control the nohup play record process by action_type
action_type | The action to control the nohup play record process optional values like pause and continue. |
在文件 hmi_worker.cc 第 1041 行定义.
bool apollo::dreamview::HMIWorker::isProcessRunning | ( | const std::string & | process_name | ) |
Check if a process exists
process_name | The name of the process to check |
在文件 hmi_worker.cc 第 2128 行定义.
bool apollo::dreamview::HMIWorker::LoadRecord | ( | const std::string & | record_name, |
const std::string & | record_file_path, | ||
double * | total_time_s | ||
) |
在文件 hmi_worker.cc 第 1442 行定义.
bool apollo::dreamview::HMIWorker::LoadRecordAndChangeStatus | ( | const std::string & | record_name | ) |
在文件 hmi_worker.cc 第 1395 行定义.
bool apollo::dreamview::HMIWorker::LoadRecords | ( | ) |
在文件 hmi_worker.cc 第 1407 行定义.
bool apollo::dreamview::HMIWorker::LoadRecords | ( | ) |
bool apollo::dreamview::HMIWorker::LoadRtkRecords | ( | ) |
在文件 hmi_worker.cc 第 1952 行定义.
bool apollo::dreamview::HMIWorker::RecordIsLoaded | ( | const std::string & | record_id | ) |
在文件 hmi_worker.cc 第 1232 行定义.
|
inline |
在文件 hmi_worker.h 第 74 行定义.
|
inline |
在文件 hmi_worker.h 第 78 行定义.
bool apollo::dreamview::HMIWorker::ReloadVehicles | ( | ) |
在文件 hmi_worker.cc 第 1505 行定义.
bool apollo::dreamview::HMIWorker::ReloadVehicles | ( | ) |
bool apollo::dreamview::HMIWorker::RePlayRecord | ( | ) |
在文件 hmi_worker.cc 第 1092 行定义.
bool apollo::dreamview::HMIWorker::ResetRecordProgress | ( | const double & | progress | ) |
reset the play record progress to jump.
progress | The progress to jump. |
在文件 hmi_worker.cc 第 1147 行定义.
int apollo::dreamview::HMIWorker::SaveDataRecorder | ( | const std::string & | new_name | ) |
在文件 hmi_worker.cc 第 1805 行定义.
int apollo::dreamview::HMIWorker::SaveRtkDataRecorder | ( | const std::string & | new_name | ) |
在文件 hmi_worker.cc 第 2055 行定义.
void apollo::dreamview::HMIWorker::SensorCalibrationPreprocess | ( | const std::string & | task_type | ) |
在文件 hmi_worker.cc 第 419 行定义.
void apollo::dreamview::HMIWorker::SensorCalibrationPreprocess | ( | const std::string & | task_type | ) |
void apollo::dreamview::HMIWorker::Start | ( | DvCallback | callback_api | ) |
在文件 hmi_worker.cc 第 100 行定义.
void apollo::dreamview::HMIWorker::Start | ( | DvCallback | callback_api | ) |
bool apollo::dreamview::HMIWorker::StartDataRecorder | ( | ) |
在文件 hmi_worker.cc 第 1769 行定义.
Json apollo::dreamview::HMIWorker::StartPlayRtkRecorder | ( | ) |
在文件 hmi_worker.cc 第 2017 行定义.
bool apollo::dreamview::HMIWorker::StartRtkDataRecorder | ( | ) |
在文件 hmi_worker.cc 第 1995 行定义.
bool apollo::dreamview::HMIWorker::StartTerminal | ( | ) |
在文件 hmi_worker.cc 第 1943 行定义.
void apollo::dreamview::HMIWorker::Stop | ( | ) |
在文件 hmi_worker.cc 第 113 行定义.
void apollo::dreamview::HMIWorker::Stop | ( | ) |
bool apollo::dreamview::HMIWorker::StopDataRecorder | ( | ) |
在文件 hmi_worker.cc 第 1794 行定义.
bool apollo::dreamview::HMIWorker::StopPlayRtkRecorder | ( | ) |
在文件 hmi_worker.cc 第 2044 行定义.
bool apollo::dreamview::HMIWorker::StopRtkDataRecorder | ( | ) |
在文件 hmi_worker.cc 第 2006 行定义.
void apollo::dreamview::HMIWorker::SubmitAudioEvent | ( | const uint64_t | event_time_ms, |
const int | obstacle_id, | ||
const int | audio_type, | ||
const int | moving_result, | ||
const int | audio_direction, | ||
const bool | is_siren_on | ||
) |
在文件 hmi_worker.cc 第 358 行定义.
void apollo::dreamview::HMIWorker::SubmitAudioEvent | ( | const uint64_t | event_time_ms, |
const int | obstacle_id, | ||
const int | audio_type, | ||
const int | moving_result, | ||
const int | audio_direction, | ||
const bool | is_siren_on | ||
) |
void apollo::dreamview::HMIWorker::SubmitDriveEvent | ( | const uint64_t | event_time_ms, |
const std::string & | event_msg, | ||
const std::vector< std::string > & | event_types, | ||
const bool | is_reportable | ||
) |
在文件 hmi_worker.cc 第 395 行定义.
void apollo::dreamview::HMIWorker::SubmitDriveEvent | ( | const uint64_t | event_time_ms, |
const std::string & | event_msg, | ||
const std::vector< std::string > & | event_types, | ||
const bool | is_reportable | ||
) |
bool apollo::dreamview::HMIWorker::Trigger | ( | const HMIAction | action | ) |
在文件 hmi_worker.cc 第 276 行定义.
bool apollo::dreamview::HMIWorker::Trigger | ( | const HMIAction | action | ) |
bool apollo::dreamview::HMIWorker::Trigger | ( | const HMIAction | action, |
const std::string & | value | ||
) |
在文件 hmi_worker.cc 第 310 行定义.
bool apollo::dreamview::HMIWorker::Trigger | ( | const HMIAction | action, |
const std::string & | value | ||
) |
void apollo::dreamview::HMIWorker::UpdateCameraSensorChannelToStatus | ( | const std::string & | channel_name | ) |
在文件 hmi_worker.cc 第 1530 行定义.
void apollo::dreamview::HMIWorker::UpdateCameraSensorChannelToStatus | ( | const std::string & | channel_name | ) |
void apollo::dreamview::HMIWorker::UpdateComponentStatus | ( | ) |
在文件 hmi_worker.cc 第 733 行定义.
void apollo::dreamview::HMIWorker::UpdateComponentStatus | ( | ) |
bool apollo::dreamview::HMIWorker::UpdateDynamicModelToStatus | ( | const std::string & | dynamic_model_name | ) |
在文件 hmi_worker.cc 第 1046 行定义.
bool apollo::dreamview::HMIWorker::UpdateDynamicModelToStatus | ( | const std::string & | dynamic_model_name | ) |
bool apollo::dreamview::HMIWorker::UpdateMapToStatus | ( | const std::string & | map_name | ) |
在文件 hmi_worker.cc 第 1358 行定义.
void apollo::dreamview::HMIWorker::UpdatePointCloudChannelToStatus | ( | const std::string & | channel_name | ) |
在文件 hmi_worker.cc 第 1543 行定义.
void apollo::dreamview::HMIWorker::UpdatePointCloudChannelToStatus | ( | const std::string & | channel_name | ) |
void apollo::dreamview::HMIWorker::UpdateRtkRecordToStatus | ( | const std::string & | new_name | ) |
在文件 hmi_worker.cc 第 2105 行定义.
bool apollo::dreamview::HMIWorker::UpdateScenarioSet | ( | const std::string & | scenario_set_id, |
const std::string & | scenario_set_name, | ||
ScenarioSet * | new_scenario_set | ||
) |
在文件 hmi_worker.cc 第 1070 行定义.
bool apollo::dreamview::HMIWorker::UpdateScenarioSetToStatus | ( | const std::string & | scenario_set_id, |
const std::string & | scenario_set_name | ||
) |
在文件 hmi_worker.cc 第 1028 行定义.
void apollo::dreamview::HMIWorker::VehicleCalibrationPreprocess | ( | ) |
在文件 hmi_worker.cc 第 426 行定义.
void apollo::dreamview::HMIWorker::VehicleCalibrationPreprocess | ( | ) |