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(crosswalk): fix passing direction calclation for the objects #9071

Merged

Conversation

yuki-takagi-66
Copy link
Contributor

@yuki-takagi-66 yuki-takagi-66 commented Oct 10, 2024

Description

If the crosswalk width is narrow than sparse_resample_interval, which is had coded as 4.0m, passing direction calculation may failed because idx1 == idx2 is satisfied.
This PR fix this issue, and now both of the same directional objects and the opposite directional objects are ignored as a crosswalk user.

Related links

#5849

How was this PR tested?

scenario tests

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Oct 10, 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:

@yuki-takagi-66 yuki-takagi-66 changed the title po fix(crosswalk): fix passing direction calucation for the objects Oct 10, 2024
@yuki-takagi-66 yuki-takagi-66 changed the title fix(crosswalk): fix passing direction calucation for the objects fix(crosswalk): fix passing direction calclaation for the objects Oct 10, 2024
@yuki-takagi-66 yuki-takagi-66 marked this pull request as ready for review October 10, 2024 08:00
@yuki-takagi-66 yuki-takagi-66 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 26.76%. Comparing base (9d78e00) to head (7626915).
Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
..._velocity_crosswalk_module/src/scene_crosswalk.cpp 0.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9071      +/-   ##
==========================================
- Coverage   26.77%   26.76%   -0.02%     
==========================================
  Files        1296     1301       +5     
  Lines       95822    95868      +46     
  Branches    39145    39146       +1     
==========================================
+ Hits        25657    25658       +1     
- Misses      67518    67563      +45     
  Partials     2647     2647              
Flag Coverage Δ *Carryforward flag
differential 17.44% <0.00%> (?)
total 26.78% <ø> (+<0.01%) ⬆️ Carriedforward from 9d78e00

*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.

@yuki-takagi-66 yuki-takagi-66 changed the title fix(crosswalk): fix passing direction calclaation for the objects fix(crosswalk): fix passing direction calclation for the objects Oct 10, 2024
@yuki-takagi-66 yuki-takagi-66 merged commit d01ae0d into autowarefoundation:main Oct 11, 2024
52 of 54 checks passed
@yuki-takagi-66 yuki-takagi-66 deleted the takagi/crosswalk/fix-diff-angle branch October 11, 2024 04:15
kyoichi-sugahara pushed a commit to tier4/autoware.universe that referenced this pull request Dec 19, 2024
…owarefoundation#9071)

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Signed-off-by: Kyoichi Sugahara <kyoichi.sugahara@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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants