Skip to content

fix(autoware_ekf_localizer): publish diagnostics when ekf_dt is too slow #397

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

RyuYamamoto
Copy link
Contributor

Description

  • Output warning diagnostics when ekf period is too slow.

This PR will be merged after the following PR has been merged.
#374

image

Related links

#374

Parent Issue:

  • Link

How was this PR tested?

Running Autoware and confirmed that ekf_period has been added to the diagnostics of ekf_localizer.

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

…ng_message and throttle

Signed-off-by: RyuYamamoto <ryu.yamamoto@tier4.jp>
Signed-off-by: RyuYamamoto <ryu.yamamoto@tier4.jp>
Signed-off-by: RyuYamamoto <ryu.yamamoto@tier4.jp>
Signed-off-by: RyuYamamoto <ryu.yamamoto@tier4.jp>
Copy link

github-actions bot commented Apr 16, 2025

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@RyuYamamoto RyuYamamoto changed the title Feat/add diagnostics fix(autoware_ekf_localizer): publish diagnostics when ekf_dt is too slow Apr 16, 2025
@RyuYamamoto RyuYamamoto added the component:localization Vehicle's position determination in its environment. (auto-assigned) label Apr 23, 2025
@RyuYamamoto RyuYamamoto marked this pull request as ready for review April 23, 2025 15:47
Copy link
Member

@youtalk youtalk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might think like a minor effort to reduce dynamic memory usage, but let’s make sure to declare and use constexpr strings (char * or string_view).
This is second time to mention that. #374 (review)

@youtalk
Copy link
Member

youtalk commented May 12, 2025

@RyuYamamoto Could you respond this?

@RyuYamamoto
Copy link
Contributor Author

@youtalk I apologize for the late reply.

I'd like to confirm one point regarding your comment.
When you mentioned that it might be better to use constexpr, were you referring to the parts in the check_ekf_period function where string values are being assigned, for example?

https://github.com/RyuYamamoto/autoware_core/blob/feat/add_diagnostics/localization/autoware_ekf_localizer/src/diagnostics.cpp#L74
https://github.com/RyuYamamoto/autoware_core/blob/feat/add_diagnostics/localization/autoware_ekf_localizer/src/diagnostics.cpp#L77

@YamatoAndo
Copy link
Contributor

@RyuYamamoto Please update the readme the-conditions-that-result-in-a-warn-state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:localization Vehicle's position determination in its environment. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants