MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / define_weather

Function define_weather

PythonAPI/util/performance_benchmark.py:61–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59sensors_callback = []
60
61def define_weather():
62 list_weather = []
63
64 if args.tm:
65 weather00 = { 'parameter' : carla.WeatherParameters.ClearNoon, 'name': 'ClearNoon'}
66
67 list_weather.append(weather00)
68
69 else:
70 weather00 = { 'parameter' : carla.WeatherParameters.ClearNoon, 'name' : 'ClearNoon'}
71 weather01 = { 'parameter' : carla.WeatherParameters.CloudyNoon, 'name' : 'CloudyNoon'}
72 weather02 = { 'parameter' : carla.WeatherParameters.SoftRainSunset, 'name' : 'SoftRainSunset'}
73
74 list_weather.append(weather00)
75 list_weather.append(weather01)
76 list_weather.append(weather02)
77
78 return list_weather
79
80
81def define_sensors():

Callers 1

mainFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected