zhm-real / PathPlanning

Common used path planning algorithms with animations.
https://github.com/zhm-real/PathPlanning
MIT License
8.1k stars 1.66k forks source link

An exception occurred when drawing with bfs in "Search_2D" #25

Open xioacd99 opened 3 years ago

xioacd99 commented 3 years ago

I downloaded the entire zip and unzipped it in PyCharm. When I tried bfs for testing, everything went well until plot.animation(path,visited,"Breadth-first Search (BFS)")

Then I created a breakpoint and found the statement that stops the program. It is plt.plot(self.xI[0], self.xI[1], "bs") in def plot_grid(self, name) :In Search_based_Planning/Search_2D/plotting.py.

There may be something I didn't realize, but can you give a solution or some help? thanks : )

my environment is as follows:

  1. Python 3.8.12 with acaconda
  2. matplotlib 3.4.3
  3. numpy 1.18.5

By the way, queue.py is best renamed to something like diy_queue.py, and queue.py will cause problems AttributeError: module'queue' has no attribute'queue'

SquareSon commented 1 year ago

I also have this problem. Rename queue.py to something else is a good solution.