-
Notifications
You must be signed in to change notification settings - Fork 658
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(ekf_localizer): add diagnostics #4914
feat(ekf_localizer): add diagnostics #4914
Conversation
Signed-off-by: yamato-ando <Yamato ANDO>
Signed-off-by: yamato-ando <Yamato ANDO>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4914 +/- ##
==========================================
+ Coverage 15.92% 15.96% +0.03%
==========================================
Files 1579 1581 +2
Lines 108886 109155 +269
Branches 33584 33753 +169
==========================================
+ Hits 17344 17426 +82
- Misses 72944 73014 +70
- Partials 18598 18715 +117
*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.
Big commit.
Could you separate the commit fc1dd2f to feature changes, tests and docs(ex. README)?
Thank you for creating the pull request. I have confirmed that the diagnostics works well in my environment too. 👍 |
I am not familiar with C++, so I simply have a question. autoware.universe/localization/ekf_localizer/src/diagnostics.cpp Lines 21 to 38 in 67ae6f9
autoware.universe/localization/ekf_localizer/src/ekf_localizer.cpp Lines 106 to 107 in 67ae6f9
When the EKFLocalizer instance is destroyed (when the destructor is called), what happens if the And it seems that member variables in C++ classes are destroyed in the reverse order of their declaration. https://stackoverflow.com/questions/2254263/order-of-member-constructor-and-destructor-calls In autoware.universe/localization/ekf_localizer/include/ekf_localizer/ekf_localizer.hpp Lines 111 to 184 in 67ae6f9
Is this a needless concern? |
@SakodaShintaro |
If my understanding is incorrect, please let me know. |
Signed-off-by: yamato-ando <Yamato ANDO>
@YamatoAndo I would like to check the diagnostics working, but how did you get the image shown at the beginning of the Description? |
@SakodaShintaro I used following commnad to get that image. |
Since there is a possibility of making significant changes, I will temporarily convert to draft. |
Signed-off-by: yamato-ando <Yamato ANDO>
@KYabuuchi @SakodaShintaro I have reopened the PR. Please review again. |
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.
Looks Good To Me
Co-authored-by: Kento Yabuuchi <[email protected]>
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.
👍
@Motsu-san Could you please approve this pr? |
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
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 approve this pull-request even without organizing the commits due to the circumstances of the squash merge rule. I hope that the pull-request will become smaller in size, which is a prerequisite for squash merge in the future.
@Motsu-san Thank you! |
* feat(ekf_localizer): add diagnostics Signed-off-by: yamato-ando <Yamato ANDO> * update readme Signed-off-by: yamato-ando <Yamato ANDO> * style(pre-commit): autofix * update diag message Signed-off-by: yamato-ando <Yamato ANDO> * refactor Signed-off-by: yamato-ando <Yamato ANDO> * style(pre-commit): autofix * add OK message Signed-off-by: yamato-ando <Yamato ANDO> * fix typo Signed-off-by: yamato-ando <Yamato ANDO> * fix typo Signed-off-by: yamato-ando <Yamato ANDO> * Update localization/ekf_localizer/src/diagnostics.cpp Co-authored-by: Kento Yabuuchi <[email protected]> --------- Signed-off-by: yamato-ando <Yamato ANDO> Co-authored-by: yamato-ando <Yamato ANDO> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kento Yabuuchi <[email protected]>
Description
Add ekf_localizer's diagnostics.
Please refer to the readme for the conditions that trigger WARN/ERROR states.
Related links
autowarefoundation/autoware_launch#554
Tests performed
Test with autowarefoundation/autoware_launch#554
I have confirmed the following
Notes for reviewers
After merging this pr, I will modify system_error_monitor.param.yaml and diagnostic_aggregator/localization.param.yaml to notify ekf_localizer's state to the autoware system.
Interface changes
/diagnostics
pose_no_update_count_threshold_warn
pose_no_update_count_threshold_error
twist_no_update_count_threshold_warn
twist_no_update_count_threshold_error
Effects on system behavior
N/A
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.