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

refactor(intersection): code clean #2071

Merged
merged 4 commits into from
Oct 14, 2022

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Oct 14, 2022

Description

Since the functionality is getting stable, this module can be refactored.

cc: @veqcc

list of refactored points (improvement of computation time will be done in next PR)

  • renamed variable for simplicity
  • add const
  • deleted vector<lanelet id>, and use vector<lanelet>
  • use planning_utils (TODO)
  • cache lanelet stuff to lower computation cost (TODO)

Tests performed

Checked in psim

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: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
…elets

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin soblin changed the title Refactor/intersection refactor(intersection): code clean Oct 14, 2022
@codecov
Copy link

codecov bot commented Oct 14, 2022

Codecov Report

Base: 10.35% // Head: 10.31% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (5d3f57b) compared to base (c5031ba).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2071      +/-   ##
==========================================
- Coverage   10.35%   10.31%   -0.04%     
==========================================
  Files        1175     1175              
  Lines       84044    84344     +300     
  Branches    19590    19892     +302     
==========================================
  Hits         8704     8704              
- Misses      65831    66108     +277     
- Partials     9509     9532      +23     
Flag Coverage Δ *Carryforward flag
differential 4.32% <0.00%> (?)
total 10.33% <0.00%> (ø) Carriedforward from 7ab8a28

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

Impacted Files Coverage Δ
...c/scene_module/intersection/scene_intersection.cpp 0.00% <0.00%> (ø)
...ule/intersection/scene_merge_from_private_road.cpp 0.00% <0.00%> (ø)
...ity_planner/src/scene_module/intersection/util.cpp 0.00% <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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin
Copy link
Contributor Author

soblin commented Oct 14, 2022

@kyoichi-sugahara Can you have a look the changes and approve this PR?

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

@soblin soblin enabled auto-merge (squash) October 14, 2022 09:50
@soblin soblin merged commit 887c149 into autowarefoundation:main Oct 14, 2022
@soblin soblin deleted the refactor/intersection branch October 14, 2022 11:09
scepter914 pushed a commit to scepter914/autoware.universe that referenced this pull request Nov 1, 2022
* avoid lanelet <-> id as much as possible
* return detection_lanelets and conflicting_lanelets in getObjectiveLanelets
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: scepter914 <scepter914@gmail.com>
soblin added a commit to soblin/autoware.universe that referenced this pull request Dec 22, 2022
* avoid lanelet <-> id as much as possible
* return detection_lanelets and conflicting_lanelets in getObjectiveLanelets
Signed-off-by: Mamoru Sobue <mamoru.sobue@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