Autoware.Auto
astar_path_planner.hpp
Go to the documentation of this file.
1 // Copyright 2020 Embotech AG, Zurich, Switzerland. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //    http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #ifndef PARKING_PLANNER__ASTAR_PATH_PLANNER_HPP_
15 #define PARKING_PLANNER__ASTAR_PATH_PLANNER_HPP_
16 
17 #include <common/types.hpp>
18 #include <cmath>
19 #include <vector>
20 
22 #include "visibility_control.hpp"
23 
24 namespace autoware
25 {
26 namespace motion
27 {
28 namespace planning
29 {
30 namespace parking_planner
31 {
33 static constexpr float64_t MY_PI = 3.141592653589793;
34 static constexpr float64_t DELTA_LONGITUDINAL = 0.125;
35 static const float64_t DELTA_HEADING = MY_PI / 24.0;
36 static constexpr float64_t MAX_EXPLORATION_RADIUS = 30.0;
37 static constexpr size_t MAX_NUM_EXPLORATION_NODES = 1000000;
38 
39 class PARKING_PLANNER_PUBLIC AstarPathPlanner
40 {
41 public:
43  AstarPathPlanner() = default;
44 
52  // and ends at goal_state. On failure, the path is length 1 and only contains the
53  // current_state.
54  std::vector<VehicleState<float64_t>>
55  plan_astar(
56  const VehicleState<float64_t> & current_state,
57  const VehicleState<float64_t> & goal_state,
58  const Polytope2D<float64_t> & vehicle_bounding_box,
59  const std::vector<Polytope2D<float64_t>> & obstacles) const;
60 
61 private:
62  // Currently no state
63 };
64 
65 } // namespace parking_planner
66 } // namespace planning
67 } // namespace motion
68 } // namespace autoware
69 
70 #endif // PARKING_PLANNER__ASTAR_PATH_PLANNER_HPP_
static constexpr float64_t DELTA_LONGITUDINAL
Definition: astar_path_planner.hpp:34
double float64_t
Definition: types.hpp:37
static constexpr float64_t MY_PI
Definition: astar_path_planner.hpp:33
static const float64_t DELTA_HEADING
Definition: astar_path_planner.hpp:35
This file includes common type definition.
static constexpr float64_t MAX_EXPLORATION_RADIUS
Definition: astar_path_planner.hpp:36
Class describing a polytope in two-dimensional space.
Definition: geometry.hpp:244
Definition: controller_base.hpp:30
static constexpr size_t MAX_NUM_EXPLORATION_NODES
Definition: astar_path_planner.hpp:37
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24