Apollo 10.0
自动驾驶开放平台
apollo::drivers::gnss::GnssDriverComponent类 参考

#include <gnss_component.h>

类 apollo::drivers::gnss::GnssDriverComponent 继承关系图:
apollo::drivers::gnss::GnssDriverComponent 的协作图:

Public 成员函数

 GnssDriverComponent ()
 
bool Init () override
 
- Public 成员函数 继承自 apollo::cyber::Component< M0, M1, M2, M3 >
 Component ()
 
 ~Component () override
 
bool Initialize (const ComponentConfig &config) override
 init the component by protobuf object.
 
bool Process (const std::shared_ptr< M0 > &msg0, const std::shared_ptr< M1 > &msg1, const std::shared_ptr< M2 > &msg2, const std::shared_ptr< M3 > &msg3)
 
- Public 成员函数 继承自 apollo::cyber::ComponentBase
virtual ~ComponentBase ()
 
virtual bool Initialize (const TimerComponentConfig &config)
 
virtual void Shutdown ()
 
template<typename T >
bool GetProtoConfig (T *config) const
 

额外继承的成员函数

- Public 类型 继承自 apollo::cyber::ComponentBase
template<typename M >
using Reader = cyber::Reader< M >
 
- Protected 成员函数 继承自 apollo::cyber::ComponentBase
virtual void Clear ()
 
const std::string & ConfigFilePath () const
 
void LoadConfigFiles (const ComponentConfig &config)
 
void LoadConfigFiles (const TimerComponentConfig &config)
 
- Protected 属性 继承自 apollo::cyber::ComponentBase
std::atomic< bool > is_shutdown_ = {false}
 
std::shared_ptr< Nodenode_ = nullptr
 
std::string config_file_path_ = ""
 
std::vector< std::shared_ptr< ReaderBase > > readers_
 

详细描述

在文件 gnss_component.h36 行定义.

构造及析构函数说明

◆ GnssDriverComponent()

apollo::drivers::gnss::GnssDriverComponent::GnssDriverComponent ( )

成员函数说明

◆ Init()

bool apollo::drivers::gnss::GnssDriverComponent::Init ( )
overridevirtual

实现了 apollo::cyber::ComponentBase.

在文件 gnss_component.cc28 行定义.

28 {
29 config::Config gnss_config;
31 &gnss_config)) {
32 monitor_logger_buffer_.ERROR("Unable to load gnss conf file: " +
34 return false;
35 }
36 AINFO << "Gnss config: " << gnss_config.DebugString();
37
38 raw_stream_.reset(new RawStream(gnss_config, node_));
39
40 if (!raw_stream_->Init()) {
41 monitor_logger_buffer_.ERROR("Init gnss stream failed");
42 AERROR << "Init gnss stream failed";
43 return false;
44 }
45 raw_stream_->Start();
46 monitor_logger_buffer_.INFO("gnss is started.");
47 return true;
48}
std::shared_ptr< Node > node_
#define AERROR
Definition log.h:44
#define AINFO
Definition log.h:42
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
Definition file.cc:132

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