본문으로 건너뛰기
Skillpedia
기타15k · #11100

set-weather

하는 일

이 스킬은 시뮬레이션의 날씨와 시간대를 바꿉니다. 비, 안개, 밤 같은 조건에서 주행이나 센서를 테스트하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓실행 중인 시뮬레이터의 날씨를 바꾸고 싶을 때.
  • ✓비, 안개, 먼지, 밤 같은 조건을 요청하고 싶을 때.
  • ✓바꾸기 전에 현재 날씨 설정을 확인하고 싶을 때.

스킬 링크

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/set-weather/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/set-weather/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“시뮬레이터에 석양 무렵의 폭우를 설정하고, 설정이 적용되었는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 말로 된 요청을 시뮬레이터 날씨 필드의 정확한 값으로 바꾸고 적용한 뒤, 날씨를 다시 읽어 확인합니다. 흔한 조건에는 표준 프리셋을 쓰고, 작은 조정에는 개별 값을 바꿉니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Set CARLA weather

Paths. scripts/… and references/… below are relative to the directory holding this SKILL.md. Your working directory is the user's project, not that directory, so prefix them with its absolute path or the command is not found.

Set the weather on a running server from a client, and read it back to confirm. The deliverable is verified server state: set_weather returns nothing, so every change is re-read into a VERIFY block.

The job that matters here is turning words into the right numbers. CARLA has 14 weather fields and 23 tuned presets; a plain request maps to exact values, not a guess. The mapping is authoritative and lives in references/weather.md — read it before composing a set. The rule of thumb:

  • A request naming one quantity ("raise the sun", "how high the sun sits", "more puddles", "make it windier", "thicker fog") maps to a single field → set --<field>. The plain-language→field table in the reference names the everyday phrasings for each of the 14 fields. Relative wording ("a bit higher", "less rain") → show the current value, then set the field to the new one.
  • A standard condition × time ("heavy rain at sunset") is a preset → apply it directly.
  • A tweak on a standard look → start from that preset and override the few differing fields (set --base <preset> ...).
  • Anything else → compose fields from the reference's vocabulary tables, picking the sun angle from its time-of-day table.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Map the request -> preset or field values (references/weather.md)
- [ ] Step 3: Apply (preset / set --base / set)
- [ ] Step 4: Verify the VERIFY block matches the words

Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh (defaults 127.0.0.1:2000). Prefix with source scripts/env.sh or export them.

Step 1: Check prerequisites

bash scripts/check_env.sh

FAILs only on a missing carla module or an unreachable server.

Step 2: Map the words to parameters

Open references/weather.md. Decide whether the request is a preset, a preset-plus-tweak, or a from-scratch composition. Do not invent field values — use the tables so the result is reproducible.

Step 3: Apply

source scripts/env.sh

# see what maps to what
python3 scripts/weather.py show
python3 scripts/weather.py list-presets

# a standard look = a preset
python3 scripts/weather.py preset HardRainSunset
python3 scripts/weather.py preset ClearNight

# a preset with a tweak (foggier hard rain at sunset)
python3 scripts/weather.py set --base HardRainSunset --fog-density 40

# a from-scratch composition (misty grey afternoon, roads still wet)
python3 scripts/weather.py set \
    --cloudiness 90 --fog-density 20 --fog-distance 60 \
    --precipitation-deposits 50 --wetness 40 --sun-altitude-angle 40

set takes a flag for every field (--cloudiness, --precipitation, --precipitation-deposits, --wind-intensity, --fog-density, --fog-distance, --fog-falloff, --wetness, --sun-altitude-angle, --sun-azimuth-angle, --dust-storm, and the three scattering scales). 0-100 fields are clamped. Without --base it overrides the current weather, leaving unspecified fields untouched.

Step 4: Verify

The VERIFY block prints all 14 fields. Confirm they match the request: e.g. "heavy rain at sunset" ⇒ precipitation = 100, precipitation_deposits = 90, cloudiness = 100, sun_altitude_angle = 15.

Examples

Example 1: a preset request

User says: "make it rain hard at sunset"

python3 scripts/weather.py preset HardRainSunset. VERIFY: precipitation 100, deposits 90, cloudiness 100, sun_altitude 15. Done.

Example 1b: a single-field request

User says: "the sun's too low, raise it higher"

show (say sun_altitude_angle = 15), then set --sun-altitude-angle 60. Only the sun height changes; clouds/rain/fog stay as they were.

Example 2: night + fog, not an exact preset

User says: "foggy night, calm"

Nearest is ClearNight (already fog 60 at night); if they want thicker fog: set --base ClearNight --fog-density 90 --fog-distance 10 --wind-intensity 5. VERIFY: sun_altitude -90, fog_density 90.

Example 3: from-scratch daytime scene

User says: "overcast afternoon just after rain — wet roads, no rain falling"

`set --cloudines

자주 묻는 질문

변경을 확인하나요?

네. set 명령은 결과를 돌려주지 않으므로, 변경할 때마다 날씨를 다시 읽어 확인합니다.

프리셋이란 무엇인가요?

석양의 비처럼 흔한 조합에 맞게 조정된 날씨 값의 묶음입니다.

한 가지만 바꿀 수 있나요?

네. 안개나 웅덩이처럼 한 가지 양에 대한 요청은 그 항목만 바꿉니다.

상세 정보

작성자의 원본 설명

Reads and sets the weather on a running CARLA server via get_weather/set_weather, and turns natural-language weather requests ("heavy rain at sunset", "light fog at night", "clear noon", "dust storm") into exact WeatherParameters — cloudiness, precipitation, puddles, wind, fog, sun position, wetness, dust. Use when the user asks to "set/change the weather", "make it rainy/foggy/sunny/night", "apply a weather preset", or describes any sky/lighting condition.

repo: carla-simulator/carla

인기도

GitHub 스타
15k
순위
#11100
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬