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(behavior_path_planner): fix turn singal output in a avoidance sequence #1511

Merged
merged 2 commits into from
Aug 3, 2022

Conversation

tkimura4
Copy link
Contributor

@tkimura4 tkimura4 commented Aug 3, 2022

Description

Fix bug of the turn signal output in a avoidance sequence in behavior_path_planner.

  • With the current implementation, the turn signal turned on only when the shift point of the avoidance was within search_distance(default: 30m). But it is unnecessary because the timing of the turn signal is already contolled properly by the parameters turn_light_on_threshold_time and turn_light_on_threshold_dis_long. So, I deleted search_distance parameter.

  • There are the cases that the turn signal did not turn on in a avoidance sequence by overwriting the intersection with the straight lane-attribute. So, when a lane attribute is straight, set distance field to std::numeric_limits::max() in getIntersectionTurnSignal().

Related links

Tests performed

I confirmd that there is no problem with the output of the turn signal during avoidance.

Before:
https://user-images.githubusercontent.com/59680180/182604787-83d91ed6-52e9-4012-9752-fb203fed3bcc.mp4
After:
https://user-images.githubusercontent.com/59680180/182604818-fa9982b7-5744-4a94-af85-917dc9878c2e.mp4

The turn signal output in lane_change sequence seems to be also OK.

2022-08-03-21-11-25.mp4

Notes for reviewers

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.

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
@tkimura4 tkimura4 changed the title Fix/avoidance turn signal fix(behavior_path_planner): fix turn singal output in avoidance Aug 3, 2022
@tkimura4 tkimura4 changed the title fix(behavior_path_planner): fix turn singal output in avoidance fix(behavior_path_planner): fix turn singal output in a avoidance sequence Aug 3, 2022
@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Merging #1511 (aa96155) into main (01a83cb) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1511      +/-   ##
==========================================
- Coverage   10.38%   10.32%   -0.07%     
==========================================
  Files        1136     1136              
  Lines       79465    79895     +430     
  Branches    18483    18772     +289     
==========================================
- Hits         8250     8246       -4     
- Misses      63013    63430     +417     
- Partials     8202     8219      +17     
Flag Coverage Δ *Carryforward flag
differential 0.79% <0.00%> (?)
total 10.35% <0.00%> (-0.01%) ⬇️ Carriedforward from 3f25602

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

Impacted Files Coverage Δ
...lanner/scene_module/avoidance/avoidance_module.hpp 0.00% <0.00%> (ø)
...r/scene_module/avoidance/avoidance_module_data.hpp 0.00% <ø> (ø)
...er/scene_module/lane_change/lane_change_module.hpp 0.00% <ø> (ø)
...or_path_planner/src/behavior_path_planner_node.cpp 0.36% <ø> (+0.13%) ⬆️
...nning/behavior_path_planner/src/path_utilities.cpp 0.00% <0.00%> (ø)
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% <0.00%> (ø)
...rc/scene_module/lane_change/lane_change_module.cpp 0.00% <0.00%> (ø)
.../behavior_path_planner/src/turn_signal_decider.cpp 0.00% <ø> (ø)
planning/obstacle_stop_planner/src/node.cpp 0.00% <0.00%> (ø)
...vehicle_model/sim_model_ideal_steer_acc_geared.cpp 73.58% <0.00%> (-9.44%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef4d7fa...aa96155. Read the comment docs.

@tkimura4 tkimura4 marked this pull request as ready for review August 3, 2022 12:34
Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

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

@tkimura4 tkimura4 merged commit 665b31b into autowarefoundation:main Aug 3, 2022
@tkimura4 tkimura4 deleted the fix/avoidance_turn_signal branch August 3, 2022 15:43
tkimura4 referenced this pull request in tier4/autoware.universe Aug 3, 2022
…uence (#1511)

* remove search distance for turn signal

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* set distance to max when a lane_attriute is straight

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…uence (tier4#1511)

* remove search distance for turn signal

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* set distance to max when a lane_attriute is straight

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…uence (tier4#1511)

* remove search distance for turn signal

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* set distance to max when a lane_attriute is straight

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…uence (tier4#1511)

* remove search distance for turn signal

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* set distance to max when a lane_attriute is straight

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
…uence (autowarefoundation#1511)

* remove search distance for turn signal

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* set distance to max when a lane_attriute is straight

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
…uence (tier4#1511)

* remove search distance for turn signal

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* set distance to max when a lane_attriute is straight

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
saka1-s added a commit to saka1-s/autoware.universe that referenced this pull request Sep 6, 2024
* implement service for clear MRM behavior

* clang format
technolojin pushed a commit to technolojin/autoware.universe that referenced this pull request Nov 25, 2024
…utowarefoundation#1654)

* feat(mrm_handler): mrm recoverable option (autowarefoundation#1316)

* implement is_mrm_recoverable option of mrm_handler

* add pull over after stopped option

* update json schema of mrm_handler

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* feat: implement service for clear MRM behavior (autowarefoundation#1511)

* implement service for clear MRM behavior

* clang format

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* feat: implement MRM automatic recovery feature

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix typo

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

---------

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Co-authored-by: Shohei Sakai <saka1s.jp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants