-
Notifications
You must be signed in to change notification settings - Fork 88
feat(autoware_trajectory): Add more test, verify implementation for find_nearest_index in autoware_trajectory packages #578
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
Open
sarun-hub
wants to merge
10
commits into
autowarefoundation:main
Choose a base branch
from
sarun-hub:feat/nearest_idx
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Test 1) 10 base points, 1000 base points 2) ternary approach (find_nearest_index as s), original approach (findFirstNearestIndex... as index) Signed-off-by: Sarun Mukdapitak <[email protected]>
1) find_first_nearest_index is the combination between the original and latest version. 2) tests of original approach (index) on bow trajectory is added. 3) yaw of bow trajectory is recalculated 4) tests of find_first_nearest_index on vertical loop trajectory and bow trajectory is added. Signed-off-by: Sarun Mukdapitak <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
soblin
reviewed
Jul 18, 2025
common/autoware_trajectory/include/autoware/trajectory/utils/find_nearest.hpp
Outdated
Show resolved
Hide resolved
common/autoware_trajectory/include/autoware/trajectory/utils/find_nearest.hpp
Outdated
Show resolved
Hide resolved
common/autoware_trajectory/include/autoware/trajectory/utils/find_nearest.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Sarun Mukdapitak <[email protected]>
Signed-off-by: Sarun Mukdapitak <[email protected]>
Signed-off-by: Sarun Mukdapitak <[email protected]>
Signed-off-by: Sarun Mukdapitak <[email protected]>
For 1) PathPoint 2) PathPointWithLaneId 3) Pose 4) TrajectoryPoint Note: Point is not added due to pose unavailable Signed-off-by: Sarun Mukdapitak <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Refine the PR #507.
find_nearest_index
for self-intersecting trajectory.find_first_nearest_index
, that combinefindFirstNearestIndexWithSoftConstraints
with latest mergedfind_nearest_index
(tertiary search)find_nearest_index
forPathPoint
,PathPointWithLaneId
,Pose
andTrajectoryPoint
. (Point is not added since pose is unavailable)Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.