mirror of
https://github.com/zhm-real/PathPlanning.git
synced 2026-08-30 09:00:47 +08:00
update
This commit is contained in:
@@ -40,7 +40,11 @@ def animation(xI, xG, obs, path, visited, name):
|
||||
plt.plot(x[0], x[1], linewidth='3', color='#808080', marker='o')
|
||||
plt.gcf().canvas.mpl_connect('key_release_event',
|
||||
lambda event: [exit(0) if event.key == 'escape' else None])
|
||||
if count % 20 == 0: plt.pause(0.01)
|
||||
if count < 500: length = 20
|
||||
elif count < 700: length = 30
|
||||
else: length = 50
|
||||
|
||||
if count % length == 0: plt.pause(0.001)
|
||||
|
||||
# plot optimal path
|
||||
path_x = [path[i][0] for i in range(len(path))]
|
||||
|
||||
Reference in New Issue
Block a user