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

Function do_destroy

PythonAPI/examples/gamma_crowd.py:794–804  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

792
793
794def do_destroy(c):
795
796 c.crowd_service.acquire_destroy_list()
797 destroy_list = c.crowd_service.destroy_list
798 c.crowd_service.destroy_list = []
799 c.crowd_service.release_destroy_list()
800
801 commands = [carla.command.DestroyActor(x) for x in destroy_list]
802
803 c.client.apply_batch_sync(commands)
804 c.world.wait_for_tick(1.0)
805
806
807def pull_new_agents(c, car_agents, bike_agents, pedestrian_agents, statistics):

Callers 1

spawn_destroy_loopFunction · 0.85

Calls 3

acquire_destroy_listMethod · 0.80
release_destroy_listMethod · 0.80
DestroyActorMethod · 0.45

Tested by

no test coverage detected