install-scenario-runner
Fungsinya
Skill ini memasang ScenarioRunner, alat resmi untuk menjalankan skenario tes mengemudi di CARLA. Untuk orang yang ingin menjalankan tes tetapi tidak yakin versi mana yang harus dipasang.
Kapan dipakai
- βSaat Anda ingin menjalankan skenario tes mengemudi standar di CARLA.
- βSaat Anda melihat error yang menyatakan skenario tidak didukung dan Anda mencurigai versinya salah.
- βSaat Anda bersiap menjalankan Leaderboard dan membutuhkan versi yang cocok.
Link skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/setup/install-scenario-runner/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 memasang ScenarioRunner untuk versi CARLA saya agar saya bisa menjalankan skenario tes mengemudi?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memeriksa versi CARLA yang Anda miliki, memilih cabang ScenarioRunner yang cocok dari daftar tetap, mengunduhnya, dan memasang kebutuhannya. Lalu agent menyimpan lokasi folder agar alat lain dapat menemukannya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Install ScenarioRunner
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.
ScenarioRunner is pure Python β there is nothing to build. Installing it is
three decisions and one pip install:
- which branch matches your CARLA (this is the whole problem),
- where the checkout lives (
SCENARIO_RUNNER_ROOT), - what goes on
PYTHONPATH.
Get the branch wrong and the failure is not a version warning β it is
Scenario 'X' not supported, a missing map, or a scenario that spawns nothing,
because the scenario classes, the town names and the vehicle blueprints all
changed between branches.
Instructions
Progress:
- [ ] Step 1: Identify the CARLA version in play
- [ ] Step 2: Pick the branch from the matrix
- [ ] Step 3: Clone or check out that branch
- [ ] Step 4: Install requirements into the interpreter that has `carla`
- [ ] Step 5: Record `SCENARIO_RUNNER_ROOT` with `set_config`, then verify (bash scripts/check_env.sh)
Step 1-2: Which branch
python3 scripts/install_scenario_runner.py detect # what CARLA is here?
python3 scripts/install_scenario_runner.py plan # -> branch + exact commands
detect reads the installed carla client, the running server if there is one,
and any SCENARIO_RUNNER_ROOT already present. plan turns that into a branch
recommendation and prints the commands rather than running them.
| Your CARLA | ScenarioRunner branch | Notes |
|---|---|---|
| 0.9.14 / 0.9.15 / 0.9.16 (UE4) | master |
the live branch; 0.9.16 released Sep 2025 |
| 1.x, or 0.10.0 from a UE 5.8 tree (UE 5.8, the 1.0 line) | ue58-dev |
Town01_Opt to Town05_Opt and Town10HD_Opt; --list shows 96 configs; UE5 map-name and blueprint-name translation; route-mode fixes; srunner/scenic/ included |
| 0.10.0 release (UE 5.5) | ue5-master |
Town10HD_Opt only; 11 of 101 configs ported; forked Jun 2024 |
| leaderboard build (0.9.14+large maps) | leaderboard-2.1 or leaderboard-2.0 |
byte-identical branches β same commit |
| 0.9.10.1 | leaderboard-1.0 |
Leaderboard 1.0 only |
| 0.9.13 and older | the matching 0.9.x tag/branch |
frozen, unsupported |
0.10.0 is ambiguous. A UE 5.8 (ue58-dev) server currently reports 0.10.0,
the same string as the UE 5.5 0.10.0 release, so the version alone cannot tell
ue5-master from ue58-dev until 1.0 is tagged. plan resolves it like this:
version >= 1.0 gives ue58-dev; 0.10.x gives ue58-dev when CARLA_UE58_ROOT
is set (or CARLA_ROOT points at that same tree), otherwise ue5-master with a
hint to pass --branch ue58-dev if the server is UE 5.8.
The minimum enforced in code is MIN_CARLA_VERSION = '0.9.14' on master, and
it is a hard ImportError at startup, not a warning. 0.10.0 passes that check
because version comparison is numeric per component (0.10 > 0.9), and 1.x
passes it on the major alone.
Step 3: Clone
# UE4 / CARLA 0.9.16
git clone -b master --single-branch https://github.com/carla-simulator/scenario_runner.git
# CARLA on UE 5.8 (ue58-dev tree, the 1.0 line)
git clone -b ue58-dev --single-branch https://github.com/carla-simulator/scenario_runner.git
# CARLA 0.10.0 release on UE 5.5
git clone -b ue5-master --single-branch https://github.com/carla-simulator/scenario_runner.git
# driving the Leaderboard (pick the branch that matches your leaderboard checkout)
git clone -b leaderboard-2.1 --single-branch https://github.com/carla-simulator/scenario_runner.git
--single-branch is worth it: the repo carries the OpenSCENARIO 2.0 test corpus
and, on ue5-master and ue58-dev, the Scenic assets under srunner/scenic/.
Already cloned? Switch instead of re-cloning:
python3 scripts/install_scenario_runner.py install --root ~/scenario_runner --branch ue58-dev
Step 4: Requirements
# into the SAME interpreter that imports carla β not a fresh venv unless carla is there too
python3 -m pip install -r ~/scenario_runner/requirements.txt
py_trees==0.8.3 is pinned (also on ue58-dev) and not optional: the behaviour-tree API changed
in 2.x and scenarios fail with attribute errors. numpy must stay <2 for the
same reason the CARLA client does β the bindings are built against the 1.x C API.
Step 5: Environment
export SCENARIO_RUNNER_ROOT=~/sc
Pertanyaan umum
Mengapa versi begitu penting?
Daftar skenario, nama kota, dan model mobil berubah antar versi, sehingga versi yang salah menyebabkan kegagalan.
Apakah ScenarioRunner perlu dibangun?
Tidak. Ia hanya Python, sehingga memasangnya berarti mengunduh dan memasang kebutuhannya.
Bisakah memeriksa pengaturan saya setelahnya?
Bisa. Skrip pemeriksaan memastikan path dan pengaturan berfungsi.
Detail
Deskripsi asli dari pembuat
Installs CARLA's ScenarioRunner (the official scenario engine) and picks the branch that matches the CARLA in use: master for 0.9.14-0.9.16 (UE4), ue58-dev for CARLA on Unreal Engine 5.8 (the 1.0 line), ue5-master for the 0.10.0 release on UE 5.5, leaderboard-1.0/2.0/2.1 when driving the Leaderboard. Clones or checks out the branch, installs requirements, wires PYTHONPATH (including the `agents` package the carla wheel does not ship), and verifies the import. Use when the user asks to "install scenario runner", "set up SR", "run CARLA scenarios", "use OpenSCENARIO", or has a scenario_runner th
repo: carla-simulator/carla
Popularitas
- Bintang GitHub
- 15k
- Peringkat
- #11119
- 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
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.