本文へスキップ
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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/set-weather/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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

よくある質問

変更を確認しますか?

はい。設定コマンドは何も返さないため、各変更の後に天候を読み戻して確認します。

プリセットとは何ですか?

よくある条件の組み合わせに合わせて調整された天候の値のセットで、たとえば夕暮れの雨などです。

一つだけ変えることはできますか?

はい。霧や水たまりなど一つの量だけを指定すると、その項目だけが変わります。

詳細

作者による元の説明

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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル