()
| 68 | # ============================================================================== |
| 69 | |
| 70 | def find_weather_presets(): |
| 71 | rgx = re.compile('.+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)') |
| 72 | name = lambda x: ' '.join(m.group(0) for m in rgx.finditer(x)) |
| 73 | presets = [x for x in dir(carla.WeatherParameters) if re.match('[A-Z].+', x)] |
| 74 | return [(getattr(carla.WeatherParameters, x), name(x)) for x in presets] |
| 75 | |
| 76 | |
| 77 | def get_actor_display_name(actor, truncate=250): |