PathPlanning icon indicating copy to clipboard operation
PathPlanning copied to clipboard

An exception occurred when drawing with bfs in "Search_2D"

Open xioacd99 opened this issue 2 years ago • 1 comments

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'

xioacd99 avatar Nov 06 '21 13:11 xioacd99

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

SquareSon avatar Jul 06 '23 06:07 SquareSon