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): move util functions outside of class #9544

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Dec 3, 2024

Description

move the member functions outside of class for adding unti tests

Related links

Parent Issue:

  • Link

How was this PR tested?

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 3, 2024
Copy link

github-actions bot commented Dec 3, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

return half_lanelet;
}

lanelet::ConstLanelet generateExtendedAdjacentLanelet(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • same impl is as before
  • check planner_param_.adjacent_extend_width is passed as before


lanelet::ConstLanelet generateHalfLanelet(
const lanelet::ConstLanelet lanelet, const TurnDirection & turn_direction,
const double ignore_width_from_centerline)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • same impl as before
  • check planner_param_.ignore_width_from_centerline is passed as before

return new_lanelet;
}

lanelet::ConstLanelet generateExtendedOppositeAdjacentLanelet(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • same impl as before
  • check if planner_param_.opposite_adjacent_extend_width is passed as before

@soblin soblin marked this pull request as ready for review December 3, 2024 07:40
@soblin soblin added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 4, 2024
@soblin soblin enabled auto-merge (squash) December 4, 2024 05:11
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

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

Project coverage is 29.48%. Comparing base (8d9ca0e) to head (7cb25f4).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...e_behavior_velocity_blind_spot_module/src/util.cpp 0.00% 146 Missing ⚠️
..._behavior_velocity_blind_spot_module/src/scene.cpp 0.00% 9 Missing ⚠️
...oware/behavior_velocity_blind_spot_module/util.hpp 0.00% 1 Missing ⚠️
...ehavior_velocity_blind_spot_module/src/manager.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9544      +/-   ##
==========================================
- Coverage   29.49%   29.48%   -0.02%     
==========================================
  Files        1444     1452       +8     
  Lines      108530   108583      +53     
  Branches    41406    41409       +3     
==========================================
  Hits        32012    32012              
- Misses      73397    73450      +53     
  Partials     3121     3121              
Flag Coverage Δ *Carryforward flag
differential 16.91% <0.00%> (?)
total 29.53% <ø> (+0.04%) ⬆️ Carriedforward from 8d9ca0e

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

@soblin soblin merged commit 8185a5b into autowarefoundation:main Dec 4, 2024
43 of 44 checks passed
@soblin soblin deleted the test/blind-spot branch December 4, 2024 05:49
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) tag: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