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

install-scenic

하는 일

이 스킬은 교통 테스트 시나리오를 작성하는 도구인 Scenic을 설치해 CARLA 시뮬레이터와 함께 작동하게 합니다. Scenic 시나리오를 작성하거나 실행할 계획인 사람을 위한 스킬입니다.

사용하는 경우

  • ✓CARLA용 Scenic 시나리오 작성을 시작하고 싶을 때.
  • ✓이미 CARLA의 Python 클라이언트가 있고, Scenic이 그것과 함께 작동해야 할 때.
  • ✓설치한 뒤 Scenic 시나리오가 모델이나 블루프린트 오류로 실패할 때.

스킬 링크

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

AI에게 요청하는 예시

“교통 시나리오를 작성할 수 있도록 Scenic을 설치하고, 내 환경과 맞는지 확인해 줄 수 있나요?”

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

작동 방식

에이전트는 Scenic을 CARLA 클라이언트와 같은 Python 환경에 설치합니다. 두 도구가 함께 작동해야 하기 때문입니다. 필요하면 예제 시나리오를 내려받은 뒤, Scenic 명령, 클라이언트, 버전 표가 모두 맞는지 확인합니다.

기술 내용 (원본 SKILL.md)

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

Install Scenic

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.

Scenic is pure Python — there is nothing to build and pip install scenic is the whole install. Two things make it go wrong anyway, and neither reports an install error:

  1. The scenic CLI and the carla client must be in ONE interpreter. Scenic loads the client itself when a scenario names the CARLA model. Split them and the failure arrives mid-run as a model import error, not at install time.
  2. Scenic's blueprint tables are keyed on the CARLA client version. With no table for that version, every vehicle and prop category resolves empty and every scenario fails at sample time with "no blueprints recorded".

So the install order is client first, Scenic second, into the same interpreter. install_scenic.py refuses to install into an interpreter with no client unless you pass --force.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: Pick the interpreter — the one that has the CARLA client
- [ ] Step 3: See the plan for this machine
- [ ] Step 4: Install (and clone examples if they are wanted)
- [ ] Step 5: Verify, and record `SCENIC_ROOT` and `PYTHON` with `set_config`

Step 1-3: What is here, and what to do about it

PYTHON=/path/to/venv/bin/python bash scripts/check_env.sh

python3 scripts/install_scenic.py detect     # interpreter, Scenic, client, tables
python3 scripts/install_scenic.py plan       # the exact commands, and why

Every subcommand takes --python to act on another interpreter:

python3 scripts/install_scenic.py --python ~/.venvs/carla/bin/python detect

detect is the one to read first. It prints which CARLA versions the installed Scenic has blueprint tables for, and flags a CLI that belongs to a different environment than the interpreter — the pyenv-shim trap, which otherwise surfaces much later as a confusing model import failure.

Step 4: Install

# into the interpreter that has the client
python3 scripts/install_scenic.py install

# a specific version
python3 scripts/install_scenic.py install --version 3.1.1

# also clone upstream for the example scenarios and map assets
python3 scripts/install_scenic.py install --clone ~/Scenic

The wheel ships world models only — no example scenarios and no map assets. --clone is how you get examples/ and assets/maps/CARLA/*.xodr. Skip it if you are running a ScenarioRunner checkout's own scenarios, which carry their own copies under srunner/scenic/.

install runs verify when it finishes.

Step 5: Verify and export

python3 scripts/install_scenic.py verify

Checks the five things that actually matter, and exits non-zero on any:

Check Why it matters
scenic importable the install worked
CLI belongs to this interpreter otherwise a run uses a different Scenic
carla client present Scenic loads it for the CARLA model
carla is the extension, not a directory a directory named carla on sys.path imports as an empty namespace package
blueprint table for this client version otherwise every category is empty
scenic.simulators.carla.simulator imports the real binding between Scenic and the client

Then export the root, which is what the scenic skill group is gated on:

export SCENIC_ROOT=~/Scenic           # a checkout, for examples
# or, for a pip-only install, the installed package directory:
export SCENIC_ROOT=$(python3 -c 'import os,scenic;print(os.path.dirname(scenic.__file__))')

Running and authoring scenarios is out of scope here — see [[run-scenic-scenario]] and [[create-scenic-scenario]].

Recording the path

An export lasts until the shell exits. Persist SCENIC_ROOT and PYTHON instead, so the next session — and list_skills — still knows where this went:

set_config({"SCENIC_ROOT": "<the checkout or package dir>",
            "PYTHON": "<the interpreter Scenic went into>"})

Without it the group this just enabled keeps reporting available: false, and the next skill re-detects from scratch. CARLA_ROOT is the only CARLA path to record: set_config derives the engine-specific variable itself.

Examples

**Example 1: "install Sce

자주 묻는 질문

Scenic과 CARLA 클라이언트는 왜 같은 Python을 써야 하나요?

Scenic이 CARLA 클라이언트를 직접 불러오므로, 설치가 따로 되어 있으면 실행 도중 오류가 생깁니다.

예제가 꼭 필요한가요?

아니요. 다만 패키지에 들어 있지 않은 예제 시나리오는 스킬이 내려받을 수 있습니다.

버전이 맞지 않으면 왜 문제가 되나요?

Scenic은 클라이언트 버전에 따라 차량 목록을 만들므로, 버전이 다르면 시나리오에서 쓸 차량이 없을 수 있습니다.

상세 정보

작성자의 원본 설명

Installs Scenic, the probabilistic scenario description language, for the CARLA in use — pip installing it into the same interpreter that holds the CARLA client, optionally cloning the upstream repo for the example scenarios the wheel does not ship, and verifying that the `scenic` CLI, the client and Scenic's version-keyed blueprint table all agree. Use when the user asks to "install Scenic", "set up Scenic", "download Scenic", "pip install scenic", wants to run `.scenic` files, or has a Scenic whose model import or blueprint lookup fails.

repo: carla-simulator/carla

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬