21#include <unordered_map>
25#include "modules/common_msgs/dreamview_msgs/hmi_config.pb.h"
26#include "modules/common_msgs/dreamview_msgs/hmi_mode.pb.h"
27#include "modules/common_msgs/dreamview_msgs/hmi_status.pb.h"
28#include "modules/common_msgs/monitor_msgs/system_status.pb.h"
40 void Init(
const std::shared_ptr<apollo::cyber::Node>& node);
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));
58 return std::dynamic_pointer_cast<cyber::Reader<T>>(readers_[channel]);
62 std::shared_ptr<cyber::Writer<T>>
CreateWriter(
const std::string& channel) {
63 return node_->CreateWriter<T>(channel);
70 std::string current_mode_;
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_;
std::shared_ptr< cyber::Writer< T > > CreateWriter(const std::string &channel)
SystemStatus * GetStatus()
const apollo::dreamview::HMIMode & GetHMIMode() const
bool StartFrame(const double current_time)
void Init(const std::shared_ptr< apollo::cyber::Node > &node)
bool IsInAutonomousMode() const
apollo::common::monitor::MonitorLogBuffer & LogBuffer()
std::shared_ptr< cyber::Reader< T > > CreateReader(const std::string &channel)
#define DECLARE_SINGLETON(classname)
The class of MonitorLogBuffer