Apollo 11.0
自动驾驶开放平台
rtk_replay_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#include <vector>
22
23#include "modules/planning/planning_base/proto/planning_config.pb.h"
24
29
34namespace apollo {
35namespace planning {
36
45 public:
49 virtual ~RTKReplayPlanner() = default;
50
51 std::string Name() override { return "RTK"; }
52
54 const std::shared_ptr<DependencyInjector>& injector,
55 const std::string& config_path = "") override;
56
57 void Stop() override {}
58
66 const common::TrajectoryPoint& planning_init_point, Frame* frame,
67 ADCTrajectory* ptr_computed_trajectory) override;
68
77 const common::TrajectoryPoint& planning_init_point, Frame* frame,
78 ReferenceLineInfo* reference_line_info) override;
83 void ReadTrajectoryFile(const std::string& filename);
84
85 private:
86 std::uint32_t QueryPositionMatchedPoint(
87 const common::TrajectoryPoint& start_point,
88 const std::vector<common::TrajectoryPoint>& trajectory) const;
89
90 std::vector<common::TrajectoryPoint> complete_rtk_trajectory_;
91};
92
94 Planner)
95
96} // namespace planning
97} // 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
RTKReplayPlanner is a derived class of Planner.
apollo::common::Status PlanOnReferenceLine(const common::TrajectoryPoint &planning_init_point, Frame *frame, ReferenceLineInfo *reference_line_info) override
Override function Plan in parent class Planner.
apollo::common::Status Init(const std::shared_ptr< DependencyInjector > &injector, const std::string &config_path="") override
virtual ~RTKReplayPlanner()=default
Destructor
apollo::common::Status Plan(const common::TrajectoryPoint &planning_init_point, Frame *frame, ADCTrajectory *ptr_computed_trajectory) override
Override function Plan in parent class Planner.
void ReadTrajectoryFile(const std::string &filename)
Read the recorded trajectory file.
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