Apollo  6.0
Open source self driving car software
public_road_planner.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2017 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 #include <string>
21 
22 #include "modules/common/proto/pnc_point.pb.h"
28 #include "modules/planning/proto/planning.pb.h"
29 #include "modules/planning/proto/planning_config.pb.h"
33 
38 namespace apollo {
39 namespace planning {
40 
47  public:
51  PublicRoadPlanner() = delete;
52 
54  const std::shared_ptr<DependencyInjector>& injector)
55  : PlannerWithReferenceLine(injector) {}
56 
60  virtual ~PublicRoadPlanner() = default;
61 
62  void Stop() override {}
63 
64  std::string Name() override { return "PUBLIC_ROAD"; }
65 
66  common::Status Init(const PlanningConfig& config) override;
67 
74  common::Status Plan(const common::TrajectoryPoint& planning_init_point,
75  Frame* frame,
76  ADCTrajectory* ptr_computed_trajectory) override;
77 };
78 
79 } // namespace planning
80 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Planning module main class. It processes GPS and IMU as input, to generate planning info...
Frame holds all data for one planning cycle.
Definition: frame.h:61
PublicRoadPlanner()=delete
Constructor.
PublicRoadPlanner is an expectation maximization planner.
Definition: public_road_planner.h:46
Defines the Factory class.
void Stop() override
Definition: public_road_planner.h:62
PublicRoadPlanner(const std::shared_ptr< DependencyInjector > &injector)
Definition: public_road_planner.h:53
std::string Name() override
Definition: public_road_planner.h:64
A general class to denote the return status of an API call. It can either be an OK status for success...
Definition: status.h:43
virtual ~PublicRoadPlanner()=default
Destructor.
common::Status Init(const PlanningConfig &config) override
common::Status Plan(const common::TrajectoryPoint &planning_init_point, Frame *frame, ADCTrajectory *ptr_computed_trajectory) override
Override function Plan in parent class Planner.