#include <third_party_perception_component.h>
◆ ThirdPartyPerceptionComponent()
apollo::third_party_perception::ThirdPartyPerceptionComponent::ThirdPartyPerceptionComponent |
( |
| ) |
|
|
default |
◆ ~ThirdPartyPerceptionComponent()
apollo::third_party_perception::ThirdPartyPerceptionComponent::~ThirdPartyPerceptionComponent |
( |
| ) |
|
|
default |
◆ Init()
bool apollo::third_party_perception::ThirdPartyPerceptionComponent::Init |
( |
| ) |
|
|
overridevirtual |
实现了 apollo::cyber::ComponentBase.
在文件 third_party_perception_component.cc 第 27 行定义.
27 {
29 third_party_perception_param;
31 AINFO <<
"load third party perception param failed";
32 return false;
33 }
34
37
39 perception_ = std::make_shared<ThirdPartyPerceptionSmartereye>(
node_.get());
41 perception_ = std::make_shared<ThirdPartyPerceptionMobileye>(
node_.get());
42 } else {
43 perception_ = std::make_shared<ThirdPartyPerception>(
node_.get());
44 }
45
46 if (!perception_->Init().ok()) {
47 return false;
48 }
49
51 FLAGS_perception_obstacle_topic);
52
53 return perception_->Start().ok();
54}
bool GetProtoConfig(T *config) const
std::shared_ptr< Node > node_
ThirdPartyPerceptionDeviceType
optional ThirdPartyPerceptionDeviceType device_type
◆ Proc()
bool apollo::third_party_perception::ThirdPartyPerceptionComponent::Proc |
( |
| ) |
|
|
overridevirtual |
The Proc logic of the component, which called by the CyberRT frame.
- 返回
- returns true if successful, otherwise returns false
实现了 apollo::cyber::TimerComponent.
在文件 third_party_perception_component.cc 第 56 行定义.
56 {
57 auto response = std::make_shared<apollo::perception::PerceptionObstacles>();
58 if (!perception_->Process(response.get())) {
59 return false;
60 }
61 writer_->Write(response);
62 return true;
63}
该类的文档由以下文件生成: