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

Method cleanup

scenario_runner/srunner/autoagents/agent_wrapper.py:89–98  ·  view source on GitHub ↗

Remove and destroy all sensors

(self)

Source from the content-addressed store, hash-verified

87 CarlaDataProvider.get_world().tick()
88
89 def cleanup(self):
90 """
91 Remove and destroy all sensors
92 """
93 for i, _ in enumerate(self._sensors_list):
94 if self._sensors_list[i] is not None:
95 self._sensors_list[i].stop()
96 self._sensors_list[i].destroy()
97 self._sensors_list[i] = None
98 self._sensors_list = []

Callers 1

_cleanupMethod · 0.45

Calls 2

stopMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected