Apollo  6.0
Open source self driving car software
conversion_radar.h
Go to the documentation of this file.
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 
23 #include "modules/canbus/proto/chassis.pb.h"
24 #include "modules/drivers/proto/conti_radar.pb.h"
25 #include "modules/drivers/proto/delphi_esr.pb.h"
26 #include "modules/localization/proto/localization.pb.h"
27 #include "modules/third_party_perception/proto/radar_obstacle.pb.h"
28 
33 namespace apollo {
34 namespace third_party_perception {
35 namespace conversion_radar {
36 
37 RadarObstacles DelphiToRadarObstacles(
38  const apollo::drivers::DelphiESR& delphi_esr,
39  const apollo::localization::LocalizationEstimate& localization,
40  const RadarObstacles& last_radar_obstacles);
41 
42 RadarObstacles ContiToRadarObstacles(
43  const apollo::drivers::ContiRadar& conti_radar,
44  const apollo::localization::LocalizationEstimate& localization,
45  const RadarObstacles& last_radar_obstacles,
46  const apollo::canbus::Chassis& chassis);
47 
48 apollo::perception::PerceptionObstacles RadarObstaclesToPerceptionObstacles(
49  const RadarObstacles& radar_obstacles);
50 
51 } // namespace conversion_radar
52 } // namespace third_party_perception
53 } // namespace apollo
RadarObstacles ContiToRadarObstacles(const apollo::drivers::ContiRadar &conti_radar, const apollo::localization::LocalizationEstimate &localization, const RadarObstacles &last_radar_obstacles, const apollo::canbus::Chassis &chassis)
apollo::perception::PerceptionObstacles RadarObstaclesToPerceptionObstacles(const RadarObstacles &radar_obstacles)
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
RadarObstacles DelphiToRadarObstacles(const apollo::drivers::DelphiESR &delphi_esr, const apollo::localization::LocalizationEstimate &localization, const RadarObstacles &last_radar_obstacles)