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): fix prepare length too short at low speed (RT1-8909) #9735

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

Description

When the prepare metrics are computed, if the ego velocity is lower than the lane-changing velocity, the returned prepare duration becomes abnormally short, even when the ego vehicle is far from the terminal stop.

In the following video, the prepare distance is less than 1m.

cap-.2024-12-23-18-02-45.mp4

In above video, current_velocity is somewhere less than min_lc_velocity, and the following is computed

(min_lc_velocity - current_velocity) / max_acc;

the small discrepancy resulted in very short duration.

After PR

The solution is to compare the computation with parameterized min_prepare_duration

cap-.2024-12-23-18-16-30.mp4

Related links

TIER IV Internal link

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

Longer prepare duration when ego's velocity is low and the distance from ego to terminal stop is far.

Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Dec 23, 2024
Copy link

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 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 23, 2024
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.74%. Comparing base (07db183) to head (980d114).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9735      +/-   ##
==========================================
- Coverage   29.75%   29.74%   -0.01%     
==========================================
  Files        1444     1446       +2     
  Lines      108691   108720      +29     
  Branches    42664    42665       +1     
==========================================
+ Hits        32336    32338       +2     
- Misses      73173    73201      +28     
+ Partials     3182     3181       -1     
Flag Coverage Δ *Carryforward flag
differential 21.93% <100.00%> (?)
total 29.74% <ø> (-0.01%) ⬇️ Carriedforward from 07db183

*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 merged commit daa8a15 into autowarefoundation:main Dec 24, 2024
46 of 48 checks passed
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the RT1-8909-prepare-distance-too-short branch December 24, 2024 03:21
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Dec 25, 2024
autowarefoundation#9735)

fix prepare length too short at low speed (RT1-8909)

Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Dec 25, 2024
autowarefoundation#9735)

fix prepare length too short at low speed (RT1-8909)

Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
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) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants