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

refactor(blind_spot): find first_conflicting_lane just as intersection module #6405

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Feb 14, 2024

Description

find the first_conflicting_lanelet in the same way as intersection module

Related links

autowarefoundation/autoware_launch#873

https://tier4.atlassian.net/browse/RT1-5048

https://tier4.atlassian.net/browse/RT1-4216

Tests performed

https://evaluation.tier4.jp/evaluation/reports/d4841d57-9c9e-5027-80d8-0d444a6d8fb5?project_id=prd_jt

on a single lane

RT1-5048-2024-02-14_18.08.09.mp4

for adjacent lane

RT1-5048-2024-02-14_16.58.15.mp4

for opposite adjacent lane

RT1-5048-2024-02-14_17.05.39.mp4

Notes for reviewers

Interface changes

none

Effects on system behavior

none

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.

Summary by CodeRabbit

  • Refactor: Introduced a new InterpolatedPathInfo struct to wrap an interpolated path with lane ID information.
  • Refactor: Initialized turn_direction_, is_over_pass_judge_line_, and first_conflicting_lanelet_ using brace initialization syntax.
  • Refactor: Added several private member functions (generateInterpolatedPathInfo(), getFirstConflictingLanelet(), getFirstPointConflictingLanelets(), and generateStopLine()).
  • Refactor: Removed the getVehicleEdge() function.
  • Refactor: Refactored the logic for generating a stop line and inserting it into the path.
  • Refactor: Removed the getStraightLanelets() function.

These changes improve the code structure, enhance functionality related to interpolated paths and lane information, and remove unnecessary functions. There are no direct user-facing impacts, but these changes contribute to overall code quality and maintainability.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Feb 14, 2024
…n module

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin soblin force-pushed the feat/blind-spot/generate-cache-first-conflicting-lane branch from a2c92c5 to 82c28ac Compare February 14, 2024 09:11
@soblin soblin marked this pull request as ready for review February 14, 2024 09:18
@shmpwk shmpwk self-assigned this Feb 14, 2024
@shmpwk shmpwk added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) tag:openai-pr-reviewer labels Feb 14, 2024
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Attention: 114 lines in your changes are missing coverage. Please review.

Comparison is base (81605c1) 14.88% compared to head (82c28ac) 14.88%.
Report is 50 commits behind head on main.

Files Patch % Lines
.../behavior_velocity_blind_spot_module/src/scene.cpp 0.00% 113 Missing ⚠️
.../behavior_velocity_blind_spot_module/src/scene.hpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6405      +/-   ##
==========================================
- Coverage   14.88%   14.88%   -0.01%     
==========================================
  Files        1838     1839       +1     
  Lines      126460   126481      +21     
  Branches    37962    37970       +8     
==========================================
  Hits        18826    18826              
- Misses      86412    86433      +21     
  Partials    21222    21222              
Flag Coverage Δ *Carryforward flag
differential 13.23% <0.00%> (?)
total 14.89% <ø> (+0.01%) ⬆️ Carriedforward from 81605c1

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

Copy link

github-actions bot commented Feb 14, 2024

Image description CodeRabbit

Walkthrough

The changes introduce several updates to the BlindSpotModule class in the scene.hpp file. These include the addition of a new struct, initialization using brace syntax for member variables, the introduction of private member functions, removal of a function, refactoring of logic for generating a stop line and inserting it into the path, and removal of another function.

Changes

File Summary
planning/behavior_velocity_blind_spot_module/src/scene.hpp The diff introduces several changes to the BlindSpotModule class. It adds a new struct InterpolatedPathInfo, initializes certain member variables using brace initialization syntax, adds private member functions, removes a function, refactors the logic for generating a stop line and inserting it into the path, and removes another function.

"Hopping through the code, changes abound,
BlindSpotModule transformed, a joy profound.
Structs and functions, initialized with care,
Logic refactored, complexity laid bare.
A rabbit's touch, improving day by day,
Code quality enhanced, in every way."


Uplevel your code reviews with CodeRabbit Pro

CodeRabbit Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 78eea31 and 82c28ac commits.
Files selected (2)
  • planning/behavior_velocity_blind_spot_module/src/scene.cpp (8)
  • planning/behavior_velocity_blind_spot_module/src/scene.hpp (4)
Files not summarized due to errors (1)
  • planning/behavior_velocity_blind_spot_module/src/scene.cpp (diff tokens exceeds limit)
Review comments generated (11)
  • Review: 11
  • LGTM: 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

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

LGTM

@shmpwk shmpwk enabled auto-merge (squash) February 14, 2024 15:56
@soblin soblin added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) and removed run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) labels Feb 15, 2024
@shmpwk shmpwk merged commit 5015007 into autowarefoundation:main Feb 15, 2024
57 of 62 checks passed
@shmpwk shmpwk deleted the feat/blind-spot/generate-cache-first-conflicting-lane branch February 15, 2024 05:17
soblin added a commit to tier4/autoware.universe that referenced this pull request Feb 15, 2024
…n module (autowarefoundation#6405)

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@mehmetdogru mehmetdogru linked an issue Feb 15, 2024 that may be closed by this pull request
3 tasks
shmpwk added a commit to tier4/autoware.universe that referenced this pull request Feb 19, 2024
refactor(blind_spot): find first_conflicting_lane just as intersection module (autowarefoundation#6405)
StepTurtle pushed a commit to StepTurtle/autoware.universe that referenced this pull request Feb 28, 2024
…n module (autowarefoundation#6405)

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…n module (autowarefoundation#6405)

Signed-off-by: Mamoru Sobue <mamoru.sobue@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.

BlindSpotModule setStopLineInx fail
2 participants