본문으로 건너뛰기
Skillpedia
기타15k · #11099

replay-recording

하는 일

이 스킬은 시뮬레이터에서 녹화를 재생해 실행을 다시 볼 수 있게 합니다. 기록된 시나리오를 검토하거나 분석하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓전에 만든 녹화를 재생하고 싶을 때.
  • ✓재생을 느린 화면이나 더 빠른 속도로 보고 싶을 때.
  • ✓재생 중에 특정 차량을 따라가고 싶을 때.

스킬 링크

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/replay-recording/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“마지막 녹화를 절반 속도로 재생하고, 12번 차량을 따라가 주세요.”

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

작동 방식

에이전트는 재생을 방해할 수 있는 로컬 홀더를 멈추고, 월드를 비동기 모드로 바꾸고, 장면을 비운 뒤 서버에서 재생을 시작합니다. 그다음 요약을 출력하고 선택한 액터를 따라갑니다.

기술 내용 (원본 SKILL.md)

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

Replay a CARLA recording

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.

Play back a .log produced by record-simulation. The server re-creates the recorded scene; play prints its summary. Confirm the replay by watching the followed actor or by inspecting the same log with query-recording.

The scene, the holders and the clock

play puts the world into the state a replay needs, in this order:

  1. Stops local spawn holders. spawn-vehicles / spawn-walkers / a held create-sensor stay resident by design, and each removes its own actors and restores the clock in a finally, so they are sent SIGINT rather than killed. --keep-scene skips all of this.
  2. Puts the world back to asynchronous. The replayer runs server-side, so no client has to tick anything. If a client still owned a synchronous clock the replay would advance only as fast as that client ticked; worse, with the holder gone and the world left synchronous, nothing ticks at all and the replay appears to do nothing.
  3. Clears the scene. A replay RECREATES the actors in the log, so it adds to the world rather than replacing it: replaying a 50-car log into a live 50-car scene gives 100 vehicles driving through each other. Traffic signs and the spectator survive — they belong to the map, not the scene.

The corollary for recording: the recorder is free to be the synchronous client. Capturing under a fixed timestep is what makes a log reproducible, and it costs the replay nothing, because playback is driven by the server.

Holder detection reads /proc argv rather than matching a command-line substring — a shell whose own command line merely quotes vehicles.py spawn --hold matches a substring search and gets signalled, which kills the caller by accident.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: (optional) inspect the log first (query-recording) to pick times/ids
- [ ] Step 3: Play — whole log, or a window; set speed / follow as asked
- [ ] Step 4: Stop when done (decide keep-actors)

Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.

Step 1: Check prerequisites

bash scripts/check_env.sh

Step 3: Play

source scripts/env.sh

# whole log at real time
python3 scripts/replay.py play --file /tmp/run.log

# a 10s window from t=5s, following actor 87, at 2x
python3 scripts/replay.py play --file /tmp/run.log --start 5 --duration 10 --follow 87 --time-factor 2.0

# regenerate sensors and restore the recorded weather
python3 scripts/replay.py play --file /tmp/run.log --replay-sensors --replay-weather

# change speed of the running replay, e.g. slow motion
python3 scripts/replay.py speed --factor 0.25

--start is seconds from the beginning (negative counts from the end), --duration 0 plays to the end, --follow 0 means don't move the spectator.

Step 4: Stop

python3 scripts/replay.py stop                 # remove replayed actors
python3 scripts/replay.py stop --keep-actors   # leave them in the world

Examples

Example 1: watch it back

User says: "replay that run"

play --file /tmp/run.log. Server summary prints; watch in the CARLA window.

Example 2: slow-mo on one car

User says: "replay following car 87 at quarter speed"

play --file /tmp/run.log --follow 87 --time-factor 0.25.

Example 3: regenerate camera data from a recording

User says: "I need camera frames from that recording"

Re-attach the sensors you want (create-sensor / read-sensor skills), then play --file /tmp/run.log --replay-sensors. The recorder stored no images; they are regenerated now.

Troubleshooting

Problem: play prints a file-not-found / parse error Cause: the .log is not on the server at that path. Solution: use the server-side path; a relative name resolves under CarlaUE4/Saved/. Verify with query-recording info first.

Problem: replay shows nothing / wrong map Cause: the log was recorded on a different map than the one loaded. Solution: replay loads the recorded map automatically; for OpenDRIVE-only logs use --map-override <Name>.

Problem: no sensor images during replay Cause:

자주 묻는 질문

재생할 때 현재 액터는 유지되나요?

기본적으로는 재생이 기록된 액터를 다시 만들기 때문에 장면을 먼저 비웁니다. 장면 유지 옵션을 사용하면 이 단계를 건너뜁니다.

다른 지도에서 재생할 수 있나요?

네. 이 스킬은 녹화를 다른 지도에 재생할 수 있습니다.

재생하려면 클라이언트가 틱을 보내야 하나요?

아니요. 리플레이어는 서버에서 실행되므로, 어떤 클라이언트도 시계를 틱으로 움직일 필요가 없습니다.

상세 정보

작성자의 원본 설명

Replays a CARLA .log recorded by the recorder — the whole run or a time window, at any speed, following a chosen actor, optionally regenerating sensors and restoring weather. Use when the user asks to "replay the recording", "play back the run", "watch it again in slow motion / at 2x", "follow vehicle N during replay", or "replay onto a different map".

repo: carla-simulator/carla

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬