def draw_trigger_volume(world, actor): """Draws the trigger volume of an actor. Args: world: A handle to the world running inside the simulation. actor: A simulator actor. """ from carla import BoundingBox transform = actor.get_transform() tv = transform.transform(actor.trigger_volume.location) bbox = BoundingBox(tv, actor.trigger_volume.extent) world.debug.draw_box(bbox, transform.rotation, life_time=1000)