21 #include <unordered_map> 25 #include "modules/dreamview/proto/hmi_config.pb.h" 26 #include "modules/dreamview/proto/hmi_mode.pb.h" 27 #include "modules/dreamview/proto/hmi_status.pb.h" 28 #include "modules/monitor/proto/system_status.pb.h" 40 void Init(
const std::shared_ptr<apollo::cyber::Node>& node);
47 const apollo::dreamview::HMIMode&
GetHMIMode()
const {
return mode_config_; }
54 std::shared_ptr<cyber::Reader<T>>
CreateReader(
const std::string& channel) {
55 if (readers_.find(channel) == readers_.end()) {
56 readers_.emplace(channel, node_->CreateReader<T>(channel));
62 std::shared_ptr<cyber::Writer<T>>
CreateWriter(
const std::string& channel) {
63 return node_->CreateWriter<T>(channel);
70 std::string current_mode_;
71 const apollo::dreamview::HMIConfig hmi_config_;
72 apollo::dreamview::HMIMode mode_config_;
73 bool in_autonomous_driving_ =
false;
74 bool CheckAutonomousDriving(
const double current_time);
77 std::shared_ptr<apollo::cyber::Node> node_;
78 std::unordered_map<std::string, std::shared_ptr<cyber::ReaderBase>> readers_;
bool IsInAutonomousMode() const
Definition: monitor_manager.h:48
apollo::common::monitor::MonitorLogBuffer & LogBuffer()
Definition: monitor_manager.h:50
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: monitor_manager.h:38
Reader subscribes a channel, it has two main functions:
Definition: reader.h:68
void Init(const std::shared_ptr< apollo::cyber::Node > &node)
const apollo::dreamview::HMIMode & GetHMIMode() const
Definition: monitor_manager.h:47
bool StartFrame(const double current_time)
#define DECLARE_SINGLETON(classname)
Definition: macros.h:52
The class of MonitorLogBuffer.
std::shared_ptr< cyber::Writer< T > > CreateWriter(const std::string &channel)
Definition: monitor_manager.h:62
std::shared_ptr< cyber::Reader< T > > CreateReader(const std::string &channel)
Definition: monitor_manager.h:54
SystemStatus * GetStatus()
Definition: monitor_manager.h:49
This class help collect MonitorMessage pb to monitor topic. The messages can be published automatical...
Definition: monitor_log_buffer.h:60