set-world-settings
하는 일
이 스킬은 이미 실행 중인 CARLA 주행 시뮬레이터의 시간과 그리기 설정을 바꿉니다. 반복 가능한 실행이 필요한 자율주행 또는 로봇 소프트웨어 테스트 담당자를 위한 스킬입니다.
사용하는 경우
- ✓시뮬레이터가 각 단계를 기다려서 매번 같은 방식으로 진행되게 하고 싶을 때.
- ✓테스트 실행을 빠르게 하려고 고정 프레임 속도를 설정하거나 그리기를 끄고 싶을 때.
- ✓시뮬레이터의 현재 시간 설정이 요청한 값과 맞는지 확인하고 싶을 때.
스킬 링크
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/set-world-settings/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“CARLA 시뮬레이터를 초당 20프레임의 단계별 모드로 바꾸고, 적용되었는지 확인해 줄 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 새 설정을 실행 중인 시뮬레이터에 보낸 뒤, 값을 다시 읽어 변경을 확인합니다. 교통 시스템은 시간 모드에 맞춰 자동으로 조정됩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
시뮬레이터가 실행 중이어도 변경되나요?
네. 이미 실행 중인 서버를 바꾸므로 재시작할 필요가 없습니다.
단계별 모드란 무엇인가요?
테스트 프로그램이 요청할 때만 시뮬레이터가 앞으로 진행하므로, 매 실행을 정확히 반복할 수 있습니다.
교통도 제어하나요?
네. 시간 모드가 바뀌면 교통 관리자도 그에 맞춰 자동으로 전환됩니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 15k
- 순위
- #11101
- 라이선스
- 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 평가를 실행하도록 돕습니다. 먼저 설정을 확인하고, 재개할 수 있는 체크포인트를 저장합니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.