forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(behavior_path_planner): pull over freespace parking (autowarefou…
…ndation#2879) * feat(behavior_path_planner): pull over freespace parking Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * Update planning/behavior_path_planner/include/behavior_path_planner/scene_module/pull_over/pull_over_module.hpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix from review Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * add require_increment_ explanation make the function Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * Update planning/behavior_path_planner/README.md * fix mutex Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * fix typo Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * fix build Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * pre-commit Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> --------- Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
- Loading branch information
1 parent
e0ef949
commit 88c2ffd
Showing
22 changed files
with
975 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...path_planner/include/behavior_path_planner/scene_module/pull_over/freespace_pull_over.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright 2023 TIER IV, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef BEHAVIOR_PATH_PLANNER__UTIL__PULL_OVER__FREESPACE_PULL_OVER_HPP_ | ||
#define BEHAVIOR_PATH_PLANNER__UTIL__PULL_OVER__FREESPACE_PULL_OVER_HPP_ | ||
|
||
#include "behavior_path_planner/scene_module/pull_over/pull_over_planner_base.hpp" | ||
|
||
#include <freespace_planning_algorithms/abstract_algorithm.hpp> | ||
#include <freespace_planning_algorithms/astar_search.hpp> | ||
#include <freespace_planning_algorithms/rrtstar.hpp> | ||
|
||
#include <autoware_auto_planning_msgs/msg/path_with_lane_id.hpp> | ||
|
||
#include <memory> | ||
#include <vector> | ||
|
||
namespace behavior_path_planner | ||
{ | ||
using freespace_planning_algorithms::AbstractPlanningAlgorithm; | ||
using freespace_planning_algorithms::AstarParam; | ||
using freespace_planning_algorithms::AstarSearch; | ||
using freespace_planning_algorithms::PlannerCommonParam; | ||
using freespace_planning_algorithms::RRTStar; | ||
using freespace_planning_algorithms::RRTStarParam; | ||
|
||
class FreespacePullOver : public PullOverPlannerBase | ||
{ | ||
public: | ||
FreespacePullOver( | ||
rclcpp::Node & node, const PullOverParameters & parameters, | ||
const vehicle_info_util::VehicleInfo & vehicle_info); | ||
|
||
PullOverPlannerType getPlannerType() const override { return PullOverPlannerType::FREESPACE; } | ||
|
||
boost::optional<PullOverPath> plan(const Pose & goal_pose) override; | ||
|
||
protected: | ||
PlannerCommonParam getCommonParam(rclcpp::Node & node) const; | ||
AstarParam getAstarParam(rclcpp::Node & node) const; | ||
RRTStarParam getRRTStarParam(rclcpp::Node & node) const; | ||
|
||
std::unique_ptr<AbstractPlanningAlgorithm> planner_; | ||
double velocity_; | ||
bool use_back_; | ||
}; | ||
} // namespace behavior_path_planner | ||
|
||
#endif // BEHAVIOR_PATH_PLANNER__UTIL__PULL_OVER__FREESPACE_PULL_OVER_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.