class_docstr: CarlaSimulation is responsible for the management of the carla simulation.
code: def __init__(self, args):
      self.args = args
      host = args.carla_host
      port = args.carla_port
  
      self.client = carla.Client(host, port)
      self.client.set_timeout(2.0)
  
      self.world = self.client.get_world()
      self.blueprint_library = self.world.get_blueprint_library()
  
      # The following sets contain updated information for the current frame.
      self._active_actors = set()
      self.spawned_actors = set()
      self.destroyed_actors = set()
  
file_path: carla/Co-Simulation/PTV-Vissim/vissim_integration/carla_simulation.py
imports: import logging
  import carla
  from .constants import INVALID_ACTOR_ID, CARLA_SPAWN_OFFSET_Z
label_desc: Use image node_id 1 to create a new CarlaSimulation object from inherited base classes: object with example: obj = CarlaSimulation(args)