MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / destroy

Method destroy

scenario_runner/scenario_runner.py:114–125  ·  view source on GitHub ↗

Cleanup and delete actors, ScenarioManager and CARLA world

(self)

Source from the content-addressed store, hash-verified

112 self._start_wall_time = datetime.now()
113
114 def destroy(self):
115 """
116 Cleanup and delete actors, ScenarioManager and CARLA world
117 """
118
119 self._cleanup()
120 if self.manager is not None:
121 del self.manager
122 if self.world is not None:
123 del self.world
124 if self.client is not None:
125 del self.client
126
127 def _signal_handler(self, signum, frame):
128 """

Callers 2

mainFunction · 0.95
_cleanupMethod · 0.45

Calls 1

_cleanupMethod · 0.95

Tested by

no test coverage detected