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

#include <oculii_radar_component.h>

类 apollo::drivers::radar::OculiiRadarComponent 继承关系图:
apollo::drivers::radar::OculiiRadarComponent 的协作图:

Public 成员函数

bool Init () override
 initialize OculiiRadarComponent
 
 ~OculiiRadarComponent ()
 
- 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_
 

详细描述

在文件 oculii_radar_component.h38 行定义.

构造及析构函数说明

◆ ~OculiiRadarComponent()

apollo::drivers::radar::OculiiRadarComponent::~OculiiRadarComponent ( )

在文件 oculii_radar_component.cc68 行定义.

68 {
69 if (running_.load()) {
70 running_.exchange(false);
71 }
72}

成员函数说明

◆ Init()

bool apollo::drivers::radar::OculiiRadarComponent::Init ( )
overridevirtual

initialize OculiiRadarComponent

返回
bool initialization status

实现了 apollo::cyber::ComponentBase.

在文件 oculii_radar_component.cc27 行定义.

27 {
28 config_ = std::make_shared<OculiiRadarConf>();
30 config_.get())) {
31 return false;
32 }
33 AINFO << "OculiiRadarComponent config: " << config_->DebugString();
34 parser_.reset(new OculiiRadarUdpParser);
35 if (!parser_->Init(config_->port())) {
36 AERROR << "Init parser of oculii radar failed";
37 return false;
38 }
39 writer_ = node_->CreateWriter<OculiiPointCloud>(config_->channel_name());
40 frame_drop_interval_ = static_cast<float>(0.9 / config_->frame_rate());
41 last_process_time_ = 0;
42 async_result_ = cyber::Async(&OculiiRadarComponent::run, this);
43 return true;
44}
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

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