Apollo
11.0
自动驾驶开放平台
third_party_perception_mobileye.h
浏览该文件的文档.
1
/******************************************************************************
2
* Copyright 2020 The Apollo Authors. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*****************************************************************************/
16
21
#pragma once
22
#include <memory>
23
24
#include "
modules/third_party_perception/third_party_perception_base.h
"
25
26
#include "modules/common_msgs/sensor_msgs/conti_radar.pb.h"
27
#include "modules/common_msgs/sensor_msgs/delphi_esr.pb.h"
28
#include "modules/common_msgs/sensor_msgs/mobileye.pb.h"
29
34
namespace
apollo
{
35
namespace
third_party_perception {
36
37
class
ThirdPartyPerceptionMobileye
:
public
ThirdPartyPerception
{
38
public
:
39
explicit
ThirdPartyPerceptionMobileye
(
apollo::cyber::Node
*
const
node);
40
ThirdPartyPerceptionMobileye
() =
default
;
41
~ThirdPartyPerceptionMobileye
() =
default
;
42
// Upon receiving mobileye data
43
void
OnMobileye
(
const
apollo::drivers::Mobileye
& message);
44
// Upon receiving conti radar data
45
void
OnContiRadar
(
const
apollo::drivers::ContiRadar
& message);
46
// Upon receiving esr radar data
47
void
OnDelphiESR
(
const
apollo::drivers::DelphiESR
& message);
48
49
bool
Process
(
50
apollo::perception::PerceptionObstacles
*
const
response)
override
;
51
52
private
:
53
std::shared_ptr<apollo::cyber::Reader<apollo::drivers::Mobileye>>
54
mobileye_reader_ =
nullptr
;
55
std::shared_ptr<apollo::cyber::Reader<apollo::drivers::DelphiESR>>
56
delphi_esr_reader_ =
nullptr
;
57
std::shared_ptr<apollo::cyber::Reader<apollo::drivers::ContiRadar>>
58
conti_radar_reader_ =
nullptr
;
59
apollo::perception::PerceptionObstacles
radar_obstacles_;
60
apollo::perception::PerceptionObstacles
eye_obstacles_;
61
};
62
63
}
// namespace third_party_perception
64
}
// namespace apollo
apollo::cyber::Node
Node is the fundamental building block of Cyber RT.
Definition
node.h:44
apollo::third_party_perception::ThirdPartyPerceptionMobileye
Definition
third_party_perception_mobileye.h:37
apollo::third_party_perception::ThirdPartyPerceptionMobileye::OnContiRadar
void OnContiRadar(const apollo::drivers::ContiRadar &message)
Definition
third_party_perception_mobileye.cc:76
apollo::third_party_perception::ThirdPartyPerceptionMobileye::OnDelphiESR
void OnDelphiESR(const apollo::drivers::DelphiESR &message)
Definition
third_party_perception_mobileye.cc:62
apollo::third_party_perception::ThirdPartyPerceptionMobileye::~ThirdPartyPerceptionMobileye
~ThirdPartyPerceptionMobileye()=default
apollo::third_party_perception::ThirdPartyPerceptionMobileye::ThirdPartyPerceptionMobileye
ThirdPartyPerceptionMobileye()=default
apollo::third_party_perception::ThirdPartyPerceptionMobileye::Process
bool Process(apollo::perception::PerceptionObstacles *const response) override
Definition
third_party_perception_mobileye.cc:90
apollo::third_party_perception::ThirdPartyPerceptionMobileye::OnMobileye
void OnMobileye(const apollo::drivers::Mobileye &message)
Definition
third_party_perception_mobileye.cc:55
apollo::third_party_perception::ThirdPartyPerception
Definition
third_party_perception_base.h:44
apollo
class register implement
Definition
arena_queue.h:37
apollo::drivers::ContiRadar
Definition
conti_radar.proto:107
apollo::drivers::DelphiESR
Definition
delphi_esr.proto:742
apollo::drivers::Mobileye
Definition
mobileye.proto:145
apollo::perception::PerceptionObstacles
Definition
perception_obstacle.proto:246
third_party_perception_base.h
modules
third_party_perception
third_party_perception_mobileye.h