-
Notifications
You must be signed in to change notification settings - Fork 672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(behavior_path_planner): pull over freespace parking #2879
Merged
kosuke55
merged 12 commits into
autowarefoundation:main
from
tier4:feat/pull_over_free_space
Mar 3, 2023
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
86f2476
feat(behavior_path_planner): pull over freespace parking
kosuke55 9b6c2f8
Update planning/behavior_path_planner/include/behavior_path_planner/s…
kosuke55 e5f3bea
fix from review
kosuke55 3a74de4
add require_increment_ explanation make the function
kosuke55 4be8299
Update planning/behavior_path_planner/README.md
kosuke55 4221173
fix mutex
kosuke55 dce183a
Merge remote-tracking branch 'awf/main' into feat/pull_over_free_space
kosuke55 7754e72
Merge remote-tracking branch 'awf/main' into feat/pull_over_free_space
kosuke55 c177d85
fix typo
kosuke55 0602e8e
Merge remote-tracking branch 'awf/main' into feat/pull_over_free_space
kosuke55 6f0508e
fix build
kosuke55 a5f0dd1
pre-commit
kosuke55 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
...ehavior_path_planner/include/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
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__SCENE_MODULE__PULL_OVER__FREESPACE_PULL_OVER_HPP_ | ||
#define BEHAVIOR_PATH_PLANNER__SCENE_MODULE__PULL_OVER__FREESPACE_PULL_OVER_HPP_ | ||
|
||
#include "behavior_path_planner/util/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__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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me. Check this later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: #692
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx