@@ -118,17 +118,17 @@ def getBugPath(actor, path_ls, backgroundObjects, additionalPolys, bufferCalc):
118118 path_ls = LineString (list (start_path.coords) + list (mid_path.coords) + list (end_path.coords))
119119 path_ls = shapely.remove_repeated_points (path_ls)
120120
121- import matplotlib.pyplot as plt
122- plt.gca ().set_aspect (" equal" )
123- from scenic.core.geometry import plotPolygon
124- from scenic.syntax.veneer import simulation
125- if actor.name == " pedA" and simulation ().currentRealTime == int (simulation ().currentRealTime) and simulation ().currentRealTime > 0 :
126- simulation ().scene.workspace.network.show ()
127- for obj in simulation ().objects:
128- obj.show2D (simulation ().scene.workspace, plt)
129- simulation ().scene.workspace.zoomAround (plt, simulation ().objects)
130- plotPolygon (obst_multi_poly, plt, style = " c--" )
131- plt.show ()
121+ # import matplotlib.pyplot as plt
122+ # plt.gca().set_aspect("equal")
123+ # from scenic.core.geometry import plotPolygon
124+ # from scenic.syntax.veneer import simulation
125+ # if actor.name == "pedA" and simulation().currentRealTime == int(simulation().currentRealTime) and simulation().currentRealTime > 0:
126+ # simulation().scene.workspace.network.show()
127+ # for obj in simulation().objects:
128+ # obj.show2D(simulation().scene.workspace, plt)
129+ # simulation().scene.workspace.zoomAround(plt, simulation().objects)
130+ # plotPolygon(obst_multi_poly, plt, style="c--")
131+ # plt.show()
132132
133133 return path_ls, hist_multi_poly
134134
0 commit comments