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 blueprint based on the given sumo actor.
docstr_tok: ["Returns","an","appropriate","blueprint","based","on","the","given","sumo","actor","."]
code: def _get_recommended_carla_blueprint(sumo_actor):
      """
      Returns an appropriate blueprint based on the given sumo actor.
      """
      vclass = sumo_actor.vclass.value
  
      blueprints = []
      for blueprint in BridgeHelper.blueprint_library:
          if (
              blueprint.id in BridgeHelper._VTYPES
              and BridgeHelper._VTYPES[blueprint.id]["vClass"] == vclass
          ):
              blueprints.append(blueprint)
  
      if not blueprints:
          return None
  
      return random.choice(blueprints)
  
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 3 for calling the BridgeHelper obj's underlying member method code with example usage: obj._get_recommended_carla_blueprint(sumo_actor) and returns: random, None