Apollo 11.0
自动驾驶开放平台
apollo::v2x::ft::V2XFusionComponent类 参考

#include <v2x_fusion_component.h>

类 apollo::v2x::ft::V2XFusionComponent 继承关系图:
apollo::v2x::ft::V2XFusionComponent 的协作图:

Public 成员函数

 ~V2XFusionComponent ()
 
std::string Name () const
 
bool Init () override
 
bool Proc (const std::shared_ptr< PerceptionObstacles > &perception_obstacles) override
 
- Public 成员函数 继承自 apollo::cyber::Component< PerceptionObstacles >
 Component ()
 
 ~Component () override
 
bool Initialize (const ComponentConfig &config) override
 init the component by protobuf object.
 
bool Process (const std::shared_ptr< PerceptionObstacles > &msg0, const std::shared_ptr< NullType > &msg1, const std::shared_ptr< NullType > &msg2, const std::shared_ptr< NullType > &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< Node > node_ = nullptr
 
std::string config_file_path_ = ""
 
std::vector< std::shared_ptr< ReaderBase > > readers_
 

详细描述

在文件 v2x_fusion_component.h 第 40 行定义.

构造及析构函数说明

◆ ~V2XFusionComponent()

apollo::v2x::ft::V2XFusionComponent::~V2XFusionComponent ( )

在文件 v2x_fusion_component.cc 第 23 行定义.

23{}

成员函数说明

◆ Init()

bool apollo::v2x::ft::V2XFusionComponent::Init ( )
overridevirtual

实现了 apollo::cyber::ComponentBase.

在文件 v2x_fusion_component.cc 第 27 行定义.

27 {
28 v2x_obstacles_reader_ =
29 node_->CreateReader<V2XObstacles>(FLAGS_v2x_obstacle_topic, nullptr);
30 localization_reader_ = node_->CreateReader<LocalizationEstimate>(
31 FLAGS_localization_topic, nullptr);
32 perception_fusion_obstacles_writer_ =
33 node_->CreateWriter<PerceptionObstacles>(FLAGS_perception_obstacle_topic);
34 return true;
35}
std::shared_ptr< Node > node_

◆ Name()

std::string apollo::v2x::ft::V2XFusionComponent::Name ( ) const

在文件 v2x_fusion_component.cc 第 25 行定义.

25{ return FLAGS_v2x_module_name; }

◆ Proc()

bool apollo::v2x::ft::V2XFusionComponent::Proc ( const std::shared_ptr< PerceptionObstacles > &  perception_obstacles)
override

在文件 v2x_fusion_component.cc 第 37 行定义.

38 {
39 if (FLAGS_use_v2x) {
40 return V2XMessageFusionProcess(perception_obstacles);
41 }
42 perception_fusion_obstacles_writer_->Write(*perception_obstacles);
43 return true;
44}

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