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 d_star, #886 #898

Merged
merged 1 commit into from
Dec 18, 2023
Merged

fix d_star, #886 #898

merged 1 commit into from
Dec 18, 2023

Conversation

2892510130
Copy link
Contributor

fix D* bug, not it can handle the changed map. #886

@2892510130
Copy link
Contributor Author

sorry for the typo, "not" - > "now"

@@ -103,7 +104,7 @@ def process_state(self):
if y.h <= k_old and x.h > y.h + x.cost(y):
x.parent = y
x.h = y.h + x.cost(y)
elif k_old == x.h:
if k_old == x.h:
for y in self.map.get_neighbors(x):
Copy link
Owner

Choose a reason for hiding this comment

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

Why is this change needed?

@@ -116,7 +117,7 @@ def process_state(self):
self.insert(y, x.h + x.cost(y))
else:
if y.parent != x and y.h > x.h + x.cost(y):
self.insert(y, x.h)
self.insert(x, x.h)
Copy link
Owner

Choose a reason for hiding this comment

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

Was it a bug?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please see https://www.ri.cmu.edu/pub_files/pub3/stentz_anthony__tony__1994_2/stentz_anthony__tony__1994_2.pdf, page 11. Both changes are necessary, otherwise the program will stuck when new obstacles are added.

Also check out https://www.cs.cmu.edu/~motionplanning/lecture/AppH-astar-dstar_howie.pdf, page 51, I think the instructions on this page indicate the need to change elif to if.

So is this a correct modification?

@2892510130
Copy link
Contributor Author

Hey there! So what about this PR? I think it is a bug if those two pdfs are correct.

@AtsushiSakai
Copy link
Owner

Sorry. I’m very busy these days, please wait until I have time to review.

@AtsushiSakai
Copy link
Owner

@XwLu @nirnayroy could you guys review this PR?

@XwLu
Copy link
Contributor

XwLu commented Dec 18, 2023

@AtsushiSakai @2892510130 I have checked the PR with my colleague @David-Randolph, both "elif -> if" and "y -> x" are bugs and necessary to fix.

Copy link
Owner

@AtsushiSakai AtsushiSakai left a comment

Choose a reason for hiding this comment

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

Since one knowledgeable person has approved the changes, I will proceed with the merge.

@AtsushiSakai AtsushiSakai merged commit 3efbc94 into AtsushiSakai:master Dec 18, 2023
8 checks passed
@AtsushiSakai
Copy link
Owner

@2892510130 Thank you for contribution and sorry for my late response

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.

None yet

3 participants