The following API calls need to be synthesized to simulate extreme weather in CARLA:
- Basic weather settings:
weather = carla.WeatherParameters(cloudiness=90.0, precipitation=80.0, wetness=100.0)
Generate heavy rainfall. - Dynamic effects are enhanced:
weather.precipitation_deposits=50.0
Creating water on roadways.weather.fog_density=90.0
Simulate dense fog. - Light control:
weather.sun_altitude_angle=-10.0
Creates a nighttime aurora effect. - Sensor interference: by
camera_bp.set_attribute('motion_blur_intensity', '0.9')
Add camera motion blur. - Physical Impact: After enabling the Chrono library, setting the
vehicle.set_physics_control(wheel_friction=0.1)
Reduces grip on slippery surfaces.
This answer comes from the articleCARLA: an open source autonomous driving research simulatorThe