본문으로 건너뛰기
cccskills
무료GitHub에 공개

set-world-settings

Read and change a running CARLA server’s timing, physics substeps, and rendering settings. Switch between client-controlled steps and automatic progression, keep Traffic Manager synchronization aligned, and read back the settings to verify each change.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • Setting a fixed simulation rate for sensor capture
  • Keeping Traffic Manager aligned with synchronous mode
  • Disabling rendering or adjusting physics substeps
  • Restoring automatic simulation progression after a task

포함된 파일(5)

  • SKILL.md6.5 KB
  • references/world-settings.md4.6 KB
  • scripts/check_env.sh2.4 KB
  • scripts/env.sh1.2 KB
  • scripts/world_settings.py8.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Set CARLA world settings

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.

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 fixed fixed_delta_seconds step — 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 (reset_settings=False) so the settings survive the load; tick after.

Troubleshooting

Problem: traffic is jittery / vehicles teleport in sync mode Cause: world is sync but the Traffic Manager is async (or vice-versa). Solution: use sync/async here — they set both. Manually, tm.set_synchronous_mode(True).

Problem: the server looks frozen / clients time out after enabling sync Cause: nothing is ticking it. In sync mode the world advances only on world.tick(). Solution: tick from your client, or run async to restore self-ticking.

Problem: physics unstable / warning about the substep budget Cause: fixed_delta_seconds exceeds max_substep_delta_time * max_substeps. Solution: keep the step <= 0.1; the script raises max_substeps to fit and warns.

Problem: sim not fully reproducible even in sync mode Cause: the Traffic Manager's random seed is unset. Solution: set a TM seed (owned by the traffic-manager skill) in addition to sync.

Outputs

Server state, not a file: the running world now steps synchronously or asynchronously as asked, with the TM matched. The VERIFY block is the record.

Field-by-field reference (every WorldSettings attribute, the substep math, the sync/TM/determinism rules) is in references/world-settings.md.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Add a message type to CARLA's native ROS 2 interface. Create its C++ data structure, serialization code for transmission, type identity hash, registration, and tests, with Docker-based hash calculation and build checks.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Adding a standard ROS 2 message type missing from CARLA
  • Defining a custom carla_msgs message
  • Investigating type-hash warnings
carla-simulator/carla1.5만2026년 10월 20일 업데이트

Extend CARLA’s native ROS 2 interface to publish sensor data or receive vehicle commands. Covers topic implementation, registration, data connections, and verification, plus adding middleware, the communication layer used to exchange messages.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Publish obstacle sensor data to ROS 2
  • Add a topic for vehicle speed commands
  • Integrate another communication middleware
carla-simulator/carla1.5만2026년 10월 20일 업데이트

Summarize ScenarioRunner results to see which scenarios passed and which checks failed. Compare runs before and after changes, or analyze recorded driving to produce measurements and plots of vehicle distance and deviation from the lane center.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking scenario pass and fail results
  • Comparing results before and after controller changes
  • Plotting vehicle distances from a recorded run
carla-simulator/carla1.5만2026년 10월 20일 업데이트

Checks a local CARLA checkout for missing API documentation, outdated references, broken links, and pages absent from navigation. Produces a grouped Markdown report without building the project or running the simulator.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing documentation before a release
  • Finding missing or outdated API references
  • Checking broken links and navigation gaps
carla-simulator/carla1.5만2026년 10월 20일 업데이트

Read and display CARLA object bounding boxes, then project them onto a camera image as 2D rectangles. Export an annotated PNG and box coordinates in JSON for object detection annotation work.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Adding vehicle boxes to a camera image
  • Exporting box coordinates for detection annotations
  • Checking vehicle dimensions
carla-simulator/carla1.5만2026년 10월 20일 업데이트

Builds CARLA's ue4-dev branch on Linux, producing the Unreal Engine 4.26 editor, server modules, and an installed Python client package. Fetches required content, optionally compiles native ROS 2 support, and verifies the build against a source-built server.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Building CARLA ue4-dev from source
  • Compiling CARLA with native ROS 2 support
  • Building the Python client for an existing environment
carla-simulator/carla1.5만2026년 10월 20일 업데이트

carla-simulator의 스킬 모두 보기

이 스킬의 문제 신고