Apollo 11.0
自动驾驶开放平台
open_space_fallback_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 *****************************************************************************/
16
21#pragma once
22
28
29namespace apollo {
30namespace planning {
32public:
33 static bool IsCollisionFreeTrajectory(
34 const TrajGearPair& trajectory_gear_pair,
35 const std::vector<std::vector<common::math::Box2d>>& predicted_bounding_rectangles,
36 const std::vector<Obstacle*>& static_obstacles,
37 int* current_index,
38 int* first_collision_index,
39 bool& is_collision_with_static_obstacle,
40 bool& is_collision_with_dynamic_obstacle,
41 const double& collilsion_time_buffer);
42
43 static void BuildPredictedEnvironment(
44 const common::math::Vec2d ego_pos,
45 const std::vector<const Obstacle*>& obstacles,
46 std::vector<std::vector<common::math::Box2d>>& predicted_bounding_rectangles,
47 const double& time_period, const double& build_range);
48
50 const common::math::Vec2d ego_pos,
51 const std::vector<const Obstacle*>& obstacles,
52 std::vector<Obstacle*>& static_obstacles, const double& build_range);
53};
54} // namespace planning
55} // namespace apollo
The class of Box2d.
Implements a class of 2-dimensional vectors.
Definition vec2d.h:42
static bool IsCollisionFreeTrajectory(const TrajGearPair &trajectory_gear_pair, const std::vector< std::vector< common::math::Box2d > > &predicted_bounding_rectangles, const std::vector< Obstacle * > &static_obstacles, int *current_index, int *first_collision_index, bool &is_collision_with_static_obstacle, bool &is_collision_with_dynamic_obstacle, const double &collilsion_time_buffer)
static void BuildPredictedEnvironment(const common::math::Vec2d ego_pos, const std::vector< const Obstacle * > &obstacles, std::vector< std::vector< common::math::Box2d > > &predicted_bounding_rectangles, const double &time_period, const double &build_range)
static void BuildStaticObstacleEnvironment(const common::math::Vec2d ego_pos, const std::vector< const Obstacle * > &obstacles, std::vector< Obstacle * > &static_obstacles, const double &build_range)
Planning module main class.
std::pair< DiscretizedTrajectory, canbus::Chassis::GearPosition > TrajGearPair
class register implement
Definition arena_queue.h:37