-
Notifications
You must be signed in to change notification settings - Fork 84
fix(path_generator): ensure refined path connects start and goal #511
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
Merged
kosuke55
merged 6 commits into
autowarefoundation:main
from
mitukou1109:fix/path-generator-smooth-goal-connection
Jun 6, 2025
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c9d9aec
ensure refined path connects start and goal
mitukou1109 f4e5f16
Merge branch 'main' into fix/path-generator-smooth-goal-connection
youtalk 75e152a
rename and add parameters for smooth goal connection
mitukou1109 be45627
parameterize pre-goal offset
mitukou1109 6c11264
delegate validation to generate_parameter_library
mitukou1109 79a173e
Merge pull request #6 from mitukou1109/refactor/path-generator-parameter
mitukou1109 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 hidden or 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 |
---|---|---|
|
@@ -672,6 +672,10 @@ experimental::trajectory::Trajectory<PathPointWithLaneId> refine_path_for_goal( | |
if (!intervals.empty()) { | ||
auto cropped = autoware::experimental::trajectory::crop(cropped_path, 0, intervals.back().end); | ||
goal_connected_trajectory_points = cropped.restore(2); | ||
} else if (cropped_path.length() > 1.0) { | ||
// If distance from start to goal is smaller than refine_goal_search_radius_range and start is | ||
// farther from goal than pre_goal, we just connect start, pre_goal, and goal. | ||
Comment on lines
+675
to
+676
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment is helpful. Thank you! |
||
goal_connected_trajectory_points = {cropped_path.compute(0)}; | ||
} | ||
|
||
auto goal = input.compute(autoware::experimental::trajectory::closest(input, goal_pose)); | ||
|
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.
1.0
is a magic number. Please declare theconstexpr
value to name it.Uh oh!
There was an error while loading. Please reload this page.
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.
This is due to the pre-goal offset being hardcoded, and I have just made it a parameter in mitukou1109#6.
Internal discussion: https://star4.slack.com/archives/C0575HP7NJG/p1748917579897599?thread_ts=1748479122.395359&cid=C0575HP7NJG
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.
mitukou1109#6 was merged to this branch.