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): skip update of z/roll/pitch when mahalanobis gate enabled #3915

Conversation

kminoda
Copy link
Contributor

@kminoda kminoda commented Jun 7, 2023

Description

Current ekf localizer updates z/roll/pitch regardless of the mahalanobis gate which is performed on x & y. This induces an error when ekf receives odd (x,y,z). In this case, it skips x&y update based on this observation but unintentionally updates z.

Related links

x

Tests performed

Integration test using ros_testing

I have added two new test scripts in python.

Test with rosbag

Given some rosbags, I confirmed that

  • z error is within several cm
  • roll/pitch is within 0.1 deg
    image
    image

Notes for reviewers

x

Interface changes

None

Effects on system behavior

  • z/roll/pitch will be correctly ignored when receiving odd x & y values.
  • z/roll/pitch estimation will slightly change due to the time-delay smoothing

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.

… enabled

Signed-off-by: kminoda <koji.minoda@tier4.jp>
@github-actions github-actions bot added the component:localization Vehicle's position determination in its environment. (auto-assigned) label Jun 7, 2023
@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.02 🎉

Comparison is base (35bc65a) 14.05% compared to head (2018931) 14.08%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3915      +/-   ##
==========================================
+ Coverage   14.05%   14.08%   +0.02%     
==========================================
  Files        1456     1449       -7     
  Lines      102521   102311     -210     
  Branches    27295    27294       -1     
==========================================
+ Hits        14411    14412       +1     
+ Misses      72323    72115     -208     
+ Partials    15787    15784       -3     
Flag Coverage Δ *Carryforward flag
differential 22.91% <0.00%> (?)
total 14.08% <ø> (+0.03%) ⬆️ Carriedforward from 742a57a

*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%> (ø)

... and 11 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

kminoda and others added 11 commits June 12, 2023 14:24
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>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
@kminoda kminoda marked this pull request as ready for review June 12, 2023 07:11
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Copy link
Contributor

@YamatoAndo YamatoAndo left a comment

Choose a reason for hiding this comment

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

LGTM

@kminoda kminoda merged commit 751f128 into autowarefoundation:main Jun 14, 2023
@kminoda kminoda deleted the fix/ekf_localizer/apply_mahalanobis_gate_to_z_roll_pitch branch August 10, 2023 08:50
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.

2 participants