Skip to content
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

fix(ekf_localizer): update the state and publish the estimated pose only after initialization #1607

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

IshitaTakeshi
Copy link
Contributor

@IshitaTakeshi IshitaTakeshi commented Aug 17, 2022

Description

ekf_localizer has a bug that it publishes the default pose (identity) and accepts poses and twists for state update even before state initialization.
To resolve this error, I added a flag that manages the initialization state and made them update the state and publish messages only after the state initialization.

Related links

#1421

Tests performed

The test really needs to be added. But a lot of refactoring work is necessary before writing tests.

Notes for reviewers

  • This behavior change can affect other Autoware modules. Please carefully read the code and validate the behavior
  • I added the branch to the original repository so that other people can commit to this

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@YamatoAndo YamatoAndo added the component:localization Vehicle's position determination in its environment. (auto-assigned) label Aug 17, 2022
@codecov
Copy link

codecov bot commented Aug 17, 2022

Codecov Report

Merging #1607 (e26f0ee) into main (a9acb3f) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1607      +/-   ##
==========================================
- Coverage   10.62%   10.60%   -0.03%     
==========================================
  Files        1113     1113              
  Lines       78585    78739     +154     
  Branches    18402    18402              
==========================================
  Hits         8349     8349              
- Misses      61505    61659     +154     
  Partials     8731     8731              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.60% <0.00%> (ø) Carriedforward from a9acb3f

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
..._localizer/include/ekf_localizer/ekf_localizer.hpp 0.00% <ø> (ø)
localization/ekf_localizer/src/ekf_localizer.cpp 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mitsudome-r
Copy link
Member

@IshitaTakeshi Are there any updates on this? What is still needed before making this ready for review?

@IshitaTakeshi IshitaTakeshi marked this pull request as ready for review August 24, 2022 06:05
@IshitaTakeshi
Copy link
Contributor Author

@mitsudome-r No, so I turned this into ready

@kminoda
Copy link
Contributor

kminoda commented Aug 24, 2022

LGTM from the localization module perspective, but I cannot tell whether other modules (e.g. planning, perception, control) that use the localization results will be OK as well...
Would you mind checking this PR? @yukkysaito

@kminoda kminoda requested a review from yukkysaito August 24, 2022 09:12
Copy link
Contributor

@yukkysaito yukkysaito left a comment

Choose a reason for hiding this comment

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

It's OK 👍 LGTM

@IshitaTakeshi IshitaTakeshi enabled auto-merge (squash) August 25, 2022 03:07
@kminoda
Copy link
Contributor

kminoda commented Aug 25, 2022

@IshitaTakeshi It seems that the semantic-pull-request failed since the commit message is not the same as the PR title.
Would you fix this?

@IshitaTakeshi IshitaTakeshi disabled auto-merge August 25, 2022 05:04
@IshitaTakeshi IshitaTakeshi enabled auto-merge (squash) August 25, 2022 05:06
@IshitaTakeshi IshitaTakeshi disabled auto-merge August 25, 2022 05:06
@IshitaTakeshi IshitaTakeshi enabled auto-merge (squash) August 25, 2022 05:09
@IshitaTakeshi IshitaTakeshi disabled auto-merge August 25, 2022 05:13
@IshitaTakeshi IshitaTakeshi enabled auto-merge (squash) August 25, 2022 05:15
@IshitaTakeshi IshitaTakeshi disabled auto-merge August 25, 2022 05:17
@IshitaTakeshi IshitaTakeshi enabled auto-merge (squash) August 25, 2022 05:17
@IshitaTakeshi
Copy link
Contributor Author

I think that both the commit message and the PR title are valid. Why does it fail?

@taikitanaka3
Copy link
Contributor

@IshitaTakeshi
This PR contains only one commit Update the state and publish pose only after initialization
you need to set commit message fix(ekf_localizer): update the state and publish the estimated pose only after initialization to the first commit or add more commit to this PR.

I suggest to set first commit message to fix(ekf_localizer): update the state and publish the estimated pose only after initialization

@IshitaTakeshi IshitaTakeshi force-pushed the fix/ekf-pose-initialization branch from 2e377f9 to e26f0ee Compare August 25, 2022 05:31
@IshitaTakeshi
Copy link
Contributor Author

Changed the commit message

@IshitaTakeshi IshitaTakeshi merged commit 6fa5c3f into main Aug 25, 2022
@IshitaTakeshi IshitaTakeshi deleted the fix/ekf-pose-initialization branch August 25, 2022 05:52
kosuke55 pushed a commit that referenced this pull request Nov 27, 2024
…j-bug

fix(autoware_image_projection_based_fusion): pointpainting bug fix for point projection (#9150)
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.

6 participants