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

feat(lane_departure_checker): include neighbor lanelets as optional #2709

Merged

Conversation

brkay54
Copy link
Member

@brkay54 brkay54 commented Jan 20, 2023

Signed-off-by: Berkay Karaman brkay54@gmail.com

Description

In current implementation, lane_departure_checker is only checking the vehicle's current lane. However, in some conditions, vehicle can be driven in other lanes. For example, because bus is large vehicle, it can not fit in lanes especially in sharp turns and lane_departure_checker publishes emergency then make vehicle stop. But, user should define the borders of drivable area for lane_departure_checker. To do this, I added some options about which lanes should be included to drivable area borders.

Related links

Tests performed

Notes for reviewers

cc. @kyoichi-sugahara
It is little urgent change, we need to merge this before BusODD.

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.

@brkay54 brkay54 added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Jan 20, 2023
@brkay54 brkay54 added this to the Bus ODD Jan-Feb Milestone milestone Jan 20, 2023
@brkay54 brkay54 requested review from TakaHoribe and a team as code owners January 20, 2023 12:57
@brkay54 brkay54 self-assigned this Jan 20, 2023
@github-actions github-actions bot added the component:launch Launch files, scripts and initialization tools. (auto-assigned) label Jan 20, 2023
@brkay54 brkay54 force-pushed the extend-lane-departure-checker branch 2 times, most recently from 0d763a3 to 05d43bb Compare January 20, 2023 12:59
@github-actions github-actions bot removed the component:launch Launch files, scripts and initialization tools. (auto-assigned) label Jan 20, 2023
@brkay54 brkay54 removed the request for review from TakaHoribe January 20, 2023 13:01
@codecov
Copy link

codecov bot commented Jan 20, 2023

Codecov Report

Base: 11.79% // Head: 11.78% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (015f4ee) compared to base (11c9892).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2709      +/-   ##
==========================================
- Coverage   11.79%   11.78%   -0.02%     
==========================================
  Files        1322     1322              
  Lines       92802    92901      +99     
  Branches    25004    25075      +71     
==========================================
+ Hits        10944    10945       +1     
- Misses      70384    70483      +99     
+ Partials    11474    11473       -1     
Flag Coverage Δ *Carryforward flag
differential 5.90% <0.00%> (?)
total 11.79% <ø> (+<0.01%) ⬆️ Carriedforward from 51ffc39

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

Impacted Files Coverage Δ
...rture_checker_node/lane_departure_checker_node.cpp 0.28% <0.00%> (-0.12%) ⬇️
...vehicle_model/sim_model_ideal_steer_acc_geared.cpp 88.09% <0.00%> (+2.38%) ⬆️

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@brkay54 brkay54 added the priority:high High urgency and importance. label Jan 23, 2023
@mehmetdogru
Copy link
Contributor

@brkay54 please create another PR in autoware_launch repo for the changes you made in lane_departure_checker.param.yaml file

@kyoichi-sugahara
Copy link
Contributor

@brkay54
sorry for late check.
Applied the parameters below and checked lane_departure checker doesn't output emergency.
include_right_lanes = true
include_opposite_lanes = true

So could you prepare config file in autoware_launch repo?
Then I will approve this PR.

Screenshot from 2023-02-09 18-22-06

Signed-off-by: Berkay Karaman <brkay54@gmail.com>
@brkay54
Copy link
Member Author

brkay54 commented Feb 20, 2023

@kyoichi-sugahara I am appreciated for your review. I created PR for autoware_launch: autowarefoundation/autoware_launch#217

@kyoichi-sugahara
Copy link
Contributor

@kosuke55
With this implementation, shoulder lane is not included in the neighbor lanelets. Shoulder lane will be added to routing_graph in near future?

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

@kosuke55
Copy link
Contributor

@kyoichi-sugahara

With this implementation, shoulder lane is not included in the neighbor lanelets.

All shoulder lanes have already been added to the candidate_lanelets, so we may don't need to add them as neighbors:thinking:
#2614

Shoulder lane will be added to routing_graph in near future?

We haven't decided yet, but we might do so.

@brkay54 brkay54 merged commit 9b3729b into autowarefoundation:main Feb 21, 2023
nabetetsu pushed a commit to xygyo77/autoware.universe that referenced this pull request Mar 1, 2023
1222-takeshi pushed a commit to 1222-takeshi/autoware.universe that referenced this pull request Mar 6, 2023
@brkay54 brkay54 deleted the extend-lane-departure-checker branch April 27, 2023 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (auto-assigned) priority:high High urgency and importance.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants