analyze-scenario-results
यह क्या करती है
यह स्किल एक ड्राइविंग टेस्ट रन की नतीजा फ़ाइलें पढ़कर उन्हें सरल सारांश में बदलती है। यह उन लोगों के लिए है जिन्हें जानना है कि टेस्ट पास हुआ या नहीं और क्या गड़बड़ हुई।
कब इस्तेमाल करें
- ✓जब आप जानना चाहते हैं कि ड्राइविंग टेस्ट पास हुआ या फ़ेल।
- ✓जब आपको समझना हो कि कौन-सी खास जाँच विफलता का कारण बनी।
- ✓जब आप दो टेस्ट रन की तुलना करके देखना चाहते हैं कि उनके बीच क्या बदला।
Skill का लिंक
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/scenario-runner/analyze-scenario-results/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या मेरा CARLA ड्राइविंग टेस्ट पास हुआ? अगर नहीं, तो कौन-सी जाँच फ़ेल हुई और क्यों?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट सहेजी गई नतीजा फ़ाइलें खोलता है, हर जाँच को उसके पास या फ़ेल स्थिति के साथ सूचीबद्ध करता है, और दो रनों की साथ-साथ तुलना कर सकता है। वह सहेजी गई रिकॉर्डिंग से अतिरिक्त माप भी ले सकता है, बिना सिमुलेटर चलाए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Analyse scenario results
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.
Three separate things get called "results", and they answer different questions:
| Artefact | Produced by | Answers |
|---|---|---|
| criteria table | --output / --file / --json / --junit |
did it pass, and which criterion failed |
| criteria JSON next to a recording | --record |
the full criterion state, for tooling |
| CARLA recorder log | --record |
everything that happened, replayable |
The metrics module works off the third one, so anything you did not --record can
only be re-measured by re-running.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: Summarise the result files you have
- [ ] Step 3: For deeper analysis, run a metric over a recording
- [ ] Step 4: Compare runs if you have more than one
Step 2: Summarise
source scripts/env.sh
python3 scripts/analyze_results.py summary ./results # a directory of results
python3 scripts/analyze_results.py summary ./results/*.json # specific files
python3 scripts/analyze_results.py compare ./before ./after # two runs, criterion by criterion
summary reads .json, .xml (junit) and .txt outputs, normalises them, and
prints one line per scenario with the failing criteria named. compare diffs two
sets by scenario name and criterion, which is the useful view when you changed a
controller and want to know what got worse.
To produce these in the first place, run with the output flags:
cd ../run-scenario
OUTPUT=1 JSON=1 OUTPUT_DIR=./results bash scripts/run_scenario.sh group:ControlLoss
Note the file naming: ScenarioRunner writes
<outputDir>/<config name><YYYY-MM-DD-HH-MM-SS>.json with no separator before
the timestamp, so names look like ControlLoss_12025-08-14-10-22-31.json.
analyze_results.py splits that back apart.
Step 3: Metrics over a recording
Record first — this writes both a .log recording and a <name>.json of criteria:
cd ../run-scenario
RECORD=recordings bash scripts/run_scenario.sh FollowLeadingVehicle_1
# -> $SCENARIO_RUNNER_ROOT/recordings/FollowLeadingVehicle_1.log
# $SCENARIO_RUNNER_ROOT/recordings/FollowLeadingVehicle_1.json
Then run a metric:
source scripts/env.sh
python3 scripts/analyze_results.py metrics --list # bundled example metrics
python3 scripts/analyze_results.py metrics \
--metric "$SCENARIO_RUNNER_ROOT/srunner/metrics/examples/distance_between_vehicles.py" \
--log recordings/FollowLeadingVehicle_1.log \
--criteria recordings/FollowLeadingVehicle_1.json
which is a wrapper for
python3 "$SCENARIO_RUNNER_ROOT/metrics_manager.py" \
--metric <metric.py> --log <recording.log> [--criteria <criteria.json>]
The metrics module needs a running server even though it computes offline: it replays the recording to recover the map and to resolve actor ids to positions. That is the one non-obvious prerequisite.
Bundled examples, in increasing complexity:
| Metric | What it shows |
|---|---|
basic_metric.py |
the minimum: subclass BasicMetric, implement _create_metric |
criteria_filter.py |
pull specific fields out of the criteria JSON into a table |
distance_between_vehicles.py |
per-frame distance between two actors, plotted |
distance_to_lane_center.py |
lateral error against the lane centre, plotted |
Writing your own is a subclass of BasicMetric with one method; the recording is
exposed as a MetricsLog object with get_actor_transforms, get_ego_vehicle_id,
get_all_frames and friends. Details in
references/metrics.md.
Step 4: What the criteria mean
A failing criterion names the behaviour that broke, not the cause:
| Criterion failed | Read as |
|---|---|
CollisionTest |
the ego hit something — check the recording for what |
DrivenDistanceTest |
the ego did not get far enough: blocked, or the scenario ended early |
ActorBlockedTest |
the ego stopped and stayed stopped |
KeepLaneTest / WrongLaneTest / OnSidewalkTest |
lateral control or a bad overtake |
RunningRedLightTest / RunningStopTest |
traffic-control handling |
RouteCompletionTest < 100 |
route not finished (route mode |
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए सिमुलेटर चालू होना चाहिए?
नहीं। यह सहेजे गए नतीजे और रिकॉर्डिंग पढ़ती है, इसलिए सिमुलेटर की ज़रूरत नहीं।
यह कौन-सी फ़ाइलें पढ़ सकती है?
नतीजा तालिकाएँ, JSON और JUnit नतीजा फ़ाइलें, और रिकॉर्डिंग के साथ सहेजी गई क्राइटेरिया फ़ाइलें।
क्या यह ऐसे माप ले सकती है जो रिकॉर्ड नहीं हुए?
नहीं। अतिरिक्त माप सिर्फ़ उस रिकॉर्डिंग पर काम करते हैं जो रन के दौरान सहेजी गई हो।
जानकारी
लेखक का मूल विवरण
Reads and summarises ScenarioRunner output — the criteria pass/fail tables from --output/--file, the machine-readable --json and --junit result files, and the criteria JSON written alongside a --record recording — and runs the metrics module (metrics_manager.py) to compute custom measurements over a recorded run offline, without the simulator. Use when the user asks "did the scenario pass", "why did it fail", "summarise these results", "compare these runs", or wants distance/speed/lane metrics from a recording.
repo: carla-simulator/carla
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11108
- लाइसेंस
- 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
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।