मुख्य सामग्री पर जाएँ
Skillpedia
विविध15k · #11079

create-leaderboard-route

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

यह स्किल CARLA Leaderboard, एक सिमुलेटर टेस्ट, के लिए ड्राइविंग रूट बनाती और बदलती है। यह उन डेवलपर्स के लिए है जिन्हें ड्राइविंग एजेंट जाँचने के लिए अपने रूट चाहिए।

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

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

Skill का लिंक

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/create-leaderboard-route/SKILL.md

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

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

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

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

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

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

“Town12 में एक लीडरबोर्ड रूट बनाइए, जिसमें मुख्य सड़क के साथ वेपॉइंट हों और चौराहे के पास एक सीन हो।”

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

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

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

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

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

Create a leaderboard route

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.

A route is waypoints plus scenarios pinned to trigger points, in one XML file ([[run-route-scenario]] documents the format). Writing the coordinates by hand does not work in practice — Town12 is 10 km across and a trigger point a metre into the wrong lane silently never fires. So the leaderboard ships interactive tools that read positions off the spectator camera in a live simulator.

All of them live in $LEADERBOARD_ROOT/scripts/ and all need a running server with the right town loaded.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: Load the town the route will live in (load-map)
- [ ] Step 3: Place waypoints (create), then scenarios (scenarios)
- [ ] Step 4: Inspect: display in the simulator, summarise as a table
- [ ] Step 5: Order the scenarios, then run it (run-leaderboard-evaluation)

Step 2-3: Build it

source scripts/env.sh

# 1. load the town first — every tool works on the *currently loaded* map
python3 -c "import carla; carla.Client('127.0.0.1',2000).load_world('Town12')"

# 2. place the route waypoints by flying the spectator and clicking
bash scripts/route_tools.sh create --file ~/routes/my_routes.xml

# 3. add scenarios along it
bash scripts/route_tools.sh scenarios --file ~/routes/my_routes.xml

# 4. capture the current weather as a <weather> element
bash scripts/route_tools.sh weather --route 0

route_creator and scenario_creator are terminal + spectator loops: you move the spectator in the CARLA window, and type commands in the terminal to record the current position as a waypoint or a scenario trigger. --file accepts several files (nargs="+") so it can append into an existing set.

scenario_creator -s/--show-only shows the route without editing, which is the safe way to look before touching.

Step 4: Inspect

# draw an existing route in the simulator
bash scripts/route_tools.sh display --file ~/routes/my_routes.xml --route 0 --keypoints --scenarios

# a table of every route: length, towns, scenario histogram
bash scripts/route_tools.sh summary --file ~/routes/my_routes.xml

# offline structural check — no server needed
bash scripts/route_tools.sh check --file ~/routes/my_routes.xml

check is this skill's own addition and the one to run first: it validates the XML against the 2.x schema shape, confirms every <scenario type> has a class in the paired scenario_runner checkout, flags routes whose town is not installed, and finds trigger points that are far from the route polyline — the failure that otherwise shows up as "the scenario never triggers".

route_displayer flags: -sr/--show-route, -sa/--show-all, -sk/--show-keypoints, -ss/--show-scenarios.

Step 5: Tidy and run

# sort the <scenarios> block by position along the route (cosmetic but makes review sane)
bash scripts/route_tools.sh order --file ~/routes/my_routes.xml

cd ../run-leaderboard-evaluation
ROUTES=~/routes/my_routes.xml TEAM_AGENT=.../npc_agent.py \
    bash scripts/run_leaderboard.sh --routes-subset 0

Always validate a new route with npc_agent.py before using it to judge your own agent: a route the NPC agent cannot complete is a broken route, not a hard one.

Converting 1.0 routes

bash scripts/route_tools.sh bridge --routes old_routes.xml \
    --scenarios all_towns_traffic_scenarios_public.json --endpoint new_routes.xml

scripts/route_bridge.py merges a 1.0 geometry file and its separate scenario JSON into a single 2.x route file. It exists on master only — it was removed from the leaderboard-2.0 and 2.1 branches, so run it from a master checkout and use the output elsewhere.

Examples

Example 1: "make a short route in Town12 to test one scenario"

Load Town12, create two or three waypoints along one road, scenarios to drop a single Accident trigger, check, then run with the NPC agent. Faster to iterate on than any of the shipped 90-route files.

Example 2: "why doesn't my scenario trigger?"

check first — it reports trigger points off the route polyline and scenario types with no class. If both are clean, display --scenarios and watch where the ego passes relative to t

अक्सर पूछे जाने वाले सवाल

कोऑर्डिनेट हाथ से क्यों न लिखें?

हाथ से लिखी जगहें अक्सर लेन से चूक जाती हैं, इसलिए सीन ट्रिगर चुपचाप कभी चालू ही नहीं होता।

क्या इसके लिए चालू सिमुलेटर चाहिए?

हाँ। ये टूल उसी मैप पर काम करते हैं जो चल रहे सर्वर पर लोड है।

क्या चलाने से पहले रूट जाँच सकते हैं?

हाँ। स्किल रूट को सिमुलेटर में बना सकती है या टेबल के रूप में सारांश दे सकती है।

जानकारी

लेखक का मूल विवरण

Creates and edits CARLA Leaderboard route files — placing waypoints and scenario trigger points interactively from the spectator camera (route_creator, scenario_creator), visualising an existing route in the simulator (route_displayer), summarising it as a table (route_summarizer), capturing the current weather in route format (weather_creator), sorting scenarios by route position (scenario_orderer) and converting 1.0-format routes to 2.x (route_bridge). Use when the user asks to "make a new route", "add a scenario to a route", "visualise/debug a route", "see what's in this route file", or "co

repo: carla-simulator/carla

लोकप्रियता

GitHub स्टार
15k
रैंकिंग में स्थान
#11079
लाइसेंस
MIT
अपडेट की गई
2/11/2026

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

0

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

कमेंट

  • …

इस repository की और skills

package-leaderboard-agent

15k

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

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

read-leaderboard-results

15k

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

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

run-leaderboard-evaluation

15k

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

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

write-leaderboard-agent

15k

यह आपके एजेंट को CARLA Leaderboard के लिए ड्राइविंग एजेंट लिखने में मदद करती है, सही क्लास और चलने लायक शुरुआती फ़ाइल के साथ।

AI और एजेंटएजेंट

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