-
Notifications
You must be signed in to change notification settings - Fork 682
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
feat(map_loader): make some functions static #2014
feat(map_loader): make some functions static #2014
Conversation
@TakaHoribe Could you review this PR. |
@takayuki5168 How about having two functions with different arguments? (It seems a little odd to me that all methods are static.)
|
Codecov ReportBase: 10.38% // Head: 10.38% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2014 +/- ##
==========================================
- Coverage 10.38% 10.38% -0.01%
==========================================
Files 1163 1163
Lines 82840 82849 +9
Branches 19287 19287
==========================================
Hits 8604 8604
- Misses 64968 64977 +9
Partials 9268 9268
*This pull request uses carry forward flags. Click here to find out more.
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 at Codecov. |
@TakaHoribe @kenji-miyake What do you think.
I made the functions only required in the static path planner static. (If I do my best, I can split the static and non-static part more specifically) |
I also think it's redundant in this case. But since it seems class-independent, I feel it might be better to make these functions normal functions (like libraries), not class functions. |
Not a big reason, but I just wanted to apply the minimum changes to map_loader and there are only two small functions which I feel exaggerated to make them a library. |
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
8770e91
to
aa384ab
Compare
* feat(map_loader): make some functions static Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * make publisher alive after constructor Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
* feat(map_loader): make some functions static Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * make publisher alive after constructor Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Signed-off-by: Takayuki Murooka takayuki5168@gmail.com
Description
In order to make a static path planner with optimization as follows,
#1942
I made some functions of map_loader required in the static planner static.
The usage in the static planner is like this
autoware.universe/planning/static_centerline_optimizer/src/functions.cpp
Lines 78 to 87 in 7296a42
Related links
Tests performed
Notes for reviewers
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.
After all checkboxes are checked, anyone who has write access can merge the PR.