Apollo 11.0
自动驾驶开放平台
prediction_querier.h
浏览该文件的文档.
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
21#pragma once
22
23#include <memory>
24#include <string>
25#include <unordered_map>
26#include <vector>
27
29
30namespace apollo {
31namespace planning {
32
34 public:
35 PredictionQuerier(const std::vector<const Obstacle*>& obstacles,
36 const std::shared_ptr<std::vector<common::PathPoint>>&
37 ptr_reference_line);
38
39 virtual ~PredictionQuerier() = default;
40
41 std::vector<const Obstacle*> GetObstacles() const;
42
43 double ProjectVelocityAlongReferenceLine(const std::string& obstacle_id,
44 const double s,
45 const double t) const;
46
47 private:
48 std::unordered_map<std::string, const Obstacle*> id_obstacle_map_;
49
50 std::vector<const Obstacle*> obstacles_;
51
52 std::shared_ptr<std::vector<common::PathPoint>> ptr_reference_line_;
53};
54
55} // namespace planning
56} // namespace apollo
std::vector< const Obstacle * > GetObstacles() const
double ProjectVelocityAlongReferenceLine(const std::string &obstacle_id, const double s, const double t) const
Planning module main class.
class register implement
Definition arena_queue.h:37