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(freespace_planning_algorithms): non-successive waypoints problem in hybrid A* algorithm #1504

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

NorahXiong
Copy link
Contributor

@NorahXiong NorahXiong commented Aug 3, 2022

Signed-off-by: NorahXiong norah.xiong@autocore.ai

Description

fix #1151

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.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Merging #1504 (8a36344) into main (e7dfa19) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1504      +/-   ##
==========================================
+ Coverage   10.39%   10.42%   +0.02%     
==========================================
  Files        1134     1134              
  Lines       79297    79319      +22     
  Branches    18483    18498      +15     
==========================================
+ Hits         8245     8268      +23     
+ Misses      62849    62842       -7     
- Partials     8203     8209       +6     
Flag Coverage Δ *Carryforward flag
differential 46.67% <100.00%> (?)
total 10.38% <100.00%> (ø) Carriedforward from e7dfa19

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

Impacted Files Coverage Δ
...freespace_planning_algorithms/src/astar_search.cpp 73.54% <100.00%> (+1.68%) ⬆️
.../freespace_planning_algorithms/src/reeds_shepp.cpp 56.55% <0.00%> (+1.37%) ⬆️

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 e7dfa19...8a36344. Read the comment docs.

…in hybrid A* algorithm

Signed-off-by: NorahXiong <norah.xiong@autocore.ai>
@NorahXiong NorahXiong changed the title fix non-successive waypoints problem in hybrid A* algorithm fix(freespace_planning_algorithms): non-successive waypoints problem in hybrid A* algorithm Aug 3, 2022
@NorahXiong NorahXiong requested a review from aohsato August 3, 2022 07:08
@mitsudome-r
Copy link
Member

mitsudome-r commented Aug 9, 2022

@NorahXiong Thanks for the PR.
Would you be able to explain the reason for the change? The change in this PR is small, but it is hard to find out why this would solve the issue. Also, it is a bit difficult to estimate how this could effect the searching in Astar. We can set a separate call if needed.

@xmfcx
Copy link
Contributor

xmfcx commented Aug 9, 2022

@NorahXiong Can you also share before&after this PR has been applied results? Some images would be nice, thanks!

@NorahXiong
Copy link
Contributor Author

@NorahXiong Thanks for the PR. Would you be able to explain the reason for the change? The change in this PR is small, but it is hard to find out why this would solve the issue.

I tried to explain how the case appears in #1151 and added a supplement here. Could you point out which part is confusing?

Also, it is a bit difficult to estimate how this could effect the searching in Astar. We can set a separate call if needed.

I didn't really get the meaning of "set a separate call". Do you mean to set this PR as an optional algorithm when calling Astar?

@NorahXiong
Copy link
Contributor Author

@NorahXiong Can you also share before&after this PR has been applied results? Some images would be nice, thanks!

Sorry I chose the small change template because I didn't know how to reproduce the bug. But now I get a setting to trigger the bug as the following picture shows.
image

Testing result: before
image

Testing result: after
image

@xmfcx
Copy link
Contributor

xmfcx commented Sep 6, 2022

Thanks for sharing the before&after and detailed explanation. We can merge it now!

@xmfcx xmfcx merged commit 37e8c99 into autowarefoundation:main Sep 6, 2022
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…in hybrid A* algorithm (tier4#1504)

Signed-off-by: NorahXiong <norah.xiong@autocore.ai>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…in hybrid A* algorithm (tier4#1504)

Signed-off-by: NorahXiong <norah.xiong@autocore.ai>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…in hybrid A* algorithm (tier4#1504)

Signed-off-by: NorahXiong <norah.xiong@autocore.ai>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
…in hybrid A* algorithm (tier4#1504)

Signed-off-by: NorahXiong <norah.xiong@autocore.ai>
yhisaki pushed a commit to yhisaki/autoware.universe that referenced this pull request Sep 6, 2024
…ndation#8510) (autowarefoundation#1504)

* modify lane change requested condition



* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp



* style(pre-commit): autofix

* fix docstring



---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.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.

Non-successive way points generated by A-star algorithm in freespace planner
4 participants