Apollo 10.0
自动驾驶开放平台
apollo::dreamview::DataCollectionMonitor类 参考

A module that monitor data collection progress for calibration purpose. 更多...

#include <data_collection_monitor.h>

类 apollo::dreamview::DataCollectionMonitor 继承关系图:
apollo::dreamview::DataCollectionMonitor 的协作图:

Public 成员函数

 DataCollectionMonitor ()
 Constructor of DataCollectionMonitor.
 
 ~DataCollectionMonitor ()
 
void Start () override
 start monitoring collection progress
 
void Stop () override
 stop monitoring collection progress
 
void Restart ()
 restart monitoring collection progress
 
nlohmann::json GetProgressAsJson () override
 return collection progress of categories and overall as json
 
- Public 成员函数 继承自 apollo::dreamview::FuelMonitor
 FuelMonitor (const std::string &name)
 Constructor of FuelMonitor.
 
virtual ~FuelMonitor ()=default
 
bool IsEnabled () const
 
std::string GetClassName () const
 get class name
 
void Restart ()
 restart monitoring
 

额外继承的成员函数

- Protected 属性 继承自 apollo::dreamview::FuelMonitor
bool enabled_ = false
 
std::string class_name_
 

详细描述

A module that monitor data collection progress for calibration purpose.

在文件 data_collection_monitor.h54 行定义.

构造及析构函数说明

◆ DataCollectionMonitor()

apollo::dreamview::DataCollectionMonitor::DataCollectionMonitor ( )

Constructor of DataCollectionMonitor.

在文件 data_collection_monitor.cc99 行定义.

100 : FuelMonitor(FLAGS_data_collection_monitor_name),
101 node_(cyber::CreateNode("data_collection_monitor")) {
102 InitReaders();
103 LoadConfiguration();
104}
FuelMonitor(const std::string &name)
Constructor of FuelMonitor.
std::unique_ptr< Node > CreateNode(const std::string &node_name, const std::string &name_space)
Definition cyber.cc:33

◆ ~DataCollectionMonitor()

apollo::dreamview::DataCollectionMonitor::~DataCollectionMonitor ( )

在文件 data_collection_monitor.cc106 行定义.

106{ Stop(); }
void Stop() override
stop monitoring collection progress

成员函数说明

◆ GetProgressAsJson()

nlohmann::json apollo::dreamview::DataCollectionMonitor::GetProgressAsJson ( )
overridevirtual

return collection progress of categories and overall as json

实现了 apollo::dreamview::FuelMonitor.

在文件 data_collection_monitor.cc285 行定义.

285 {
286 boost::unique_lock<boost::shared_mutex> reader_lock(mutex_);
287 return current_progress_json_;
288}

◆ Restart()

void apollo::dreamview::DataCollectionMonitor::Restart ( )

restart monitoring collection progress

◆ Start()

void apollo::dreamview::DataCollectionMonitor::Start ( )
overridevirtual

start monitoring collection progress

实现了 apollo::dreamview::FuelMonitor.

在文件 data_collection_monitor.cc182 行定义.

182 {
183 if (!enabled_) {
184 category_consecutive_frame_count_.clear();
185 category_frame_count_.clear();
186 current_progress_json_.clear();
187 LoadConfiguration();
188 }
189 enabled_ = true;
190}

◆ Stop()

void apollo::dreamview::DataCollectionMonitor::Stop ( )
overridevirtual

stop monitoring collection progress

实现了 apollo::dreamview::FuelMonitor.

在文件 data_collection_monitor.cc192 行定义.

192 {
193 enabled_ = false;
194 AINFO << "DataCollectionMonitor stopped";
195}
#define AINFO
Definition log.h:42

该类的文档由以下文件生成: