Apollo 11.0
自动驾驶开放平台
util.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2019 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
19namespace apollo {
20namespace common {
21namespace math {
22class Vec2d;
23} // namespace math
24} // namespace common
25} // namespace apollo
26
27namespace apollo {
28namespace common {
29class VehicleStateProvider;
30class PathPoint;
31} // namespace common
32} // namespace apollo
33
34namespace apollo {
35namespace planning {
36
37class ScenarioPullOverConfig;
38class PlanningContext;
39class ReferenceLineInfo;
40
41enum class PullOverState {
42 UNKNOWN = 0,
43 APPROACHING = 1,
44 PARK_COMPLETE = 2,
45 PARK_FAIL = 3,
47};
48
50 const common::VehicleStateProvider* vehicle_state_provider,
51 const ReferenceLineInfo& reference_line_info,
52 const ScenarioPullOverConfig& scenario_config,
53 const PlanningContext* planning_context);
54
56 const ReferenceLineInfo& reference_line_info,
57 const ScenarioPullOverConfig& scenario_config,
58 const common::PathPoint& path_point,
59 const PlanningContext* planning_context);
60
61bool CheckPullOverPositionBySL(const ReferenceLineInfo& reference_line_info,
62 const ScenarioPullOverConfig& scenario_config,
63 const common::math::Vec2d& adc_position,
64 const double adc_theta,
65 const common::math::Vec2d& target_position,
66 const double target_theta, const bool check_s);
67
68} // namespace planning
69} // namespace apollo
Implements a class of 2-dimensional vectors.
Definition vec2d.h:42
Planning module main class.
PullOverState CheckADCPullOver(const common::VehicleStateProvider *vehicle_state_provider, const ReferenceLineInfo &reference_line_info, const ScenarioPullOverConfig &scenario_config, const PlanningContext *planning_context)
: check adc parked properly
Definition util.cc:35
PullOverState CheckADCPullOverPathPoint(const ReferenceLineInfo &reference_line_info, const ScenarioPullOverConfig &scenario_config, const common::PathPoint &path_point, const PlanningContext *planning_context)
: check path data to see properly
Definition util.cc:94
bool CheckPullOverPositionBySL(const ReferenceLineInfo &reference_line_info, const ScenarioPullOverConfig &scenario_config, const common::math::Vec2d &adc_position, const double adc_theta, const common::math::Vec2d &target_position, const double target_theta, const bool check_s)
Definition util.cc:120
class register implement
Definition arena_queue.h:37