-
Notifications
You must be signed in to change notification settings - Fork 667
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 signal distance #1606
Conversation
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
…urn_signal Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Codecov Report
@@ Coverage Diff @@
## main #1606 +/- ##
==========================================
- Coverage 11.06% 10.65% -0.42%
==========================================
Files 1035 1103 +68
Lines 69343 72179 +2836
Branches 17982 18051 +69
==========================================
+ Hits 7675 7689 +14
- Misses 53227 55892 +2665
- Partials 8441 8598 +157
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix(behavior_path_planner): fix turn signal distance Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * fix choice way of turn_signal from turn_signal_plan or intersection_turn_signal Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * restrict distance_from_vehicle_front to positive value Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
* fix(behavior_path_planner): fix turn signal distance Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * fix choice way of turn_signal from turn_signal_plan or intersection_turn_signal Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * restrict distance_from_vehicle_front to positive value Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
* fix(behavior_path_planner): fix turn signal distance Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * fix choice way of turn_signal from turn_signal_plan or intersection_turn_signal Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * restrict distance_from_vehicle_front to positive value Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
…ion#1606) * fix(behavior_path_planner): fix turn signal distance Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * fix choice way of turn_signal from turn_signal_plan or intersection_turn_signal Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * restrict distance_from_vehicle_front to positive value Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
* fix(behavior_path_planner): fix turn signal distance Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * fix choice way of turn_signal from turn_signal_plan or intersection_turn_signal Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * restrict distance_from_vehicle_front to positive value Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
…efoundation#9142) (autowarefoundation#1606) Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
…efoundation#9142) (autowarefoundation#1606) Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: tomoya.kimura tomoya.kimura@tier4.jp
Description
Fix turn signal distance.
Before the change, the distance of intersection turn signal could be accidentally rewritten by lanes with
none
attribute.After the change, distance will be only updated by lane with
left
orright
attribute.When avoiding near the intersection, the intersection turn_signal with big minus distance is output as shown below, and the avoidance turn signal does not turn on correctly.
After the change, the intersection turn_signal with minus distance will not be output from
getIntersectionTurnSignal
Sometimes, the turn signal with NO_COMMAND is output from avoidance module, and it rewrites the intersection turn signal.
After the change, turn_signal with NO_COMMAND will be ignored.
I checked turn_signal value by inserting following code in turn_signal_decider.cpp
** Note **
https://user-images.githubusercontent.com/59680180/185071535-37d0131f-ce97-420e-8692-b7fcd31c0007.mp4
TODO:
Even after merging this PR, sometimes turn signal chattering still occurs.
This may be because the calculation method of distance to intersection is crude, and the distance to the lane changes depending on how lane_ids are embedded in PathWithLaneId.
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.
After all checkboxes are checked, anyone who has write access can merge the PR.