-
Notifications
You must be signed in to change notification settings - Fork 34
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
Pathfinding fails on some maps #2
Comments
Yes, aware of this issue. I think it's because I'm doing the "move agent", "scan for changed edge costs", and "compute shortest path" operations in the wrong order each iteration, for simplicity in the interface. Feel free to experiment with them in the "Main Program Loop" of main.py and the moveAndRescan function from d_star_lite.py. |
I might be able to spend more time on it later this week to see if I can come up with a solution. |
Hi @RedRaspberry and @mdeyo I fixed this issue in my fork |
@GBJim Good catch on the heuristic values and awesome improvements on the visualization! I will be sure to fix in my own code too. |
For some reason, the algorithm gets 'stuck' in certain spots when there is a clear path from start-finish. For example, if i create a long/winding 1-width hallway, the algorithm will stop at the corners of said hall, and will move back and forth until it turns the corner.
Additionally (on rare occasions), placing an obstacle does not 'fully' work, ie the cell cost number is still visible, and the program will crash. I believe this could be the reason for the stopping mentioned above.
Thanks for all the help.
The text was updated successfully, but these errors were encountered: