MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / _weather_to_dict

Method _weather_to_dict

leaderboard/team_code/base_agent.py:346–360  ·  view source on GitHub ↗
(self, carla_weather)

Source from the content-addressed store, hash-verified

344
345
346 def _weather_to_dict(self, carla_weather):
347 weather = {
348 'cloudiness': carla_weather.cloudiness,
349 'precipitation': carla_weather.precipitation,
350 'precipitation_deposits': carla_weather.precipitation_deposits,
351 'wind_intensity': carla_weather.wind_intensity,
352 'sun_azimuth_angle': carla_weather.sun_azimuth_angle,
353 'sun_altitude_angle': carla_weather.sun_altitude_angle,
354 'fog_density': carla_weather.fog_density,
355 'fog_distance': carla_weather.fog_distance,
356 'wetness': carla_weather.wetness,
357 'fog_falloff': carla_weather.fog_falloff,
358 }
359
360 return weather
361
362 def _create_bb_points(self, bb):
363 """

Callers 1

tickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected