MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / destroy

Method destroy

PythonAPI/examples/automatic_control.py:155–164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 self.camera_manager.index = None
154
155 def destroy(self):
156 actors = [
157 self.camera_manager.sensor,
158 self.collision_sensor.sensor,
159 self.lane_invasion_sensor.sensor,
160 self.gnss_sensor.sensor,
161 self.player]
162 for actor in actors:
163 if actor is not None:
164 actor.destroy()
165
166
167# ==============================================================================

Callers 4

restartMethod · 0.95
game_loopFunction · 0.95
destroy_sensorsMethod · 0.45
set_sensorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected