Skip to content

Commit 13d40f3

Browse files
committed
fix test
1 parent 3480ed2 commit 13d40f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathPlanning/PotentialFieldPlanning/potential_field_planning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def potential_field_planning(sx, sy, gx, gy, ox, oy, reso, rr):
8787

8888
# calc potential field
8989
pmap, minx, miny = calc_potential_field(gx, gy, ox, oy, reso, rr)
90-
draw_heatmap(pmap)
9190

9291
# search path
9392
d = np.hypot(sx - gx, sy - gy)
@@ -97,6 +96,7 @@ def potential_field_planning(sx, sy, gx, gy, ox, oy, reso, rr):
9796
giy = round((gy - miny) / reso)
9897

9998
if show_animation:
99+
draw_heatmap(pmap)
100100
plt.plot(ix, iy, "*k")
101101
plt.plot(gix, giy, "*m")
102102

0 commit comments

Comments
 (0)