class_docstr: BridgeHelper provides methos to ease the co-simulation between sumo and carla.
class_docstr_tok: ["BridgeHelper","provides","methos","to","ease","the","co-simulation","between","sumo","and","carla","."]
docstr: Returns an appropriate vtype based on the type id and attributes.
docstr_tok: ["Returns","an","appropriate","vtype","based","on","the","type","id","and","attributes","."]
code: def get_sumo_vtype(carla_actor):
      """
      Returns an appropriate vtype based on the type id and attributes.
      """
      type_id = carla_actor.type_id
  
      if not type_id.startswith("vehicle"):
          logging.error(
              "[BridgeHelper] Blueprint %s not supported. No vehicle will be spawned in sumo",
              type_id,
          )
          return None
  
      if type_id in traci.vehicletype.getIDList():
          logging.debug(
              "[BridgeHelper] blueprint %s found in sumo vtypes",
              type_id,
          )
          return type_id
      return BridgeHelper._create_sumo_vtype(carla_actor)
  
file_path: carla/Co-Simulation/Sumo/sumo_integration/bridge_helper.py
imports: import json
  import logging
  import math
  import os
  import random
  import carla
  import traci
  from .sumo_simulation import SumoSignalState, SumoVehSignal
label_desc: Use image node_id 6 for calling the BridgeHelper obj's underlying member method code with example usage: obj.get_sumo_vtype(carla_actor) and returns: BridgeHelper, None, type_id