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(autoware_behavior_path_start_planner_module): add data_structs.cpp and init method for StartPlannerParameters #9736

Conversation

kyoichi-sugahara
Copy link
Contributor

Description

Move the parameter initialization logic from StartPlannerModuleManager::init() to StartPlannerParameters::init() to improve code maintainability and readability. This refactoring separates parameter handling from the manager's core functionality.

As shown in this PR, the main purpose is to make it easier to define parameters when implementing unit tests.

Changes are following

  • Add data_structs.cpp to CMakeLists.txt
  • Add static initialization method to StartPlannerParameters
  • Move parameter initialization code from manager.cpp to data_structs.cpp
  • Simplify manager.cpp by using the new initialization method

Related links

Parent Issue:

  • Link

How was this PR tested?

run psim

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

…pp and init method for StartPlannerParameters

Signed-off-by: Kyoichi Sugahara <[email protected]>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Dec 23, 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:

@kyoichi-sugahara kyoichi-sugahara added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 23, 2024
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

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

Project coverage is 29.74%. Comparing base (3bb2df2) to head (fa96d33).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
...ior_path_start_planner_module/src/data_structs.cpp 0.00% 251 Missing ⚠️
...behavior_path_start_planner_module/src/manager.cpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9736      +/-   ##
==========================================
- Coverage   29.76%   29.74%   -0.03%     
==========================================
  Files        1444     1450       +6     
  Lines      108699   108715      +16     
  Branches    42688    42652      -36     
==========================================
- Hits        32359    32340      -19     
- Misses      73157    73193      +36     
+ Partials     3183     3182       -1     
Flag Coverage Δ *Carryforward flag
differential 6.83% <0.00%> (?)
total 29.82% <ø> (+0.06%) ⬆️ Carriedforward from 07db183

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

@kyoichi-sugahara kyoichi-sugahara merged commit f2a4129 into autowarefoundation:main Dec 24, 2024
46 of 48 checks passed
@kyoichi-sugahara kyoichi-sugahara deleted the refactor/start_plaenner/define_init_parameter_function branch December 24, 2024 06:48
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Dec 25, 2024
…ts.cpp and init method for StartPlannerParameters (autowarefoundation#9736)

feat(autoware_behavior_path_start_planner_module): add data_structs.cpp and init method for StartPlannerParameters

Signed-off-by: Kyoichi Sugahara <[email protected]>
kyoichi-sugahara added a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Dec 25, 2024
…ts.cpp and init method for StartPlannerParameters (autowarefoundation#9736)

feat(autoware_behavior_path_start_planner_module): add data_structs.cpp and init method for StartPlannerParameters

Signed-off-by: Kyoichi Sugahara <[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.

2 participants