Apollo 11.0
自动驾驶开放平台
lane_escape_util.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2024 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 *****************************************************************************/
20#pragma once
21
26
27namespace apollo {
28namespace planning {
29
31 public:
32 static bool IsNeedEscape(ReferenceLineInfo& reference_line_info,
33 double min_distance_block_obs_to_junction,
34 bool enable_junction_borrow,
35 double passby_min_gap,
36 double passby_kappa_ratio,
37 int queue_check_count,
38 int stable_block_count);
39
40 static bool IsEnoughSpace(
41 const ReferenceLineInfo& reference_line_info,
42 const std::string& blocking_obstacle_id,
43 const double &passby_min_gap,
44 const double &passby_kappa_ratio);
45
46 static bool IsQueueSence(
47 ReferenceLineInfo& reference_line_info,
48 const std::string& blocking_obstacle_id,
49 const int &queue_check_count,
50 std::pair<std::shared_ptr<Obstacle>, int> &queue_obs_info);
51
52 static bool IsStableBlockObs(ReferenceLineInfo& reference_line_info, const std::string& blocking_obstacle_id, const int &stable_block_count, std::pair<std::string, int> &stable_block_obs);
53
54 static bool GetClosestStopDecisionObs(
55 const ReferenceLineInfo& reference_line_info,
56 std::string& stop_decision_obs_id,
57 double& min_distance);
58};
59
60} // namespace planning
61} // namespace apollo
static bool IsStableBlockObs(ReferenceLineInfo &reference_line_info, const std::string &blocking_obstacle_id, const int &stable_block_count, std::pair< std::string, int > &stable_block_obs)
static bool GetClosestStopDecisionObs(const ReferenceLineInfo &reference_line_info, std::string &stop_decision_obs_id, double &min_distance)
static bool IsNeedEscape(ReferenceLineInfo &reference_line_info, double min_distance_block_obs_to_junction, bool enable_junction_borrow, double passby_min_gap, double passby_kappa_ratio, int queue_check_count, int stable_block_count)
static bool IsEnoughSpace(const ReferenceLineInfo &reference_line_info, const std::string &blocking_obstacle_id, const double &passby_min_gap, const double &passby_kappa_ratio)
static bool IsQueueSence(ReferenceLineInfo &reference_line_info, const std::string &blocking_obstacle_id, const int &queue_check_count, std::pair< std::shared_ptr< Obstacle >, int > &queue_obs_info)
ReferenceLineInfo holds all data for one reference line.
Planning module main class.
class register implement
Definition arena_queue.h:37