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(lane_change): lane change module changes output path intentionally without approval #3051

Merged

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Mar 10, 2023

Description

Bug: Lane change module change it's output path without approval, and it is an unexpected behavior.

simplescreenrecorder-2023-03-11_13.32.34.mp4

In this PR, it set waitApproval() in onEntry() in order to block plan() execution at first time in following run() function.

virtual BehaviorModuleOutput run()
{
current_state_ = ModuleStatus::RUNNING;
updateData();
if (!isWaitingApproval()) {
return plan();
}
// module is waiting approval. Check it.
if (isActivated()) {
RCLCPP_DEBUG(logger_, "Was waiting approval, and now approved. Do plan().");
return plan();
} else {
RCLCPP_DEBUG(logger_, "keep waiting approval... Do planCandidate().");
return planWaitingApproval();
}
}

Test perform

1.set option COMPILE_WITH_OLD_ARCHITECTURE to FALSE

set(COMPILE_WITH_OLD_ARCHITECTURE TRUE)

2.disable rtc auto mode

/**:
  ros__parameters:
    module_list:
      - "blind_spot"
      - "crosswalk"
      - "detection_area"
      - "intersection"
      - "no_stopping_area"
      - "traffic_light"
      # - "ext_request_lane_change_left"
      # - "ext_request_lane_change_right"
      - "lane_change_left"
      - "lane_change_right"
      - "avoidance_left"
      - "avoidance_right"
      - "pull_over"
      - "pull_out"

    default_enable_list:
      - "blind_spot"
      - "crosswalk"
      - "detection_area"
      - "intersection"
      - "no_stopping_area"
      - "traffic_light"
      # - "lane_change_left"
      # - "lane_change_right"
      - "avoidance_left"
      - "avoidance_right"
      - "pull_over"
      - "pull_out"

rviz_screenshot_2023_03_11-13_30_10

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.

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 Mar 10, 2023
@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (d8c826c) 11.95% compared to head (9c19b9f) 11.95%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3051   +/-   ##
=======================================
  Coverage   11.95%   11.95%           
=======================================
  Files        1324     1324           
  Lines       92113    92113           
  Branches    24625    24625           
=======================================
  Hits        11012    11012           
  Misses      69686    69686           
  Partials    11415    11415           
Flag Coverage Δ *Carryforward flag
differential 5.56% <ø> (?)
total 11.95% <ø> (ø) Carriedforward from d8c826c

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

Impacted Files Coverage Δ
...rc/scene_module/lane_change/lane_change_module.cpp 0.00% <ø> (ø)

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

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

@satoshi-ota satoshi-ota marked this pull request as ready for review March 11, 2023 04:36
@satoshi-ota satoshi-ota changed the title fix(lane_change): wait approval in onEntry() fix(lane_change): lane change module change output path intentionally without approval Mar 11, 2023
@satoshi-ota satoshi-ota changed the title fix(lane_change): lane change module change output path intentionally without approval fix(lane_change): lane change module change outputs path intentionally without approval Mar 11, 2023
@satoshi-ota satoshi-ota changed the title fix(lane_change): lane change module change outputs path intentionally without approval fix(lane_change): lane change module changes output path intentionally without approval Mar 11, 2023
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 left a comment

Choose a reason for hiding this comment

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

LGTM!

@satoshi-ota satoshi-ota merged commit e97ff9d into autowarefoundation:main Mar 13, 2023
@satoshi-ota satoshi-ota deleted the fix/wait-approval-on-entry branch March 13, 2023 04:01
xianglunkai pushed a commit to xianglunkai/autoware.universe that referenced this pull request Apr 3, 2023
Signed-off-by: GitHub <noreply@github.com>

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com>
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants