class_docstr: SumoSimulation is responsible for the management of the sumo simulation.
class_docstr_tok: ["SumoSimulation","is","responsible","for","the","management","of","the","sumo","simulation","."]
docstr: Accessor for sumo actor.
docstr_tok: ["Accessor","for","sumo","actor","."]
code: def get_actor(actor_id):
      """
      Accessor for sumo actor.
      """
      results = traci.vehicle.getSubscriptionResults(actor_id)
  
      type_id = results[traci.constants.VAR_TYPE]
      vclass = SumoActorClass(results[traci.constants.VAR_VEHICLECLASS])
      color = results[traci.constants.VAR_COLOR]
  
      length = results[traci.constants.VAR_LENGTH]
      width = results[traci.constants.VAR_WIDTH]
      height = results[traci.constants.VAR_HEIGHT]
  
      location = list(results[traci.constants.VAR_POSITION3D])
      rotation = [
          results[traci.constants.VAR_SLOPE],
          results[traci.constants.VAR_ANGLE],
          0.0,
      ]
      transform = carla.Transform(
          carla.Location(location[0], location[1], location[2]),
          carla.Rotation(rotation[0], rotation[1], rotation[2]),
      )
  
      signals = results[traci.constants.VAR_SIGNALS]
      extent = carla.Vector3D(length / 2.0, width / 2.0, height / 2.0)
  
      return SumoActor(
          type_id, vclass, transform, signals, extent, color
      )
  
imports: import collections
  import enum
  import logging
  import os
  import carla
  import sumolib
  import traci
  from .constants import INVALID_ACTOR_ID
  import lxml.etree
label_desc: Use image node_id 6 for calling the SumoSimulation obj's underlying member method code with example usage: obj.get_actor(actor_id) and returns: SumoActor