본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)15k · #11119

install-scenario-runner

하는 일

이 스킬은 CARLA에서 주행 테스트 시나리오를 실행하는 공식 도구인 ScenarioRunner를 설치합니다. 테스트를 실행하고 싶지만 어떤 버전을 설치해야 할지 확실하지 않은 사람을 위한 스킬입니다.

사용하는 경우

  • ✓CARLA에서 표준 주행 테스트 시나리오를 실행하고 싶을 때.
  • ✓시나리오가 지원되지 않는다는 오류가 보이고, 버전이 잘못되었다고 의심될 때.
  • ✓Leaderboard를 실행하기 위해 맞는 버전을 준비하는 중일 때.

스킬 링크

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/setup/install-scenario-runner/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“내 CARLA 버전에 맞는 ScenarioRunner를 설치해서 주행 테스트 시나리오를 실행할 수 있게 해 주세요.”

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

작동 방식

에이전트는 어떤 CARLA 버전을 쓰는지 확인한 뒤, 정해진 목록에서 맞는 ScenarioRunner 브랜치를 골라 내려받고 필요한 패키지를 설치합니다. 그다음 다른 도구가 찾을 수 있도록 폴더 위치를 저장합니다.

기술 내용 (원본 SKILL.md)

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

Install ScenarioRunner

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.

ScenarioRunner is pure Python — there is nothing to build. Installing it is three decisions and one pip install:

  1. which branch matches your CARLA (this is the whole problem),
  2. where the checkout lives (SCENARIO_RUNNER_ROOT),
  3. 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
자주 묻는 질문

버전이 왜 그렇게 중요한가요?

시나리오 목록, 도시 이름, 차량 모델이 버전마다 바뀌므로, 잘못된 버전을 쓰면 실패가 생깁니다.

ScenarioRunner는 빌드해야 하나요?

아니요. Python 전용이므로, 설치는 내려받고 필요한 패키지를 설치하는 것입니다.

설치 후에 설정을 확인할 수 있나요?

네. 검사 스크립트가 경로와 설정이 작동하는지 확인합니다.

상세 정보

작성자의 원본 설명

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

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬