query-recording
यह क्या करती है
यह स्किल सेव की गई सिमुलेटर रिकॉर्डिंग के बारे में सवालों के जवाब देती है। यह उन लोगों के लिए है जो रिकॉर्ड किए गए रन में टक्कर या फँसी हुई गाड़ियाँ ढूँढना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप जानना चाहते हैं कि रिकॉर्डिंग फ़ाइल के अंदर क्या है।
- ✓जब आप रिकॉर्डिंग में गाड़ियों, पैदल यात्रियों या दूसरी वस्तुओं के बीच टक्कर ढूँढना चाहते हैं।
- ✓जब आप ऐसी गाड़ियाँ ढूँढना चाहते हैं जो रुकी हुई या फँसी थीं।
Skill का लिंक
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/query-recording/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी run.log में कौन-सी गाड़ियाँ पैदल यात्रियों से टकराईं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट सिमुलेटर सर्वर से फ़ाइल पढ़ने और एक टेक्स्ट रिपोर्ट लौटाने को कहता है। वह हेडर और एक्टर की सूची दिखा सकता है, चुनी गई श्रेणियों के बीच टक्कर खोज सकता है, या ऐसे एक्टर ढूँढ सकता है जो लगभग नहीं हिले।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Query a CARLA recording
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.
Read facts out of a .log without replaying it. The server parses the file and
returns a text report. Three questions:
- What's in it? —
info(header: map, duration, frames, actor list). - What crashed? —
collisionsbetween two actor categories. - What got stuck? —
blockedactors that barely moved.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Run the query that answers the question (info / collisions / blocked)
- [ ] Step 3: Read the report; use ids/times to drive a targeted replay if needed
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 2: Query
source scripts/env.sh
# header + actors (add --all for every frame; large)
python3 scripts/query.py info --file /tmp/run.log
# collisions: category codes h=hero v=vehicle w=walker t=traffic-light o=other a=any
python3 scripts/query.py collisions --file /tmp/run.log --type1 v --type2 a # any vehicle vs anything
python3 scripts/query.py collisions --file /tmp/run.log --type1 v --type2 w # vehicle vs walker
# actors that moved < 1 m (100 cm) over >= 30 s (stuck)
python3 scripts/query.py blocked --file /tmp/run.log --min-time 30 --min-distance 100
Units matter: --min-time is seconds, --min-distance is centimetres
(100 = 1 m).
Step 3: Act on it
The reports give frames, times and actor ids — feed them to
replay-recording (--start, --follow) to
jump to and watch the interesting moment.
Examples
Example 1: overview
User says: "what's in /tmp/run.log?"
info --file /tmp/run.log → map, duration, frame count, actors.
Example 2: find a crash
User says: "did any car hit a pedestrian?"
collisions --file /tmp/run.log --type1 v --type2 w. Each line gives the frame,
time and the two actor ids; then replay play --start <t> --follow <id>.
Example 3: find gridlock
User says: "which cars got stuck?"
blocked --file /tmp/run.log --min-time 20 --min-distance 50 (moved < 0.5 m in
20 s).
Troubleshooting
Problem: parse error / empty report
Cause: the .log is not on the server at that path, or has no frames.
Solution: use the server-side path; confirm the recording with info first.
Problem: collisions returns nothing but I saw a crash
Cause: wrong categories, or collisions need additional_data context.
Solution: widen with --type2 a (any); ensure the recording captured the actors.
Problem: blocked lists everything / nothing
Cause: --min-distance unit confusion (centimetres, not metres).
Solution: 100 = 1 m; raise --min-time to ignore brief stops at lights.
Outputs
Text reports printed to stdout (no world change, no file written). Use them to
target a replay-recording.
Detail (report fields, category codes, blocked-query semantics) in references/queries.md.
अक्सर पूछे जाने वाले सवाल
क्या यह रिकॉर्डिंग चलाती है?
नहीं। यह फ़ाइल पढ़ती है और बिना दोबारा चलाए तथ्य बताती है।
श्रेणी कोड क्या हैं?
hero, vehicle, walker, traffic light, other, और any।
अगर मुझे दृश्य देखना हो तो?
रिकॉर्डिंग का वह हिस्सा चलाने के लिए replay स्किल इस्तेमाल करें जो आपके काम का है।
जानकारी
लेखक का मूल विवरण
Inspects a recorded CARLA .log without replaying it — show_recorder_file_info for the header/actors/frames, collision queries between actor categories, and blocked-actor queries for vehicles that got stuck. Use when the user asks to "what's in this recording", "show recorder info", "which vehicles collided", "find collisions in the log", or "which actors were blocked/stuck".
repo: carla-simulator/carla
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11096
- लाइसेंस
- 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 आउटपुट के साथ।