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(avoidance): unexpected stop decision in avoidance module #6320

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Feb 5, 2024

Description

ISSUE-1: There is an inconsistency between avoidable check and path validation.

In following case, the module judge the object is avoidable but the output path violates jerk limitation. The cause is that the module validates path safety with same parameter for path generation. In order to fix this issue, I added small margin to confortable check condition.

  bool isComfortable(const AvoidLineArray & shift_lines) const
  {
    const auto JERK_BUFFER = 0.1;  // [m/sss]
    return std::all_of(shift_lines.begin(), shift_lines.end(), [&](const auto & line) {
      return PathShifter::calcJerkFromLatLonDistance(
               line.getRelativeLength(), line.getRelativeLongitudinal(), getAvoidanceEgoSpeed()) <
             getLateralMaxJerkLimit() + JERK_BUFFER;
    });
  }

image

ISSUE-2: Insert stop point in avoidance module even when it judge the object is NOT avoidable.

Basically, avoidance module inserts stop point only for objects it can avoid. But sometimes the module inserts stop point unexpectedly for unavoidable objects as follow. This causes stuck.

image

Tests performed

  • Psim
simplescreenrecorder-2024-02-06_09.36.23.mp4

Effects on system behavior

Fix bug.

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.

Sorry, something went wrong.

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Feb 5, 2024
@satoshi-ota satoshi-ota marked this pull request as ready for review February 6, 2024 00:38
@kyoichi-sugahara
Copy link
Contributor

problem could be reproduced
image
Screenshot from 2024-02-06 21-09-13

@kyoichi-sugahara
Copy link
Contributor

confirmed this problem is solved 👍
image

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!

@shmpwk shmpwk added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 6, 2024
@shmpwk shmpwk enabled auto-merge (squash) February 6, 2024 13:29
@shmpwk shmpwk merged commit 47da0e7 into autowarefoundation:main Feb 6, 2024
40 of 42 checks passed
@satoshi-ota satoshi-ota deleted the fix/stuck-avoidance branch February 7, 2024 00:10
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 7, 2024
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 8, 2024
anhnv3991 pushed a commit to anhnv3991/autoware.universe that referenced this pull request Feb 13, 2024
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 23, 2024
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 23, 2024
StepTurtle pushed a commit to StepTurtle/autoware.universe that referenced this pull request Feb 28, 2024
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Mar 8, 2024
TomohitoAndo pushed a commit to tier4/autoware.universe that referenced this pull request Apr 1, 2024
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Apr 8, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (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.

None yet

4 participants