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
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
34namespace apollo {
35namespace third_party_perception {
36
38 public:
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;
61};
62
63} // namespace third_party_perception
64} // namespace apollo
Node is the fundamental building block of Cyber RT.
Definition node.h:44
bool Process(apollo::perception::PerceptionObstacles *const response) override
class register implement
Definition arena_queue.h:37