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

obstacle #2

Open
Technician13 opened this issue Mar 22, 2024 · 0 comments
Open

obstacle #2

Technician13 opened this issue Mar 22, 2024 · 0 comments

Comments

@Technician13
Copy link

There is a flaw in the traversal logic in function get_d_grad(self, x, y) in obstacle.py

 if mino['type'] == 'circle':
     ox, oy = o['centerx'], o['centery']

should be modified as

 if mino['type'] == 'circle':
     ox, oy = mino['centerx'], mino['centery']

Because mino was already found in the previous traversal, but the traversal did not break, and the traversal may still continue. Therefore, according to the original code, o may not necessarily be the same obstacle as mino.

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

No branches or pull requests

1 participant