Skip to content
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

fix(lane_change): check obj predicted path when filtering #9385

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 commented Nov 19, 2024

Description

If there’s object that crosses predicted target lanes but it is not in target lane or target preceding lane, then the object will be treated as other lane object and will be ignored.

This PR aims to fix this.

Before PR

The following video shows the use case.
If the object is not in cyan lane (current) or blue (target preceding), then it will be considered as others object (purple cube).

cap-.2024-11-19-18-13-39.mp4

With PR

Object is now considered as target lane leading object (cyan cube)

cap-.2024-11-19-17-55-12.mp4

Related links

Parent Issue:

  • Link

How was this PR tested?

  1. PSIM
  2. Internal evaluator: TIER IV Internal link

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Nov 19, 2024
Copy link

github-actions bot commented Nov 19, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 changed the title Rt1 8537 check obj predicted path when filtering fix(lane_change): check obj predicted path when filtering Nov 19, 2024
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-8537-check-obj-predicted-path-when-filtering branch 2 times, most recently from 9006a0b to 8175b0a Compare November 22, 2024 07:32
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 marked this pull request as ready for review November 27, 2024 06:52
@@ -368,5 +368,8 @@ bool filter_target_lane_objects(
const double dist_ego_to_current_lanes_center, const bool ahead_of_ego,
const bool before_terminal, TargetLaneLeadingObjects & leading_objects,
ExtendedPredictedObjects & trailing_objects);

bool has_path_overlapped_target_lanes(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name suggestion object_path_overlaps_target_lanes

Copy link
Contributor

@mkquda mkquda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-8537-check-obj-predicted-path-when-filtering branch 3 times, most recently from 161e4a8 to 21ddd9b Compare November 28, 2024 13:47
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 28, 2024
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 14.28571% with 12 lines in your changes missing coverage. Please review.

Project coverage is 29.58%. Comparing base (9553414) to head (567959a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...havior_path_lane_change_module/src/utils/utils.cpp 11.11% 8 Missing ⚠️
...rc/utils/path_safety_checker/objects_filtering.cpp 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9385      +/-   ##
==========================================
- Coverage   29.59%   29.58%   -0.02%     
==========================================
  Files        1442     1448       +6     
  Lines      108512   108560      +48     
  Branches    41409    41412       +3     
==========================================
  Hits        32119    32119              
- Misses      73269    73317      +48     
  Partials     3124     3124              
Flag Coverage Δ *Carryforward flag
differential 21.43% <14.28%> (?)
total 29.60% <ø> (+<0.01%) ⬆️ Carriedforward from 9553414

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-8537-check-obj-predicted-path-when-filtering branch 3 times, most recently from 751a597 to 1dc7809 Compare December 3, 2024 00:41
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-8537-check-obj-predicted-path-when-filtering branch from 1dc7809 to 2694ec2 Compare December 5, 2024 05:56
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-8537-check-obj-predicted-path-when-filtering branch from 2694ec2 to df978cb Compare December 9, 2024 10:50
zulfaqar-azmi-t4 and others added 2 commits December 9, 2024 19:50
…nge_module/src/utils/utils.cpp

Co-authored-by: Maxime CLEMENT <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 merged commit dbdf9a1 into autowarefoundation:main Dec 9, 2024
31 of 33 checks passed
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the RT1-8537-check-obj-predicted-path-when-filtering branch December 9, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants