set-world-settings
Fungsinya
Skill ini mengubah pengaturan waktu dan tampilan simulator CARLA yang sudah berjalan. Untuk orang yang menguji perangkat lunak mengemudi otonom atau robotika dan membutuhkan run yang dapat diulang.
Kapan dipakai
- βSaat Anda ingin simulator menunggu setiap langkah sehingga setiap run berjalan dengan cara yang sama.
- βSaat Anda perlu mengatur laju frame tetap atau mematikan rendering untuk mempercepat run tes.
- βSaat Anda ingin memastikan pengaturan waktu simulator saat ini sesuai dengan yang Anda minta.
Link skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/set-world-settings/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda menyalakan mode langkah demi langkah di simulator CARLA saya pada 20 frame per detik dan memastikan itu berlaku?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengirim pengaturan baru ke simulator yang berjalan, lalu membacanya kembali untuk memastikan perubahan. Sistem lalu lintas otomatis disesuaikan dengan mode waktu.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Set CARLA world settings
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.
Change how a running server steps time and renders, from a client, and read
the result back. The deliverable is verified server state: after any change the
WorldSettings are re-read (apply_settings returns a frame id, not the state).
The core switch is synchronous vs asynchronous:
- async (default): the server free-runs on its own clock; the client observes.
- sync: the server advances only when the client calls
world.tick(), at a fixedfixed_delta_secondsstep β required for frame-aligned sensors and reproducible runs.
This skill couples the Traffic Manager to that switch automatically: sync
also sets the TM synchronous, async also sets it asynchronous. A mismatched
pair is a classic source of jittery or frozen traffic. Full semantics:
references/world-settings.md.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Show current settings
- [ ] Step 3: Apply sync / async / a field change (TM follows sync|async)
- [ ] Step 4: Verify the VERIFY block matches the intent
- [ ] (on exit) Restore async so the server self-ticks β never leave it stuck in sync
Commands need CARLA_HOST/CARLA_PORT/TM_PORT from scripts/env.sh (defaults
127.0.0.1:2000, TM 8000). 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. It also warns if
the server is already in sync mode (it will look "frozen" without a ticker).
Step 2: Show current settings
source scripts/env.sh
python3 scripts/world_settings.py show
Step 3: Apply
# synchronous mode at 20 fps (0.05 s step); TM set synchronous too
python3 scripts/world_settings.py sync --fps 20
# give the step directly instead of fps
python3 scripts/world_settings.py sync --delta 0.05
# sync + headless physics (no rendering)
python3 scripts/world_settings.py sync --fps 20 --no-rendering
# restore asynchronous mode; TM set asynchronous too
python3 scripts/world_settings.py async
# change individual fields without touching sync/TM (any WorldSettings field)
python3 scripts/world_settings.py set --no-rendering off
python3 scripts/world_settings.py set --fixed-delta none # back to variable step
python3 scripts/world_settings.py set --deterministic-ragdolls on --max-culling-distance 500
python3 scripts/world_settings.py set --tile-stream-distance 2000 --actor-active-distance 1500
python3 scripts/world_settings.py set --substepping on --substeps 16 --substep-dt 0.0125
Low freedom on two fragile points: fixed_delta_seconds should stay <= 0.1 for
stable physics (the script warns and auto-raises max_substeps to keep the
substep budget), and after enabling sync you must world.tick() to advance.
Step 4: Verify
Each command prints a VERIFY block: synchronous_mode, fixed_delta_seconds
(+ derived fps), no_rendering_mode, substepping fields, and the TM sync state it
set. Confirm they match the request β e.g. sync --fps 20 β synchronous_mode = True, fixed_delta_seconds = 0.05, traffic_manager sync = True.
On exit: restore async
Leaving the server in sync mode with nothing ticking makes it appear hung to the
next client. When a sync-mode task ends, run async to hand the clock back to the
server. This is the default job's clean-exit step, not an opt-in extra.
Examples
Example 1: set up a deterministic capture loop
User says: "put the sim in sync mode at 20 fps"
python3 scripts/world_settings.py sync --fps 20. VERIFY: synchronous_mode=True,
fixed_delta_seconds=0.05, traffic_manager sync=True. Then tick from your client.
Example 2: tear down cleanly
User says: "I'm done, put it back to normal"
python3 scripts/world_settings.py async. VERIFY: synchronous_mode=False,
fixed_delta_seconds=None, traffic_manager sync=False. Server self-ticks again.
Example 3: keep settings across a map load
User says: "switch to Town02 without dropping my sync settings"
sync --fps 20 here, then the load-map skill with
--keep (`res
Pertanyaan umum
Apakah ini mengubah simulator saat sedang berjalan?
Ya. Skill mengubah server yang sudah berjalan, sehingga Anda tidak perlu memulainya ulang.
Apa arti mode langkah demi langkah?
Simulator hanya maju ketika program tes Anda memintanya, sehingga setiap run dapat diulang persis sama.
Apakah juga mengendalikan lalu lintas?
Ya. Saat mode waktu berubah, traffic manager otomatis disesuaikan.
Detail
Deskripsi asli dari pembuat
Reads and changes a running CARLA server's WorldSettings via apply_settings β synchronous vs asynchronous mode, fixed_delta_seconds (fps), physics substepping, and no_rendering_mode β and keeps the Traffic Manager's sync state matched automatically. Use when the user asks to "enable/disable sync mode", "set synchronous mode", "run at a fixed fps/step", "turn off rendering", "make the sim deterministic", or "restore async mode", and as the prerequisite for keeping settings across a map load.
repo: carla-simulator/carla
Popularitas
- Bintang GitHub
- 15k
- Peringkat
- #11101
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
create-leaderboard-route
15kMembantu agent Anda membuat file rute CARLA Leaderboard dengan menempatkan waypoint dan pemicu skenario dari kamera simulator, lalu memeriksa dan mengurutkannya.
package-leaderboard-agent
15kMembantu agent Anda memaketkan agent mengemudi ke dalam image Docker untuk pengiriman CARLA Leaderboard, dengan memeriksa tata letak folder dan menguji bahwa image memuatnya.
read-leaderboard-results
15kMembantu agent Anda membaca file hasil CARLA Leaderboard, menjelaskan skor dan pelanggaran setiap rute, dan menilai ulang sebuah run dengan versi aturan lain.
run-leaderboard-evaluation
15kMembantu agent Anda menjalankan evaluator CARLA Leaderboard pada sekumpulan rute dengan agent mengemudi Anda, memeriksa pengaturan terlebih dahulu dan menyimpan checkpoint yang bisa dilanjutkan.
Skill serupa
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.