Apollo 10.0
自动驾驶开放平台
public_road_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
17#pragma once
18
19#include <memory>
20#include <string>
21
22#include "modules/common_msgs/basic_msgs/pnc_point.pb.h"
23#include "modules/common_msgs/planning_msgs/planning.pb.h"
24#include "modules/planning/planners/public_road/proto/planner_config.pb.h"
25
33
38namespace apollo {
39namespace planning {
40
41class Scenario;
42
49 public:
53 virtual ~PublicRoadPlanner() = default;
54
55 void Stop() override {}
56
57 std::string Name() override { return "PUBLIC_ROAD"; }
58
59 common::Status Init(const std::shared_ptr<DependencyInjector>& injector,
60 const std::string& config_path = "") override;
61
68 common::Status Plan(const common::TrajectoryPoint& planning_init_point,
69 Frame* frame,
70 ADCTrajectory* ptr_computed_trajectory) override;
71
72 void Reset(Frame* frame) override { scenario_manager_.Reset(frame); }
73
74 private:
75 ScenarioManager scenario_manager_;
77 Scenario* scenario_ = nullptr;
78};
79
81 Planner)
82
83} // namespace planning
84} // 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
PublicRoadPlanner is an expectation maximization planner.
virtual ~PublicRoadPlanner()=default
Destructor
void Reset(Frame *frame) override
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.
Planning module main class.
#define CYBER_PLUGIN_MANAGER_REGISTER_PLUGIN(name, base)
class register implement
Definition arena_queue.h:37