Apollo 11.0
自动驾驶开放平台
lattice_planner.h
浏览该文件的文档.
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
21#pragma once
22
23#include <memory>
24#include <string>
25
26#include "modules/planning/planning_base/proto/planning_config.pb.h"
27
33
34namespace apollo {
35namespace planning {
36
38 public:
39 virtual ~LatticePlanner() = default;
40
41 std::string Name() override { return "LATTICE"; }
42
43 common::Status Init(const std::shared_ptr<DependencyInjector>& injector,
44 const std::string& config_path = "") override {
45 return Planner::Init(injector, config_path);
46 }
47
48 void Stop() override {}
49
56 common::Status Plan(const common::TrajectoryPoint& planning_init_point,
57 Frame* frame,
58 ADCTrajectory* ptr_computed_trajectory) override;
59
68 const common::TrajectoryPoint& planning_init_point, Frame* frame,
69 ReferenceLineInfo* reference_line_info) override;
70};
71
73 PlannerWithReferenceLine)
74
75} // namespace planning
76} // namespace apollo
A general class to denote the return status of an API call.
Definition status.h:43
Frame holds all data for one planning cycle.
Definition frame.h:62
common::Status Init(const std::shared_ptr< DependencyInjector > &injector, const std::string &config_path="") override
common::Status Plan(const common::TrajectoryPoint &planning_init_point, Frame *frame, ADCTrajectory *ptr_computed_trajectory) override
Override function Plan in parent class Planner.
virtual ~LatticePlanner()=default
common::Status PlanOnReferenceLine(const common::TrajectoryPoint &planning_init_point, Frame *frame, ReferenceLineInfo *reference_line_info) override
Override function Plan in parent class Planner.
virtual apollo::common::Status Init(const std::shared_ptr< DependencyInjector > &injector, const std::string &config_path="")
Definition planner.h:54
ReferenceLineInfo holds all data for one reference line.
Planning module main class.
#define CYBER_PLUGIN_MANAGER_REGISTER_PLUGIN(name, base)
class register implement
Definition arena_queue.h:37