Apollo  6.0
Open source self driving car software
Public Types | Public Member Functions | Static Public Member Functions | List of all members
apollo::dreamview::HMIWorker Class Reference

#include <hmi_worker.h>

Collaboration diagram for apollo::dreamview::HMIWorker:
Collaboration graph

Public Types

using StatusUpdateHandler = std::function< void(const bool status_changed, HMIStatus *status)>
 

Public Member Functions

 HMIWorker ()
 
 HMIWorker (const std::shared_ptr< apollo::cyber::Node > &node)
 
void Start ()
 
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
 

Static Public Member Functions

static HMIConfig LoadConfig ()
 
static HMIMode LoadMode (const std::string &mode_config_path)
 

Member Typedef Documentation

◆ StatusUpdateHandler

using apollo::dreamview::HMIWorker::StatusUpdateHandler = std::function<void(const bool status_changed, HMIStatus* status)>

Constructor & Destructor Documentation

◆ HMIWorker() [1/2]

apollo::dreamview::HMIWorker::HMIWorker ( )
inline

◆ HMIWorker() [2/2]

apollo::dreamview::HMIWorker::HMIWorker ( const std::shared_ptr< apollo::cyber::Node > &  node)
explicit

Member Function Documentation

◆ GetStatus()

HMIStatus apollo::dreamview::HMIWorker::GetStatus ( ) const

◆ LoadConfig()

static HMIConfig apollo::dreamview::HMIWorker::LoadConfig ( )
static

◆ LoadMode()

static HMIMode apollo::dreamview::HMIWorker::LoadMode ( const std::string &  mode_config_path)
static

◆ RegisterStatusUpdateHandler()

void apollo::dreamview::HMIWorker::RegisterStatusUpdateHandler ( StatusUpdateHandler  handler)
inline

◆ SensorCalibrationPreprocess()

void apollo::dreamview::HMIWorker::SensorCalibrationPreprocess ( const std::string &  task_type)

◆ Start()

void apollo::dreamview::HMIWorker::Start ( )

◆ Stop()

void apollo::dreamview::HMIWorker::Stop ( )

◆ SubmitAudioEvent()

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 
)

◆ SubmitDriveEvent()

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 
)

◆ Trigger() [1/2]

bool apollo::dreamview::HMIWorker::Trigger ( const HMIAction  action)

◆ Trigger() [2/2]

bool apollo::dreamview::HMIWorker::Trigger ( const HMIAction  action,
const std::string &  value 
)

◆ VehicleCalibrationPreprocess()

void apollo::dreamview::HMIWorker::VehicleCalibrationPreprocess ( )

The documentation for this class was generated from the following file: