set-weather

Reads and sets weather parameters on a running CARLA server via the Python API.

3|Updated Jul 20, 2026
One-click install
npx skills add https://github.com/carla-simulator/carla-agentic-tools --skill set-weather-carla-simulator
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: set-weather
Source: https://github.com/carla-simulator/carla-agentic-tools/tree/main/skills/python-api/set-weather
Command: npx skills add https://github.com/carla-simulator/carla-agentic-tools --skill set-weather-carla-simulator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires carla, and includes scripts (resource) and references (resource) components.

What problem does it solve? Translating natural-language weather requests like "heavy rain at sunset" into CARLA's 14 WeatherParameters fields is error-prone guesswork. This Skill maps plain-language requests to exact preset values or field overrides, applies them to a running CARLA server, and reads the result back for verification. ## Core Features & Use Cases - Natural-language to parameter mapping: Converts requests like "light fog at night" or "dust storm" into exact WeatherParameters using an authoritative vocabulary and preset matrix covering all 23 built-in presets. - Preset, tweak, or compose: Apply a named preset directly, start from a preset and override specific fields with --base, or compose all 14 fields from scratch including sun angles, fog, puddles, and scattering scales. - Verified application: Every change is re-read from the server into a VERIFY block, since set_weather returns nothing, so the applied state is confirmed against the request. - Use Case: A user asks to make it "foggy night, calm" in their simulation. The Skill applies set --base ClearNight --fog-density 90 --fog-distance 10 --wind-intensity 5 and verifies sun_altitude is -90 and fog_density is 90. ## Quick Start Ask the agent to set the weather on your running CARLA server, for example "make it rain hard at sunset", and it will apply the matching preset and verify the result.

Frequently Asked Questions about set-weather

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I change the weather in CARLA simulator?▼

Use the weather.py script with a named preset like `python3 scripts/weather.py preset HardRainSunset`, or override individual fields with `set --cloudiness 80 --precipitation 60`. The change is applied via the CARLA Python API and read back for verification.

How do I set rain, fog, or night conditions in CARLA from natural language?▼

Standard condition-plus-time requests map directly to CARLA's 23 presets, such as HardRainSunset or ClearNight. Non-standard requests are composed from vocabulary tables mapping words like "misty" or "downpour" to exact field values for fog_density, precipitation, and sun_altitude_angle.

Does setting CARLA weather require a source checkout or UE4?▼

No. The Skill only needs the carla Python module importable by the active interpreter and a reachable, already-running CARLA server. It does not need UE4_ROOT or a source checkout, and was tested against CARLA 0.9.16.

Why does my CARLA weather reset after loading a map?▼

Weather in CARLA is per-world and transient, so loading a new map resets it to the map default. Re-apply the preset or set command after the map load completes to restore the desired conditions.

Why does rain in CARLA look wrong or roads look dry?▼

High precipitation with low cloudiness looks wrong, so raise cloudiness too as the rain presets do. Standing water is controlled separately by precipitation_deposits and wetness, which must be set alongside precipitation for a coherent wet scene.