record-simulation
하는 일
이 스킬은 시뮬레이션의 상태를 파일에 저장해 나중에 재생할 수 있게 합니다. 실행을 기록해 연구하거나 반복하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓나중에 재생하기 위해 시뮬레이션 실행을 기록하고 싶을 때.
- ✓시나리오를 담아 두었다가 나중에 분석하고 싶을 때.
- ✓녹화기를 시작하거나 멈추고 파일이 유효한지 확인하고 싶을 때.
스킬 링크
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/record-simulation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 시뮬레이션 실행을 로그 파일로 기록하고, 멈출 때 프레임이 들어 있는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 녹화기를 시작하고 시뮬레이션을 실행한 뒤, 녹화기를 멈추고 서버에서 로그를 다시 읽어 프레임이 기록되었는지 확인합니다. 로그에는 액터 위치, 신호등 상태, 애니메이션이 기록되지만 센서 이미지는 기록되지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Record a CARLA simulation
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.
Capture a running simulation to a .log you can replay later (replay-recording)
or interrogate (query-recording). The deliverable
is a verified log: after stopping, the file is parsed back from the server to
confirm it holds frames — start/stop alone confirm nothing.
What it captures: world state per frame — actor create/destroy, transforms,
traffic-light states, vehicle wheel/animation and walker bones. With --extra
(additional_data) also velocities, accelerations and control inputs. Not
captured: sensor output (camera/lidar) — those re-simulate only on replay.
The .log is written on the server's filesystem (see the reference for
exactly where).
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Start recording (or use `clip` for a fixed duration)
- [ ] Step 3: Let the simulation run (traffic, scenario, manual drive, ...)
- [ ] Step 4: Stop, then verify the log parses back with frames
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh. Prefix with
source scripts/env.sh or export them.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 2-4: Record
source scripts/env.sh
# manual bracketing: start, do things, stop
python3 scripts/record.py start --file /tmp/run.log
# ... run traffic / drive / trigger a scenario ...
python3 scripts/record.py stop
# or record a fixed-length clip and auto-verify
python3 scripts/record.py clip --file /tmp/run.log --seconds 20
# capture velocities/controls too (larger file)
python3 scripts/record.py start --file /tmp/run.log --extra
Use an absolute --file so you know where the log lands (a relative name
goes under the server's CarlaUE4/Saved/).
Verify
clip verifies automatically; after a manual stop, confirm with the
query-recording skill:
python3 ../query-recording/scripts/query.py info --file /tmp/run.log
A valid log shows a frame count and a duration. Zero frames means nothing ran between start and stop, or the path was wrong.
Examples
Example 1: capture a traffic run
User says: "record 30 seconds of traffic"
Start traffic (traffic-manager skill), then clip --file /tmp/traffic.log --seconds 30. VERIFY shows frames + duration ~30s.
Example 2: record around a manual action
User says: "record while I run my scenario"
start --file /tmp/scenario.log, run the scenario, stop, then query info.
Troubleshooting
Problem: log has 0 frames / query says empty Cause: nothing simulated between start and stop, or a bad server-side path. Solution: ensure actors are moving; use an absolute writable server path.
Problem: replayed run has no camera images
Cause: the recorder never stores sensor data.
Solution: expected — re-attach sensors and replay with --replay-sensors
(replay-recording skill) to regenerate them.
Problem: file not found where I expected Cause: relative name resolves on the server, under CarlaUE4/Saved/. Solution: pass an absolute path, and remember it is on the server machine.
Outputs
- A
.logrecording on the server (path from--file), verified to contain frames. Feed it toreplay-recordingorquery-recording.
Detail (capture contents, file location, size) in references/recorder.md.
자주 묻는 질문
카메라 이미지도 기록되나요?
아니요. 센서 출력은 저장되지 않으며, 로그를 재생할 때 다시 시뮬레이션됩니다.
로그는 어디에 저장되나요?
시뮬레이터 서버의 파일 시스템에 저장되며, 꼭 내 컴퓨터에 저장되는 것은 아닙니다.
속도와 제어 입력도 기록할 수 있나요?
네. 추가 데이터 옵션을 사용하면 속도, 가속도, 제어 입력이 함께 기록됩니다.
상세 정보
작성자의 원본 설명
Records a running CARLA simulation to a .log file via start_recorder/stop_recorder for later deterministic replay — capturing actor spawns, transforms, traffic-light states and animations (optionally velocities/controls). Use when the user asks to "record the simulation", "start/stop the recorder", "capture this run", or "save a scenario to replay later". Does NOT capture sensor images.
repo: carla-simulator/carla
인기도
- GitHub 스타
- 15k
- 순위
- #11098
- 라이선스
- 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 평가를 실행하도록 돕습니다. 먼저 설정을 확인하고, 재개할 수 있는 체크포인트를 저장합니다.