class_docstr: PTVVissimSimulation is responsible for the management of the vissim simulation.
docstr: Spawns a new actor.
  
  Warning: When the maximum number of simulator vehicles being tracked at the same time is
  reached, no new vehicles are spawned.
docstr_tok: ["Spawns","a","new","actor",".","Warning",":","When","the","maximum","number","of","simulator","vehicles","being","tracked","at","the","same","time","is","reached",",","no","new","vehicles","are","spawned","."]
code: def spawn_actor(self, transform):
      """
      Spawns a new actor.
  
      Warning: When the maximum number of simulator vehicles being tracked at the same time is
      reached, no new vehicles are spawned.
      """
      # Checks number of simulator vehicles currently being tracked.
      if len(self._simulator_vehicles) < self._max_simulator_vehicles:
          actor_id = self._get_next_actor_id()
          self._simulator_vehicles[actor_id] = Simulator_Veh_Data(
              transform.location.x,
              transform.location.y,
              transform.location.z,
              math.radians(transform.rotation.yaw),
              math.radians(transform.rotation.pitch),
              0.0,
              False,
              0,
              0,
          )
          return actor_id
      else:
          logging.warning(
              "Maximum number of simulator vehicles reached. No vehicle will be spawned."
          )
          return constants.INVALID_ACTOR_ID
  
imports: import enum
  import logging
  import math
  import os
  import carla
  from ctypes import *
  from .None import constants
label_desc: Use image node_id 4 for calling the PTVVissimSimulation obj's underlying member method code with example usage: obj.spawn_actor(transform) and returns: actor_id, constants