Apollo  6.0
Open source self driving car software
local_view.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 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 
17 #pragma once
18 
19 #include <memory>
20 
21 #include "modules/canbus/proto/chassis.pb.h"
22 #include "modules/localization/proto/localization.pb.h"
23 #include "modules/map/relative_map/proto/navigation.pb.h"
24 #include "modules/perception/proto/traffic_light_detection.pb.h"
25 #include "modules/planning/proto/pad_msg.pb.h"
26 #include "modules/prediction/proto/prediction_obstacle.pb.h"
27 #include "modules/routing/proto/routing.pb.h"
28 #include "modules/storytelling/proto/story.pb.h"
29 
30 namespace apollo {
31 namespace planning {
32 
38 struct LocalView {
39  std::shared_ptr<prediction::PredictionObstacles> prediction_obstacles;
40  std::shared_ptr<canbus::Chassis> chassis;
41  std::shared_ptr<localization::LocalizationEstimate> localization_estimate;
42  std::shared_ptr<perception::TrafficLightDetection> traffic_light;
43  std::shared_ptr<routing::RoutingResponse> routing;
44  std::shared_ptr<relative_map::MapMsg> relative_map;
45  std::shared_ptr<PadMessage> pad_msg;
46  std::shared_ptr<storytelling::Stories> stories;
47 };
48 
49 } // namespace planning
50 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
std::shared_ptr< relative_map::MapMsg > relative_map
Definition: local_view.h:44
Planning module main class. It processes GPS and IMU as input, to generate planning info...
std::shared_ptr< PadMessage > pad_msg
Definition: local_view.h:45
std::shared_ptr< localization::LocalizationEstimate > localization_estimate
Definition: local_view.h:41
std::shared_ptr< routing::RoutingResponse > routing
Definition: local_view.h:43
std::shared_ptr< prediction::PredictionObstacles > prediction_obstacles
Definition: local_view.h:39
std::shared_ptr< storytelling::Stories > stories
Definition: local_view.h:46
std::shared_ptr< canbus::Chassis > chassis
Definition: local_view.h:40
Definition: local_view.h:38
std::shared_ptr< perception::TrafficLightDetection > traffic_light
Definition: local_view.h:42