run-carla-server
यह क्या करती है
यह स्किल CARLA सिमुलेटर शुरू करती है, ताकि आपके Python प्रोग्राम उससे जुड़कर उसे नियंत्रित कर सकें। यह उन सभी के लिए है जिन्हें टेस्ट या प्रयोग के लिए सिमुलेटर चालू चाहिए।
कब इस्तेमाल करें
- ✓जब आप CARLA शुरू करना चाहते हैं ताकि आपका टेस्ट कोड उससे जुड़ सके।
- ✓जब आप बिना विंडो के सिमुलेटर चलाना चाहते हैं, तेज़ या दूर से काम के लिए।
- ✓जब आपको ROS 2 इंटरफ़ेस चालू करके सिमुलेटर चलाना है।
Skill का लिंक
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/run-carla-server/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरा CARLA सिमुलेटर उस फ़ोल्डर से बिना विंडो के शुरू कर सकते हैं जिसमें मैंने डाउनलोड किया, और बता सकते हैं कि वह कब जुड़ने के लिए तैयार है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पता लगाता है कि आपके फ़ोल्डर में डाउनलोड किया रिलीज़, पैकेज्ड बिल्ड या सोर्स चेकआउट है, फिर सही प्रोग्राम शुरू करता है। काम खत्म होने पर वह सर्वर को ठीक से बंद करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Run a CARLA server
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.
Starts a CARLA server a carla.Client can connect to. Use it to verify authored
content ([[add-carla-vehicle]]), run traffic scenarios, or feed the MCP's
live-simulator tools. It is NOT for asset editing — that is [[ue4-editor-python]]
(editor commandlet, no RPC).
Point it at a CARLA; it works out the rest
You name one path, the skill detects which of the three shapes it is and launches accordingly:
| Detected | What it found | Rendering | Needs UE4_ROOT |
|---|---|---|---|
package |
<path>/CarlaUE4.sh — a downloaded/extracted release |
real | no |
dist |
<path>/Dist/CARLA_*/LinuxNoEditor/CarlaUE4.sh — cooked in a checkout |
real | no |
editor |
<path>/Unreal/CarlaUE4/CarlaUE4.uproject — a source checkout |
none (-nullrhi) or windowed |
yes |
CARLA_TARGET=~/CARLA_0.9.16 bash scripts/run_server.sh # a download
CARLA_UE4_ROOT=~/carla bash scripts/run_server.sh # a checkout
DETECT=1 CARLA_TARGET=~/CARLA_0.9.16 bash scripts/run_server.sh # report, launch nothing
Resolution order is CARLA_TARGET → CARLA_PACKAGE_ROOT → CARLA_UE4_ROOT →
$PWD, and a path you name explicitly that holds no CARLA is an error, never
a silent fallback to a different install.
A checkout that has cooked a package can be run either way, so detection prefers
the cooked build (it renders properly and boots faster). Force the choice with
RUN_MODE:
| Knob | Effect |
|---|---|
RUN_MODE=auto |
default — cooked build if present, else editor |
RUN_MODE=package |
only a cooked build; error if there is none (PACKAGED=1 is the old spelling) |
RUN_MODE=editor |
run the source checkout through UE4Editor even if a package exists |
WINDOW=1 |
windowed instead of headless — works for both cooked builds and the editor |
The editor caveat (build-carla-ue4 L17): uncooked content has no mesh distance
fields, so the real renderer crashes headless. That is why editor mode defaults
to -nullrhi (no images at all) and WINDOW=1 disables DF generation. For camera
and lidar images, run a cooked build.
Boot time is tens of seconds, not a fixed number — measured here on Town02
headless: ~38 s cold (32 s of it LoadMap), less when warm; heavy maps and a
cold shader cache are slower. Always poll the port (S4), never sleep a guess.
RPC + physics + Traffic Manager work in all modes; pick the cheapest one that covers what you're testing. (PACKAGED mode is encoded from build docs + L17; the uncooked modes are live-verified.)
Gotchas live in
references/lessons.md— read before debugging.S#citations below point at it.
Instructions
Run Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Pick a mode and launch (backgrounded), poll the RPC port
- [ ] Step 3: Verify a client round-trips
- [ ] Step 4: Stop the server cleanly (see S3 — never pkill -f the uproject)
Prerequisites
- Roots resolve via
scripts/env.sh(both overridable):UE4_ROOT(uncooked modes launch the editor) andCARLA_UE4_ROOT(the checkout to serve). Export them, or run from inside the checkout. editormode only: UE4 built + content fetched ([[build-carla-ue4]] steps 03, 05).- A cooked build: either an extracted release (
CARLA_TARGET) orDist/CARLA_*from [[package-carla-ue4]]. Needs no UE4_ROOT and no content checkout. - Verify client: any active CARLA client env (the wheel installed by build step 04); no manager is assumed.
Quick start
cd Skills/ue4/run-carla-server
bash scripts/check_env.sh
# headless smoke-test server, backgrounded DETACHED (see the note below)
setsid nohup bash scripts/run_server.sh </dev/null >/tmp/carla_server.log 2>&1 &
until nc -z 127.0.0.1 2000; do sleep 1; done # poll, don't sleep blindly
# ... use it (spawn_test.py, MCP tools, any carla.Client) ...
pkill -x UE4Editor # clean stop (see S3!)
ROS 2 native interface (ROS2=1, opt-in)
Orthogonal to the three modes above — it composes with all of them:
ROS2=1 bash scripts/run_server.sh # fastdds, domain 0
ROS2=1 RMW=zenoh ROS_DOMAIN_ID=5 bash scripts/run_ser
अक्सर पूछे जाने वाले सवाल
क्या यह बिना विंडो के चल सकता है?
हाँ। सर्वर बिना स्क्रीन पर विंडो के चल सकता है।
अगर मैं सोर्स चेकआउट दूँ तो?
वह सोर्स को Unreal एडिटर के ज़रिए चलाता है, और इसके लिए इंजन का पथ सेट होना चाहिए।
क्या मैं सिर्फ़ देख सकता हूँ कि यह क्या करेगा?
हाँ। एक डिटेक्ट मोड है जो बताता है कि उसे क्या मिला, और कुछ लॉन्च नहीं करता।
जानकारी
लेखक का मूल विवरण
Launches a CARLA RPC server a carla.Client can connect to, working out for itself what you pointed it at — a downloaded/extracted release, a package cooked inside a checkout, or a source checkout run through the UE4 editor — headless or windowed, and shuts it down cleanly. ROS2=1 starts it with the native ROS 2 interface active (--ros2, --rmw=fastdds/cyclonedds/zenoh, --ros-domain-id). Use when the user asks to "run/start the CARLA server", "boot CARLA headless", "launch CARLA with a window", "run the CARLA I downloaded", "start CARLA with ROS2 enabled", or "serve a packaged CARLA build".
repo: carla-simulator/carla
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11127
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-leaderboard-route
15kयह आपके एजेंट को CARLA Leaderboard की रूट फ़ाइल बनाने में मदद करती है, जिसमें वेपॉइंट और सीन ट्रिगर कैमरे से लगाए जाते हैं।
package-leaderboard-agent
15kयह आपके एजेंट को CARLA Leaderboard के लिए Docker इमेज बनाने में मदद करती है, और जाँचती है कि इमेज में एजेंट सही लोड होता है।
read-leaderboard-results
15kयह आपके एजेंट को CARLA Leaderboard की नतीजा फ़ाइल पढ़कर हर रूट का स्कोर समझाने और दूसरे नियम संस्करण में फिर से स्कोर करने में मदद करती है।
run-leaderboard-evaluation
15kयह आपके एजेंट को रूट के सेट पर CARLA Leaderboard मूल्यांकन चलाने में मदद करती है, शुरू करने से पहले सेटअप जाँचकर और चेकपॉइंट सेव करके।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।