-
Notifications
You must be signed in to change notification settings - Fork 675
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(yabloc_particle_filter): apply static analysis #7519
refactor(yabloc_particle_filter): apply static analysis #7519
Conversation
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
1a210ff
to
bb74bf4
Compare
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
I removed the unused methods/functions and files also. |
Thanks for the comprehensive fix! 🙏 I will review it soon. |
...zation/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp
Outdated
Show resolved
Hide resolved
localization/yabloc/yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp
Outdated
Show resolved
Hide resolved
…r/camera_particle_corrector_core.cpp change to use get_mean_pose directly Co-authored-by: Kento Yabuuchi <moc.liamg.8y8@gmail.com> Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
2685165
to
31e2994
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7519 +/- ##
==========================================
+ Coverage 14.61% 14.70% +0.08%
==========================================
Files 1995 2001 +6
Lines 139077 139166 +89
Branches 43429 43539 +110
==========================================
+ Hits 20333 20463 +130
- Misses 96134 96223 +89
+ Partials 22610 22480 -130
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I have confirmed that YabLoc works as before in logging_simualtor
…dation#7519) * removed unused Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * style(pre-commit): autofix * removed unused Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * Update localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp change to use get_mean_pose directly Co-authored-by: Kento Yabuuchi <moc.liamg.8y8@gmail.com> Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * apply suggestion Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> --------- Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kento Yabuuchi <moc.liamg.8y8@gmail.com> Signed-off-by: Simon Eisenmann <simon.eisenmann@driveblocks.ai>
* removed unused Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * style(pre-commit): autofix * removed unused Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * Update localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp change to use get_mean_pose directly Co-authored-by: Kento Yabuuchi <moc.liamg.8y8@gmail.com> Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * apply suggestion Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> --------- Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kento Yabuuchi <moc.liamg.8y8@gmail.com>
Description
This PR applies some suggestions from the linter to
localization/yabloc/yabloc_particle_filter
.Checked with clang-tidy and cppcheck.
Fixed:
_
to private variablestd::accumulate
instead of a raw loopnot Fixed:
boost::variant
autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp
Lines 28 to 31 in 9047cdd
direct_cost_map
Tests performed
Checked with clang-tidy and cppcheck (v2.14.1)
check_linter.sh
Before fixing the code:
Check with check_linter.sh
Check with cppcheck
After this PR:
Check with check_linter.sh
Check with cppcheck
Effects on system behavior
Not applicable.
Interface changes
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.