PathPlanning
PathPlanning copied to clipboard
An exception occurred when drawing with bfs in "Search_2D"
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:
- Python 3.8.12 with acaconda
- matplotlib 3.4.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'
I also have this problem. Rename queue.py to something else is a good solution.