Skip to content

Commit ed4545a

Browse files
committed
Remove debug visualization.
1 parent 5888ac0 commit ed4545a

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/scenic/domains/driving/behaviors/walks.scenic

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)