set-weather
Skill này làm gì
Skill thay đổi thời tiết và thời điểm trong ngày của mô phỏng. Skill dành cho người muốn kiểm tra lái xe hoặc cảm biến trong mưa, sương mù, ban đêm hoặc các điều kiện khác.
Khi nào nên dùng
- ✓Khi bạn muốn thay đổi thời tiết trong simulator đang chạy.
- ✓Khi bạn yêu cầu các điều kiện như mưa, sương mù, bụi hoặc ban đêm.
- ✓Khi bạn muốn xem cài đặt thời tiết hiện tại trước khi thay đổi.
Liên kết skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/set-weather/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy đặt mưa to lúc hoàng hôn trong simulator và xác nhận cài đặt đã có hiệu lực.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chuyển lời bạn thành giá trị chính xác cho các trường thời tiết của simulator, áp dụng chúng, rồi đọc lại thời tiết để xác nhận. Agent dùng các preset chuẩn cho điều kiện phổ biến và điều chỉnh từng giá trị cho những thay đổi nhỏ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Set CARLA weather
Paths.
scripts/…andreferences/…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") →showthe current value, thensetthe 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
Câu hỏi thường gặp
Nó có xác nhận thay đổi không?
Có. Skill đọc lại thời tiết sau mỗi lần thay đổi, vì lệnh set không trả về gì.
Preset là gì?
Là một bộ giá trị thời tiết đã tinh chỉnh cho một tổ hợp phổ biến, chẳng hạn mưa lúc hoàng hôn.
Tôi có thể chỉ đổi một thứ không?
Có. Yêu cầu về một đại lượng, chẳng hạn sương mù hoặc vũng nước, chỉ thay đổi trường đó.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11100
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
create-leaderboard-route
15kGiúp agent của bạn tạo file tuyến đường CARLA Leaderboard bằng cách đặt các điểm waypoint và trigger kịch bản từ camera của simulator, rồi kiểm tra và sắp xếp chúng.
package-leaderboard-agent
15kGiúp agent của bạn đóng gói một agent lái xe thành image Docker để nộp lên CARLA Leaderboard, kiểm tra cấu trúc thư mục và thử rằng image nạp được agent.
read-leaderboard-results
15kGiúp agent của bạn đọc file kết quả CARLA Leaderboard, giải thích điểm và vi phạm của từng tuyến, và chấm lại một lần chạy theo phiên bản luật khác.
run-leaderboard-evaluation
15kGiúp agent của bạn chạy bộ đánh giá CARLA Leaderboard trên một tập tuyến với agent lái xe, kiểm tra thiết lập trước và lưu checkpoint để có thể tiếp tục.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.