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(lane_change): move several functions from lane change utils to NormalLaneChange #4273

Merged
merged 5 commits into from
Jul 14, 2023

Conversation

purewater0901
Copy link
Contributor

@purewater0901 purewater0901 commented Jul 13, 2023

Description

In order to reduce the arguments in the getPrepareSegment, hasEnoughLength and getTargetObjects, I moved them to the NormalLaneChange class. Therefore, it has two less arguments than before. Moreover, I removed a single maybe unused flag to clean the code.

Tests performed

1577/1588
TIER IV Internal Link

Effects on system behavior

No effects.

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.

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.

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

Signed-off-by: yutaka <purewater0901@gmail.com>
@purewater0901 purewater0901 marked this pull request as ready for review July 13, 2023 09:28
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Jul 13, 2023
Signed-off-by: yutaka <purewater0901@gmail.com>
@purewater0901 purewater0901 changed the title refactor(lane_change): move getPrepareSegment to a class function refactor(lane_change): move several functions from lane change utils to NormalLaneChange Jul 13, 2023
Signed-off-by: yutaka <purewater0901@gmail.com>
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.03 ⚠️

Comparison is base (ebffd7b) 15.20% compared to head (82c4c8c) 15.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4273      +/-   ##
==========================================
- Coverage   15.20%   15.18%   -0.03%     
==========================================
  Files        1489     1489              
  Lines      102660   102670      +10     
  Branches    31529    31527       -2     
==========================================
- Hits        15611    15586      -25     
- Misses      70097    70141      +44     
+ Partials    16952    16943       -9     
Flag Coverage Δ *Carryforward flag
differential 13.59% <0.00%> (?)
total 15.20% <ø> (-0.01%) ⬇️ Carriedforward from 2c98138

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

Impacted Files Coverage Δ
...r_path_planner/scene_module/lane_change/normal.hpp 0.00% <ø> (ø)
...th_planner/src/scene_module/lane_change/normal.cpp 4.54% <0.00%> (-0.53%) ⬇️
...avior_path_planner/src/utils/lane_change/utils.cpp 0.42% <ø> (+0.04%) ⬆️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

purewater0901 and others added 2 commits July 14, 2023 11:10
Signed-off-by: yutaka <purewater0901@gmail.com>
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 left a comment

Choose a reason for hiding this comment

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

LGTM!

@purewater0901 purewater0901 merged commit 84b321e into main Jul 14, 2023
@purewater0901 purewater0901 deleted the refactor/prepare-segment-getter branch July 14, 2023 03:46
purewater0901 added a commit to tier4/autoware.universe that referenced this pull request Jul 19, 2023
…to NormalLaneChange (autowarefoundation#4273)

* refactor(lane_change): move getPrepareSegment to a class function

Signed-off-by: yutaka <purewater0901@gmail.com>

* move hasEnoughLength function to NormalLaneChange

Signed-off-by: yutaka <purewater0901@gmail.com>

* udpate

Signed-off-by: yutaka <purewater0901@gmail.com>

* update

Signed-off-by: yutaka <purewater0901@gmail.com>

---------

Signed-off-by: yutaka <purewater0901@gmail.com>
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants