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(intersection): use constant velocity for smoother reference #1721

Merged

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Aug 29, 2022

fixed the reference velocity to a constant velocity reference as the input to smoother

Signed-off-by: Mamoru Sobue mamoru.sobue@tier4.jp

Description

Changed how to calculate ttc(time-to-colliison) for ego car. The ttc for ego is the predicted passing time for each point on the path, calculated from predicted velocity.

Before this PR ego's predicted velocity was obtained by smoothing this velocity reference.

     x-------------- vmax
    /
   /
  /
v0

So velocity profile was processed doubly toward vmax. As a result velocity profile was underestimated.

In this PR, smoother is applied to constant vmax reference only once.

Related links

Prior PR: #1405

Tests performed

The red marker (this polygon is the predicted positions of ego while the object is intersecting with ego's path) does not oscillate a lot.

Before PR:

before_fix_smoother.mp4

In this PR:

after_fix_smoother-2022-08-29_19.46.15.mp4

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #1721 (dcf99e5) into main (9944a2a) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head dcf99e5 differs from pull request most recent head 036dac7. Consider uploading reports for the commit 036dac7 to get more accurate results

@@            Coverage Diff             @@
##             main    #1721      +/-   ##
==========================================
- Coverage   10.31%   10.29%   -0.02%     
==========================================
  Files        1207     1207              
  Lines       87119    87106      -13     
  Branches    20076    20057      -19     
==========================================
- Hits         8982     8971      -11     
- Misses      68835    68965     +130     
+ Partials     9302     9170     -132     
Flag Coverage Δ
total 10.28% <0.00%> (-0.02%) ⬇️
Impacted Files Coverage Δ
...vehicle_model/sim_model_ideal_steer_acc_geared.cpp 64.15% <0.00%> (-18.87%) ⬇️
...planning_evaluator/src/planning_evaluator_node.cpp 37.11% <0.00%> (-1.04%) ⬇️
common/osqp_interface/src/osqp_interface.cpp 34.35% <0.00%> (ø)
planning/route_handler/src/route_handler.cpp 0.00% <0.00%> (ø)
planning/rtc_interface/src/rtc_interface.cpp 0.00% <0.00%> (ø)
control/trajectory_follower/src/mpc_utils.cpp 58.25% <0.00%> (ø)
planning/behavior_velocity_planner/src/node.cpp 0.42% <0.00%> (ø)
common/motion_utils/src/marker/marker_helper.cpp 0.00% <0.00%> (ø)
planning/behavior_path_planner/src/utilities.cpp 3.36% <0.00%> (ø)
control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp 0.25% <0.00%> (ø)
... and 83 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@soblin soblin marked this pull request as ready for review August 29, 2022 13:07
@soblin soblin force-pushed the fix/smoother-intersection-ttc branch 3 times, most recently from 5672945 to f8a8db3 Compare September 1, 2022 02:48
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin soblin force-pushed the fix/smoother-intersection-ttc branch from f8a8db3 to 036dac7 Compare September 1, 2022 06:33
@kyoichi-sugahara
Copy link
Contributor

checked that the red marker does not oscillate (and passed all related scenario tests)

simplescreenrecorder-2022-09-06_11.03.25.mp4

Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

LGTM

@soblin soblin merged commit 5b30e50 into autowarefoundation:main Sep 6, 2022
@soblin soblin deleted the fix/smoother-intersection-ttc branch September 8, 2022 01:02
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Sep 28, 2022
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
soblin added a commit to soblin/autoware.universe that referenced this pull request Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants