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): lane change intersection stop #1480

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

fixing lane change stopping before lane change prohibited area.
currently the stop function is not working so properly.

Signed-off-by: Muhammad Zulfaqar Azmi zulfaqar.azmi@tier4.jp

Description

In current lane change module, if the goal pose is slightly after intersection, and the minimum distance to perform lane change is insufficient, ego vehicle should stop before the intersection.

However, at the present module, ego stop before intersection, but the distance is not enough to perform lane change. example is as follows
Before

This pr aims to solve this issue by fixing the bug. In addition to the intersection length, we should also consider the stopping distance. the result is as follows.
After

Related links

Tests performed

Using psim and test lane change scenario.

  1. disable rtc auto approval for lane change.
ros2 service call /planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/lane_change_left/enable_auto_mode tier4_rtc_msgs/srv/AutoMode enable:\ false && ros2 service call /planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/lane_change_right/enable_auto_mode tier4_rtc_msgs/srv/AutoMode enable:\ false
  1. place ego 20 - 30 meters away from intersection.
  2. place the goal slightly after intersection.
  3. engage vehicle.
  4. Ego vehicle should stop before intersection, and lane change is possible.

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.

fixing lane change stopping before lane change prohibited area.
currently the stop function is not working so properly.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
@codecov
Copy link

codecov bot commented Aug 1, 2022

Codecov Report

Merging #1480 (a58398c) into main (420b591) will increase coverage by 0.13%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1480      +/-   ##
==========================================
+ Coverage   10.18%   10.31%   +0.13%     
==========================================
  Files        1135     1135              
  Lines       78538    74956    -3582     
  Branches    17891    17726     -165     
==========================================
- Hits         7998     7731     -267     
+ Misses      62922    59863    -3059     
+ Partials     7618     7362     -256     
Flag Coverage Δ *Carryforward flag
differential 0.79% <0.00%> (?)
total 10.34% <0.00%> (+0.17%) ⬆️ Carriedforward from 10e6e06

*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% <ø> (ø)
...ne_module/lane_following/lane_following_module.cpp 0.00% <ø> (ø)
planning/behavior_path_planner/src/utilities.cpp 1.03% <0.00%> (-0.02%) ⬇️
...auto_common/include/helper_functions/type_name.hpp 66.66% <0.00%> (-33.34%) ⬇️
..._utils/include/grid_map_utils/polygon_iterator.hpp 50.00% <0.00%> (-25.00%) ⬇️
...or/include/planning_error_monitor/debug_marker.hpp 50.00% <0.00%> (-25.00%) ⬇️
map/lanelet2_extension/lib/route_checker.cpp 77.77% <0.00%> (-11.12%) ⬇️
...oware_auto_geometry/test/src/test_hull_pockets.cpp 45.65% <0.00%> (-10.60%) ⬇️
...autoware_auto_geometry/test/src/test_common_2d.cpp 42.85% <0.00%> (-10.48%) ⬇️
...ion/include/fault_injection/diagnostic_storage.hpp 53.84% <0.00%> (-7.70%) ⬇️
... and 543 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 420b591...a58398c. Read the comment docs.

move output to the last parameter

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Copy link
Contributor

@rej55 rej55 left a comment

Choose a reason for hiding this comment

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

LGTM

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 merged commit 8a8c754 into autowarefoundation:main Aug 2, 2022
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the fix/lane-change-stopping-before-intersection branch August 2, 2022 00:44
tkimura4 referenced this pull request in tier4/autoware.universe Aug 2, 2022
* fix(behavior_path_planner): lane change intersection stop

fixing lane change stopping before lane change prohibited area.
currently the stop function is not working so properly.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: change order of parameter

move output to the last parameter

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
* fix(behavior_path_planner): lane change intersection stop

fixing lane change stopping before lane change prohibited area.
currently the stop function is not working so properly.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: change order of parameter

move output to the last parameter

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* fix(behavior_path_planner): lane change intersection stop

fixing lane change stopping before lane change prohibited area.
currently the stop function is not working so properly.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: change order of parameter

move output to the last parameter

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* fix(behavior_path_planner): lane change intersection stop

fixing lane change stopping before lane change prohibited area.
currently the stop function is not working so properly.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: change order of parameter

move output to the last parameter

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
…undation#1480)

* fix(behavior_path_planner): lane change intersection stop

fixing lane change stopping before lane change prohibited area.
currently the stop function is not working so properly.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: change order of parameter

move output to the last parameter

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
* fix(behavior_path_planner): lane change intersection stop

fixing lane change stopping before lane change prohibited area.
currently the stop function is not working so properly.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: change order of parameter

move output to the last parameter

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
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