feat(ekf_localizer): adjustable publishing of diagnostics#824
Closed
Motsu-san wants to merge 6 commits intoautowarefoundation:mainfrom
Closed
feat(ekf_localizer): adjustable publishing of diagnostics#824Motsu-san wants to merge 6 commits intoautowarefoundation:mainfrom
Motsu-san wants to merge 6 commits intoautowarefoundation:mainfrom
Conversation
|
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: Motsu-san <83898149+Motsu-san@users.noreply.github.com>
Signed-off-by: Motsu-san <83898149+Motsu-san@users.noreply.github.com>
Signed-off-by: Motsu-san <83898149+Motsu-san@users.noreply.github.com>
Signed-off-by: Motsu-san <83898149+Motsu-san@users.noreply.github.com>
Signed-off-by: Motsu-san <83898149+Motsu-san@users.noreply.github.com>
57c74a0 to
98c329d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #824 +/- ##
==========================================
+ Coverage 50.66% 50.69% +0.02%
==========================================
Files 348 348
Lines 22474 22493 +19
Branches 10032 10043 +11
==========================================
+ Hits 11386 11402 +16
Misses 9993 9993
- Partials 1095 1098 +3
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
This pull-request was merged to #826. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds functionality to make the diagnostics publishing frequency configurable in the
ekf_localizerpackage and implements comprehensive tests to verify the behavior.1. Add Configurable Diagnostics Publishing Frequency (4424425)
Feature Description
diagnostics.diagnostics_publish_frequencyparameter (default: 0.0 Hz = publish at every timer callback)2. Add Tests for should_publish_diagnostics Function (780daa2)
Test Description
Added comprehensive test suite to verify the behavior of the
should_publish_diagnostics()function.Test Cases
should_publish_diagnostics_period_zero: Verifies that it always returnstruewhendiagnostics_publish_periodis 0.0should_publish_diagnostics_period_negative: Verifies that it always returnstruewhendiagnostics_publish_periodis negativeshould_publish_diagnostics_period_less_than_ekf_dt: Verifies that it always returnstruewhendiagnostics_publish_periodis less thanekf_dtshould_publish_diagnostics_with_counter: Verifies counter logic behaviorfalsewhen counter is below thresholdtrueand resets counter when counter reaches thresholdtrueand leaves remainder when counter exceeds thresholdBenefits
Related links
The following pull-request must be merged simultaneously.
autowarefoundation/autoware_launch#1743
How was this PR tested?
colcon test --packages-select autoware_ekf_localizerand confirm the resultcolcon test-result --all --verbose --test-result-base build/autoware_ekf_localizer(Please verify using a script like this).
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.