Apollo 11.0
自动驾驶开放平台
apollo::perception::trafficlight::TrafficLightsPerceptionComponent类 参考

#include <traffic_light_region_proposal_component.h>

类 apollo::perception::trafficlight::TrafficLightsPerceptionComponent 继承关系图:
apollo::perception::trafficlight::TrafficLightsPerceptionComponent 的协作图:

Public 成员函数

 TrafficLightsPerceptionComponent ()=default
 Construct a new traffic lights perception component object.
 
 ~TrafficLightsPerceptionComponent ()=default
 Destroy the traffic lights perception component object.
 
 TrafficLightsPerceptionComponent (const TrafficLightsPerceptionComponent &)=delete
 
TrafficLightsPerceptionComponent & operator= (const TrafficLightsPerceptionComponent &)=delete
 
bool Init () override
 Initialize configuration files, algorithm plug-ins, callback functions and create listening channels.
 
- 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< Node > node_ = nullptr
 
std::string config_file_path_ = ""
 
std::vector< std::shared_ptr< ReaderBase > > readers_
 

详细描述

构造及析构函数说明

◆ TrafficLightsPerceptionComponent() [1/2]

apollo::perception::trafficlight::TrafficLightsPerceptionComponent::TrafficLightsPerceptionComponent ( )
default

Construct a new traffic lights perception component object.

◆ ~TrafficLightsPerceptionComponent()

apollo::perception::trafficlight::TrafficLightsPerceptionComponent::~TrafficLightsPerceptionComponent ( )
default

Destroy the traffic lights perception component object.

◆ TrafficLightsPerceptionComponent() [2/2]

apollo::perception::trafficlight::TrafficLightsPerceptionComponent::TrafficLightsPerceptionComponent ( const TrafficLightsPerceptionComponent &  )
delete

成员函数说明

◆ Init()

bool apollo::perception::trafficlight::TrafficLightsPerceptionComponent::Init ( )
overridevirtual

Initialize configuration files, algorithm plug-ins, callback functions and create listening channels.

返回
true
false

实现了 apollo::cyber::ComponentBase.

在文件 traffic_light_region_proposal_component.cc 第 47 行定义.

47 {
48 if (InitConfig() != cyber::SUCC) {
49 AERROR << "TrafficLightsPerceptionComponent InitConfig failed.";
50 return false;
51 }
52
53 if (InitAlgorithmPlugin() != cyber::SUCC) {
54 AERROR << "TrafficLightsPerceptionComponent InitAlgorithmPlugin failed.";
55 return false;
56 }
57
58 if (InitCameraFrame() != cyber::SUCC) {
59 AERROR << "TrafficLightsPerceptionComponent InitCameraFrame failed.";
60 return false;
61 }
62
63 if (InitCameraListeners() != cyber::SUCC) {
64 AERROR << "TrafficLightsPerceptionComponent InitCameraListeners failed.";
65 return false;
66 }
67
68 return true;
69}
#define AERROR
Definition log.h:44

◆ operator=()

TrafficLightsPerceptionComponent & apollo::perception::trafficlight::TrafficLightsPerceptionComponent::operator= ( const TrafficLightsPerceptionComponent &  )
delete

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