run-carla-server
하는 일
이 스킬은 Python 프로그램이 연결해서 제어할 수 있도록 CARLA 시뮬레이터를 시작합니다. 테스트나 실험을 위해 시뮬레이터가 실행되어야 하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓테스트 코드가 연결할 수 있도록 CARLA를 시작하고 싶을 때.
- ✓빠르게 또는 원격으로 작업하려고 창 없이 시뮬레이터를 실행하고 싶을 때.
- ✓ROS 2 인터페이스를 켠 상태로 시뮬레이터가 실행되어야 할 때.
스킬 링크
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/run-carla-server/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“다운로드한 폴더에서 CARLA 시뮬레이터를 창 없이 시작하고, 연결할 준비가 되면 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 폴더가 다운로드된 릴리스, 패키지된 빌드, 소스 체크아웃 중 무엇인지 알아낸 뒤, 맞는 프로그램을 시작합니다. 작업이 끝나면 서버를 깔끔하게 종료합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Run a CARLA server
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.
Starts a CARLA server a carla.Client can connect to. Use it to verify authored
content ([[add-carla-vehicle]]), run traffic scenarios, or feed the MCP's
live-simulator tools. It is NOT for asset editing — that is [[ue4-editor-python]]
(editor commandlet, no RPC).
Point it at a CARLA; it works out the rest
You name one path, the skill detects which of the three shapes it is and launches accordingly:
| Detected | What it found | Rendering | Needs UE4_ROOT |
|---|---|---|---|
package |
<path>/CarlaUE4.sh — a downloaded/extracted release |
real | no |
dist |
<path>/Dist/CARLA_*/LinuxNoEditor/CarlaUE4.sh — cooked in a checkout |
real | no |
editor |
<path>/Unreal/CarlaUE4/CarlaUE4.uproject — a source checkout |
none (-nullrhi) or windowed |
yes |
CARLA_TARGET=~/CARLA_0.9.16 bash scripts/run_server.sh # a download
CARLA_UE4_ROOT=~/carla bash scripts/run_server.sh # a checkout
DETECT=1 CARLA_TARGET=~/CARLA_0.9.16 bash scripts/run_server.sh # report, launch nothing
Resolution order is CARLA_TARGET → CARLA_PACKAGE_ROOT → CARLA_UE4_ROOT →
$PWD, and a path you name explicitly that holds no CARLA is an error, never
a silent fallback to a different install.
A checkout that has cooked a package can be run either way, so detection prefers
the cooked build (it renders properly and boots faster). Force the choice with
RUN_MODE:
| Knob | Effect |
|---|---|
RUN_MODE=auto |
default — cooked build if present, else editor |
RUN_MODE=package |
only a cooked build; error if there is none (PACKAGED=1 is the old spelling) |
RUN_MODE=editor |
run the source checkout through UE4Editor even if a package exists |
WINDOW=1 |
windowed instead of headless — works for both cooked builds and the editor |
The editor caveat (build-carla-ue4 L17): uncooked content has no mesh distance
fields, so the real renderer crashes headless. That is why editor mode defaults
to -nullrhi (no images at all) and WINDOW=1 disables DF generation. For camera
and lidar images, run a cooked build.
Boot time is tens of seconds, not a fixed number — measured here on Town02
headless: ~38 s cold (32 s of it LoadMap), less when warm; heavy maps and a
cold shader cache are slower. Always poll the port (S4), never sleep a guess.
RPC + physics + Traffic Manager work in all modes; pick the cheapest one that covers what you're testing. (PACKAGED mode is encoded from build docs + L17; the uncooked modes are live-verified.)
Gotchas live in
references/lessons.md— read before debugging.S#citations below point at it.
Instructions
Run Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Pick a mode and launch (backgrounded), poll the RPC port
- [ ] Step 3: Verify a client round-trips
- [ ] Step 4: Stop the server cleanly (see S3 — never pkill -f the uproject)
Prerequisites
- Roots resolve via
scripts/env.sh(both overridable):UE4_ROOT(uncooked modes launch the editor) andCARLA_UE4_ROOT(the checkout to serve). Export them, or run from inside the checkout. editormode only: UE4 built + content fetched ([[build-carla-ue4]] steps 03, 05).- A cooked build: either an extracted release (
CARLA_TARGET) orDist/CARLA_*from [[package-carla-ue4]]. Needs no UE4_ROOT and no content checkout. - Verify client: any active CARLA client env (the wheel installed by build step 04); no manager is assumed.
Quick start
cd Skills/ue4/run-carla-server
bash scripts/check_env.sh
# headless smoke-test server, backgrounded DETACHED (see the note below)
setsid nohup bash scripts/run_server.sh </dev/null >/tmp/carla_server.log 2>&1 &
until nc -z 127.0.0.1 2000; do sleep 1; done # poll, don't sleep blindly
# ... use it (spawn_test.py, MCP tools, any carla.Client) ...
pkill -x UE4Editor # clean stop (see S3!)
ROS 2 native interface (ROS2=1, opt-in)
Orthogonal to the three modes above — it composes with all of them:
ROS2=1 bash scripts/run_server.sh # fastdds, domain 0
ROS2=1 RMW=zenoh ROS_DOMAIN_ID=5 bash scripts/run_ser
자주 묻는 질문
창 없이 실행할 수 있나요?
네. 서버는 화면 창 없이 실행될 수 있습니다.
소스 체크아웃을 주면 어떻게 되나요?
Unreal 에디터를 통해 소스를 실행하며, 엔진 경로를 설정해야 합니다.
실행하기 전에 무엇을 할지 미리 볼 수 있나요?
네. 감지 모드는 찾은 항목을 보고만 하고, 아무것도 실행하지 않습니다.
상세 정보
작성자의 원본 설명
Launches a CARLA RPC server a carla.Client can connect to, working out for itself what you pointed it at — a downloaded/extracted release, a package cooked inside a checkout, or a source checkout run through the UE4 editor — headless or windowed, and shuts it down cleanly. ROS2=1 starts it with the native ROS 2 interface active (--ros2, --rmw=fastdds/cyclonedds/zenoh, --ros-domain-id). Use when the user asks to "run/start the CARLA server", "boot CARLA headless", "launch CARLA with a window", "run the CARLA I downloaded", "start CARLA with ROS2 enabled", or "serve a packaged CARLA build".
repo: carla-simulator/carla
인기도
- GitHub 스타
- 15k
- 순위
- #11127
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
create-leaderboard-route
15k카메라 화면에서 웨이포인트와 시나리오 트리거를 배치하고, 확인하고, 순서를 정해 CARLA 리더보드 경로 파일을 만들도록 에이전트를 돕습니다.
package-leaderboard-agent
15k주행 에이전트를 CARLA Leaderboard 제출용 Docker 이미지로 패키징하고, 폴더 구조를 확인하며 이미지가 에이전트를 로드하는지 테스트하도록 돕습니다.
read-leaderboard-results
15kCARLA Leaderboard 결과 파일을 읽고 경로별 점수와 위반 사항을 설명하며, 다른 규칙 버전에서 실행을 다시 채점하도록 에이전트를 돕습니다.
run-leaderboard-evaluation
15k주행 에이전트로 경로 세트에 대한 CARLA Leaderboard 평가를 실행하도록 돕습니다. 먼저 설정을 확인하고, 재개할 수 있는 체크포인트를 저장합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.