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(control_validator): resolve the bug causing inappropriate diagnostic messages. #4846

Merged

Conversation

keiota
Copy link
Contributor

@keiota keiota commented Sep 1, 2023

Description

In this PR, I resolved a bug showing inappropriate messages "planning trajectory is too far from ego!!", that occur during deviation check between reference trajectory and predicted trajectory.

The cause of this bug was that empty coordinates were added to the trajectory and the wrong length array was provided.

Before this PR

During Psim, after decided a rooting we can constantly see a warning message "planning trajectory is too far from ego!!" even though the trajectory looks no problem.
[component_container-34] [WARN] [1693455073.217942402] [control.control_validator]: planning trajectory is too far from ego!!

After this PR

I have not tested it yet, but this message no longer appears incorrectly.

Tests performed

I haven't test with unit test but checked on my computer that message is not shown.

Effects on system behavior

Not applicable.

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.

@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Sep 1, 2023
@kyoichi-sugahara kyoichi-sugahara added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 1, 2023
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (1628175) 15.11% compared to head (9712a27) 15.12%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4846   +/-   ##
=======================================
  Coverage   15.11%   15.12%           
=======================================
  Files        1574     1573    -1     
  Lines      108435   108368   -67     
  Branches    33316    33289   -27     
=======================================
- Hits        16395    16393    -2     
+ Misses      74163    74113   -50     
+ Partials    17877    17862   -15     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 15.12% <ø> (+<0.01%) ⬆️ Carriedforward from a3245f2

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

Files Changed Coverage Δ
control/control_validator/src/utils.cpp 0.00% <0.00%> (ø)

... and 12 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kyoichi-sugahara kyoichi-sugahara marked this pull request as ready for review September 2, 2023 02:23
@kyoichi-sugahara
Copy link
Contributor

@keiota
Thanks to this change I confirmed error is fixed and control output is evaludated propely thanks!
Screenshot from 2023-09-03 23-15-43
Screenshot from 2023-09-03 23-14-09

Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

LGTM!
Thank you so much for your contribution!

@kyoichi-sugahara kyoichi-sugahara merged commit 3a370d4 into autowarefoundation:main Sep 3, 2023
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Sep 12, 2023
…tic messages. (autowarefoundation#4846)

* fix(control_validator): fix reverseTrajectoryPoints to get correct trajectory array

Signed-off-by: keiota <k3robot@gmail.com>

* fix(control_validator): fix line breaks

Signed-off-by: keiota <k3robot@gmail.com>

* style(pre-commit): autofix

* Update control/control_validator/src/utils.cpp

---------

Signed-off-by: keiota <k3robot@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kyoichi Sugahara <kyoichi.sugahara@tier4.jp>
takayuki5168 added a commit to tier4/autoware.universe that referenced this pull request Sep 12, 2023
…message

fix(control_validator): resolve the bug causing inappropriate diagnostic messages. (autowarefoundation#4846)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (auto-assigned) 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