package-leaderboard-agent
यह क्या करती है
यह स्किल वह Docker इमेज बनाती है जिसका CARLA Leaderboard मूल्यांकन करता है। यह उन डेवलपर्स के लिए है जो सबमिशन के लिए अपना स्वायत्त ड्राइविंग एजेंट तैयार करते हैं।
कब इस्तेमाल करें
- ✓जब आप Leaderboard सबमिशन के लिए Docker इमेज बनाना चाहते हैं।
- ✓जब सबमिट करने से पहले आपको अपने एजेंट के फ़ोल्डर और एनवायरनमेंट सेटअप की जाँच करनी हो।
- ✓जब आप सबमिट करने से पहले पक्का करना चाहते हैं कि इमेज आपका एजेंट लोड करती है।
Skill का लिंक
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/package-leaderboard-agent/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे एजेंट के लिए Leaderboard Docker इमेज बनाइए, और सबमिट करने से पहले जाँचिए कि वह लोड होती है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट चार ज़रूरी फ़ोल्डरों और egg फ़ाइल के ढाँचे की जाँच करता है, जिसकी बिल्ड को ज़रूरत होती है। फिर वह बिल्ड स्क्रिप्ट चलाता है और इमेज के अंदर जाँचता है कि स्टैक इम्पोर्ट होता है और एजेंट लोड होता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Package an agent for submission
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.
The leaderboard evaluates a docker image, not a repository. make_docker.sh
assembles one from four trees plus your code:
$CARLA_ROOT/PythonAPI -> /workspace/CARLA/PythonAPI
$SCENARIO_RUNNER_ROOT -> /workspace/scenario_runner
$LEADERBOARD_ROOT -> /workspace/leaderboard
$TEAM_CODE_ROOT -> /workspace/team_code
and bakes PYTHONPATH, TEAM_AGENT, CHALLENGE_TRACK_CODENAME and the routes into
the image.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh) — the four roots and the egg layout
- [ ] Step 2: Confirm the agent runs locally first (run-leaderboard-evaluation)
- [ ] Step 3: Build the image
- [ ] Step 4: Verify the image imports the stack and loads the agent
- [ ] Step 5: Submit
Step 1: The egg trap
make_docker.sh does this unconditionally:
cp -fr ${CARLA_ROOT}/PythonAPI .lbtmp
mv .lbtmp/PythonAPI/carla/dist/carla*-py2*.egg .lbtmp/PythonAPI/carla/dist/carla-leaderboard-py2.7.egg
mv .lbtmp/PythonAPI/carla/dist/carla*-py3*.egg .lbtmp/PythonAPI/carla/dist/carla-leaderboard-py3x.egg
so it fails if $CARLA_ROOT/PythonAPI/carla/dist/ has no .egg files — which is
the case for a pip/wheel-only install. check_env.sh reports this before the build
wastes time. Get a CARLA tree that ships eggs (a release tarball or a source build),
or add the wheel to the image yourself.
The py2.7 rename is legacy; a modern release ships only a py3 egg, so the py2 mv
fails harmlessly and the script continues because it is not run under set -e.
Step 3: Build
source scripts/env.sh
export TEAM_CODE_ROOT=~/team_code
bash scripts/package_agent.sh build # -> leaderboard-user
bash scripts/package_agent.sh build --ros noetic # -> leaderboard-user:ros-noetic
The wrapper checks the roots, warns about the egg layout and about copying a huge
TEAM_CODE_ROOT (model weights inflate the image fast), then calls the repo's
make_docker.sh. Supported ROS distros are exactly melodic, noetic, foxy —
anything else prints the usage and exits.
Set the agent-specific values in the image by editing the block in
scripts/Dockerfile.master:
ENV TEAM_AGENT ${TEAM_CODE_ROOT}/my_agent.py
# ENV TEAM_CONFIG ${TEAM_CODE_ROOT}/config.json
ENV CHALLENGE_TRACK_CODENAME SENSORS
Step 4: Verify before submitting
bash scripts/package_agent.sh verify # imports + agent class inside the image
bash scripts/package_agent.sh shell # interactive poke around
verify runs the image and checks, inside it: carla, agents, srunner and
leaderboard all import; TEAM_AGENT exists and defines the class the evaluator
will derive from its filename; and the declared track is valid. That is the whole
class of failures that otherwise comes back as a rejected submission hours later.
A full local dry run is better still — same image, your own server:
bash scripts/package_agent.sh run --routes-subset 0
Step 5: Submit
Submission is through the leaderboard website (https://leaderboard.carla.org/submit/): push the image to a registry and provide the tag. Read the current instructions there — the mechanics (registry, quotas, allowed track) change between challenge rounds and are not in the repository.
Examples
Example 1: "build the docker image for my agent"
export TEAM_CODE_ROOT=~/team_code, check_env.sh, edit the Dockerfile's
TEAM_AGENT, build, then verify.
Example 2: "make_docker.sh fails on the mv of the egg"
Your CARLA is wheel-only. Use a release tarball for CARLA_ROOT, or copy the
wheel into the image and install it in the Dockerfile instead of relying on the egg.
Example 3: "my ROS agent needs the bridge"
export CARLA_ROS_BRIDGE_ROOT=~/ros-bridge (cloned with
--recurse-submodules -b leaderboard-2.1), then build --ros noetic, which uses
Dockerfile.ros and copies the bridge into the image.
Example 4: "the image builds but the submission is rejected"
Almost always sensors or the agent class. verify catches both;
[[write-leaderboard-agent]] validate catches the sensor budget specifically.
Troubleshoo
अक्सर पूछे जाने वाले सवाल
Leaderboard क्या मूल्यांकन करता है?
एक Docker इमेज, रिपॉज़िटरी नहीं, इसलिए बिल्ड में सिमुलेटर के टूल और आपका कोड एक साथ पैक होते हैं।
egg समस्या क्या है?
जब सिमुलेटर की Python पैकेज फ़ाइलों के नाम बिल्ड स्क्रिप्ट की अपेक्षा से मेल न खाएँ, तो बिल्ड फ़ेल हो जाती है, इसलिए स्किल पहले यह जाँचती है।
सबमिशन से पहले क्या जाँचा जाता है?
चार ज़रूरी फ़ोल्डर, egg का ढाँचा, और यह कि इमेज स्टैक इम्पोर्ट कर सकती है और एजेंट लोड कर सकती है।
जानकारी
लेखक का मूल विवरण
Packages an agent for CARLA Leaderboard submission — builds the docker image with make_docker.sh (plain or ROS variant), checks the four required roots and the egg layout it assumes, sets the agent/track/routes environment inside the image, and verifies the image can import the stack and load the agent before submission. Use when the user asks to "build the leaderboard docker image", "submit to the leaderboard", "package my agent", or make_docker.sh fails.
repo: carla-simulator/carla
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11080
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-leaderboard-route
15kयह आपके एजेंट को CARLA Leaderboard की रूट फ़ाइल बनाने में मदद करती है, जिसमें वेपॉइंट और सीन ट्रिगर कैमरे से लगाए जाते हैं।
read-leaderboard-results
15kयह आपके एजेंट को CARLA Leaderboard की नतीजा फ़ाइल पढ़कर हर रूट का स्कोर समझाने और दूसरे नियम संस्करण में फिर से स्कोर करने में मदद करती है।
run-leaderboard-evaluation
15kयह आपके एजेंट को रूट के सेट पर CARLA Leaderboard मूल्यांकन चलाने में मदद करती है, शुरू करने से पहले सेटअप जाँचकर और चेकपॉइंट सेव करके।
write-leaderboard-agent
15kयह आपके एजेंट को CARLA Leaderboard के लिए ड्राइविंग एजेंट लिखने में मदद करती है, सही क्लास और चलने लायक शुरुआती फ़ाइल के साथ।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।