Skip to content

Commit 881308b

Browse files
committed
fixed CI
1 parent ac1a903 commit 881308b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PathPlanning/VisibilityRoadMap/visibility_road_map.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def planning(self, start_x, start_y, goal_x, goal_y, obstacles):
3434

3535
road_map_info = self.generate_road_map_info(nodes, obstacles)
3636

37-
if show_animation:
37+
if self.do_plot:
3838
self.plot_road_map(nodes, road_map_info)
3939
plt.pause(1.0)
4040

@@ -197,7 +197,7 @@ def main():
197197
),
198198
ObstaclePolygon(
199199
[20.0, 30.0, 30.0, 20.0],
200-
[40.0, 45.0, 70.0, 50.0],
200+
[40.0, 45.0, 60.0, 50.0],
201201
)
202202
]
203203

@@ -206,6 +206,7 @@ def main():
206206
plt.plot(gx, gy, "ob")
207207
for ob in obstacles:
208208
ob.plot()
209+
plt.axis("equal")
209210
plt.pause(1.0)
210211

211212
rx, ry = VisibilityRoadMap(robot_radius, do_plot=show_animation).planning(
@@ -214,7 +215,6 @@ def main():
214215
if show_animation: # pragma: no cover
215216
plt.plot(rx, ry, "-r")
216217
plt.pause(0.1)
217-
plt.axis("equal")
218218
plt.show()
219219

220220

0 commit comments

Comments
 (0)