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): correct the initialization of accumulated_delay_times to obtain accurate computation of delay_time #5821

Conversation

TaikiYamada4
Copy link
Contributor

Description

In the recent PR of ekf localizer, a new variable accumulated_delay_times_ have been introduced so that the calculation of delay_step in updateMeasurementPose/Twist() will not be distorted when the timer callback has unintended time periods.

However, the initialization of thefirst element of accumulated_delay_times_ was ekf_dt seconds large while it should zero, which leads to a computation error of delay_step that will be one step earlier.

This PR should fix that.

Tests performed

Tested and worked well in the rosbag replay simulation tutorial.
Also, tested with TIER IV internal rosbags too.

Effects on system behavior

A few millimeters of localization error proportional to the twist will be relieved.

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.

  • There are no open discussions or they are tracked via tickets.

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

…ep is computed accurately.

Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
@TaikiYamada4 TaikiYamada4 added the component:localization Vehicle's position determination in its environment. (auto-assigned) label Dec 8, 2023
@TaikiYamada4 TaikiYamada4 self-assigned this Dec 8, 2023
@TaikiYamada4 TaikiYamada4 changed the title fix(ekf_localizer): Correct the initialization of accumulated_delay_times to obtain accurate computation of delay_time fix(ekf_localizer): correct the initialization of accumulated_delay_times to obtain accurate computation of delay_time Dec 8, 2023
@TaikiYamada4 TaikiYamada4 enabled auto-merge (squash) December 8, 2023 09:33
@SakodaShintaro SakodaShintaro added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 8, 2023
@TaikiYamada4 TaikiYamada4 merged commit 055bc9d into autowarefoundation:main Dec 8, 2023
27 checks passed
danielsanchezaran pushed a commit to tier4/autoware.universe that referenced this pull request Dec 15, 2023
…imes to obtain accurate computation of delay_time (autowarefoundation#5821)

Correct accumulated_delay_times in ekf_localizer so that the delay_step is computed accurately.

Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Dec 19, 2023
…imes to obtain accurate computation of delay_time (autowarefoundation#5821)

Correct accumulated_delay_times in ekf_localizer so that the delay_step is computed accurately.

Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
Signed-off-by: karishma <karishma@interpl.ai>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Dec 19, 2023
…imes to obtain accurate computation of delay_time (autowarefoundation#5821)

Correct accumulated_delay_times in ekf_localizer so that the delay_step is computed accurately.

Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
Signed-off-by: karishma <karishma@interpl.ai>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 26, 2024
…imes to obtain accurate computation of delay_time (autowarefoundation#5821)

Correct accumulated_delay_times in ekf_localizer so that the delay_step is computed accurately.

Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…imes to obtain accurate computation of delay_time (autowarefoundation#5821)

Correct accumulated_delay_times in ekf_localizer so that the delay_step is computed accurately.

Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…imes to obtain accurate computation of delay_time (autowarefoundation#5821)

Correct accumulated_delay_times in ekf_localizer so that the delay_step is computed accurately.

Signed-off-by: TaikiYamada4 <taiki.yamada@tier4.jp>
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) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants