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): separate path-related function to utils/path #9633

Merged
merged 13 commits into from
Dec 24, 2024

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 commented Dec 12, 2024

Description

Move candidate path generator/constructor-related function to utils/path.hpp/cpp.

If we planning on adding new path generation functions, utils.hpp/cpp file might be overcrowded. So for maintainability purpose, it is better to isolate these functions.

Related links

Parent Issue:

  • Link

How was this PR tested?

TIER IV Internal link

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Dec 12, 2024
Copy link

github-actions bot commented Dec 12, 2024

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 marked this pull request as ready for review December 12, 2024 14:27
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 marked this pull request as draft December 13, 2024 01:57
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 marked this pull request as ready for review December 16, 2024 05:23
@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 17, 2024
Copy link
Contributor

@mkquda mkquda left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 60.94675% with 66 lines in your changes missing coverage. Please review.

Project coverage is 29.74%. Comparing base (ca3afdd) to head (8ecae27).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...ehavior_path_lane_change_module/src/utils/path.cpp 74.13% 16 Missing and 14 partials ⚠️
...are_behavior_path_lane_change_module/src/scene.cpp 25.00% 20 Missing and 1 partial ⚠️
...havior_path_lane_change_module/src/utils/utils.cpp 37.50% 14 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9633      +/-   ##
==========================================
+ Coverage   29.73%   29.74%   +0.01%     
==========================================
  Files        1448     1451       +3     
  Lines      108886   108805      -81     
  Branches    42746    42689      -57     
==========================================
- Hits        32377    32368       -9     
+ Misses      73325    73259      -66     
+ Partials     3184     3178       -6     
Flag Coverage Δ *Carryforward flag
differential 20.98% <60.94%> (?)
total 29.69% <ø> (-0.04%) ⬇️ Carriedforward from ca3afdd

*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 enabled auto-merge (squash) December 24, 2024 03:21
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 merged commit 5fa0141 into autowarefoundation:main Dec 24, 2024
34 of 35 checks passed
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the refactor-lc-path-utils branch December 24, 2024 04:05
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Dec 25, 2024
…utowarefoundation#9633)

* refactor(lane_change): separate path-related function to utils/path

Signed-off-by: Zulfaqar Azmi <[email protected]>

* remove old terminal lane change computation

Signed-off-by: Zulfaqar Azmi <[email protected]>

* doxygen comments

Signed-off-by: Zulfaqar Azmi <[email protected]>

* remove frenet planner header

Signed-off-by: Zulfaqar Azmi <[email protected]>

* minor refactoring by throwing instead

Signed-off-by: Zulfaqar Azmi <[email protected]>

* minor refactoring

Signed-off-by: Zulfaqar Azmi <[email protected]>

* fix docstring and remove redundant argument

Signed-off-by: Zulfaqar Azmi <[email protected]>

* get logger in header

Signed-off-by: Zulfaqar Azmi <[email protected]>

* add docstring

Signed-off-by: Zulfaqar Azmi <[email protected]>

* rename function is_colliding

Signed-off-by: Zulfaqar Azmi <[email protected]>

* Fix failing test

Signed-off-by: Zulfaqar Azmi <[email protected]>

* fix for failing scenario caused by prepare velocity

Signed-off-by: Zulfaqar Azmi <[email protected]>

* fix error message

Signed-off-by: Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Zulfaqar Azmi <[email protected]>
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Dec 25, 2024
…utowarefoundation#9633)

* refactor(lane_change): separate path-related function to utils/path

Signed-off-by: Zulfaqar Azmi <[email protected]>

* remove old terminal lane change computation

Signed-off-by: Zulfaqar Azmi <[email protected]>

* doxygen comments

Signed-off-by: Zulfaqar Azmi <[email protected]>

* remove frenet planner header

Signed-off-by: Zulfaqar Azmi <[email protected]>

* minor refactoring by throwing instead

Signed-off-by: Zulfaqar Azmi <[email protected]>

* minor refactoring

Signed-off-by: Zulfaqar Azmi <[email protected]>

* fix docstring and remove redundant argument

Signed-off-by: Zulfaqar Azmi <[email protected]>

* get logger in header

Signed-off-by: Zulfaqar Azmi <[email protected]>

* add docstring

Signed-off-by: Zulfaqar Azmi <[email protected]>

* rename function is_colliding

Signed-off-by: Zulfaqar Azmi <[email protected]>

* Fix failing test

Signed-off-by: Zulfaqar Azmi <[email protected]>

* fix for failing scenario caused by prepare velocity

Signed-off-by: Zulfaqar Azmi <[email protected]>

* fix error message

Signed-off-by: Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Zulfaqar Azmi <[email protected]>
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