मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग15k · #11101

set-world-settings

यह क्या करती है

यह स्किल पहले से चल रहे CARLA ड्राइविंग सिमुलेटर की समय और ड्रॉइंग सेटिंग्स बदलती है। यह उन लोगों के लिए है जो सेल्फ़-ड्राइविंग या रोबोटिक्स सॉफ़्टवेयर परख रहे हैं और दोहराए जा सकने वाले रन चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप चाहते हैं कि सिमुलेटर हर चरण का इंतज़ार करे, ताकि हर रन एक जैसा चले।
  • ✓जब आपको तय फ़्रेम रेट चाहिए, या टेस्ट रन तेज़ करने के लिए ड्रॉइंग बंद करनी हो।
  • ✓जब आप जाँचना चाहते हैं कि सिमुलेटर की मौजूदा समय सेटिंग्स आपके अनुरोध से मेल खाती हैं।

Skill का लिंक

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/set-world-settings/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/set-world-settings/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप मेरे CARLA सिमुलेटर में 20 फ़्रेम प्रति सेकंड पर चरण-दर-चरण मोड चालू कर सकते हैं, और जाँच सकते हैं कि वह लागू हुआ?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट चल रहे सिमुलेटर को नई सेटिंग्स भेजता है, फिर पुष्टि के लिए उन्हें वापस पढ़ता है। ट्रैफ़िक सिस्टम अपने-आप समय मोड के अनुरूप रखा जाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

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 (`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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

create-leaderboard-route

15k

यह आपके एजेंट को CARLA Leaderboard की रूट फ़ाइल बनाने में मदद करती है, जिसमें वेपॉइंट और सीन ट्रिगर कैमरे से लगाए जाते हैं।

अन्यविविध

package-leaderboard-agent

15k

यह आपके एजेंट को CARLA Leaderboard के लिए Docker इमेज बनाने में मदद करती है, और जाँचती है कि इमेज में एजेंट सही लोड होता है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

read-leaderboard-results

15k

यह आपके एजेंट को CARLA Leaderboard की नतीजा फ़ाइल पढ़कर हर रूट का स्कोर समझाने और दूसरे नियम संस्करण में फिर से स्कोर करने में मदद करती है।

डेटाएनालिसिस और स्प्रेडशीट

run-leaderboard-evaluation

15k

यह आपके एजेंट को रूट के सेट पर CARLA Leaderboard मूल्यांकन चलाने में मदद करती है, शुरू करने से पहले सेटअप जाँचकर और चेकपॉइंट सेव करके।

कोडिंगटेस्टिंग

मिलती-जुलती skills