-
Notifications
You must be signed in to change notification settings - Fork 683
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!: move diagnostics_module from localization_util to unverse_utils #9714
feat!: move diagnostics_module from localization_util to unverse_utils #9714
Conversation
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
…le/move_to_universe_utils
template <> | ||
void DiagnosticsModule::add_key_value(const std::string & key, const bool & value); |
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.
Please remove these declarations because they do not make sense unless you declare them as "extern template" and define them in cpp files as specializations.
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.
How about this? c981570
@@ -22,7 +22,7 @@ | |||
#include <string> | |||
#include <vector> | |||
|
|||
namespace autoware::localization_util | |||
namespace autoware::universe_utils | |||
{ | |||
class DiagnosticsModule |
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.
IMO DiagnosticInterface is better
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.
Fixed: b7a90d8
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Thank you to all the reviewers. I've addressed all the comments. |
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.
I checked the following test items:
-
planning_simulator
with sample_map -
logging_simulator
with sample_rosbag -
logging_simulator
with awsim_gt_data(TIER IV INTERNAL) -
e2e_simulator
with AWSIM v1.3.1
I also verified that the /diagnostics
topic had the appropriate information.
LGTM, but please get soblin-san's approval before merging.
Sorry, pre-commit.ci is failing. |
Signed-off-by: kminoda <koji.minoda@tier4.jp>
@SakodaShintaro Thanks, fixed the precommit. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9714 +/- ##
==========================================
+ Coverage 29.72% 29.75% +0.03%
==========================================
Files 1451 1453 +2
Lines 108839 108888 +49
Branches 42741 42761 +20
==========================================
+ Hits 32348 32397 +49
+ Misses 73313 73312 -1
- Partials 3178 3179 +1
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
autowarefoundation#9714) * feat!: move diagnostics_module from localization_util to unverse_utils Signed-off-by: kminoda <koji.minoda@tier4.jp> * remove diagnostics module from localization_util Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * minor fix in pose_initializer Signed-off-by: kminoda <koji.minoda@tier4.jp> * add test Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * remove unnecessary declaration Signed-off-by: kminoda <koji.minoda@tier4.jp> * module -> interface Signed-off-by: kminoda <koji.minoda@tier4.jp> * remove unnecessary equal expression Signed-off-by: kminoda <koji.minoda@tier4.jp> * revert the remove of template function Signed-off-by: kminoda <koji.minoda@tier4.jp> * style(pre-commit): autofix * use overload instead Signed-off-by: kminoda <koji.minoda@tier4.jp> * include what you use -- test_diagnostics_interface.cpp Signed-off-by: kminoda <koji.minoda@tier4.jp> --------- Signed-off-by: kminoda <koji.minoda@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
DiagnosticsModule
inlocalization_util
is useful. Thus I would like to move it from the package touniverse_utils
Related links
None
How was this PR tested?
Added unit test for the module
Notes for reviewers
None.
Interface changes
Package include path would change.
Effects on system behavior
None.