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(behavior_path_planner): remove toPolygon functions #3283

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

purewater0901
Copy link
Contributor

@purewater0901 purewater0901 commented Apr 5, 2023

Description

Remove toPolygon functions from utils and avoidance module in the behavior path planner.

Tests performed

Not applicable.

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>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Apr 5, 2023
const double & length_m = object_shape.dimensions.x / 2;
const double & width_m = object_shape.dimensions.y / 2;
*object_polygon =
convertBoundingBoxObjectToGeometryPolygon(object_pose, length_m, length_m, width_m);
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you already remove this kind of detailed polygon functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@takayuki5168 Thank you! I forgot to remove them.

Copy link
Contributor Author

@purewater0901 purewater0901 Apr 5, 2023

Choose a reason for hiding this comment

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

@takayuki5168
I removed most of them with this commit.

However, one function is still used in other place, so I'll leave it to the code and let me add it to the tier4_autoware_utils in another PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay

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

codecov bot commented Apr 5, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (6924dda) 12.42% compared to head (001672f) 12.42%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3283   +/-   ##
=======================================
  Coverage   12.42%   12.42%           
=======================================
  Files        1365     1365           
  Lines       95296    95275   -21     
  Branches    27190    27185    -5     
=======================================
  Hits        11837    11837           
+ Misses      70943    70921   -22     
- Partials    12516    12517    +1     
Flag Coverage Δ *Carryforward flag
differential 5.58% <0.00%> (?)
total 12.43% <ø> (+0.01%) ⬆️ Carriedforward from 6924dda

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

Impacted Files Coverage Δ
...lanner/include/behavior_path_planner/utilities.hpp 83.33% <ø> (ø)
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% <0.00%> (ø)
...ane_change/external_request_lane_change_module.cpp 0.00% <0.00%> (ø)
...rc/scene_module/lane_change/lane_change_module.cpp 0.00% <0.00%> (ø)
.../behavior_path_planner/src/util/avoidance/util.cpp 1.13% <0.00%> (ø)
...ehavior_path_planner/src/util/lane_change/util.cpp 0.00% <0.00%> (ø)
planning/behavior_path_planner/src/utilities.cpp 8.21% <0.00%> (+0.39%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@purewater0901 purewater0901 merged commit cc85cf0 into main Apr 5, 2023
@purewater0901 purewater0901 deleted the refactor/remove-toPolygon-functions branch April 5, 2023 14:34
ktro2828 pushed a commit to ktro2828/autoware.universe that referenced this pull request Apr 7, 2023
…foundation#3283)

* refactor(behavior_path_planner): remove toPolygon functions

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