debug-draw
यह क्या करती है
यह स्किल CARLA दुनिया में अस्थायी ओवरले बनाती है। यह उन डेवलपर्स के लिए है जो अपना काम जाँचते समय कोई जगह, रास्ता या बॉक्स चिह्नित करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप सिमुलेटेड दुनिया में कोई बिंदु, रेखा या बॉक्स चिह्नित करना चाहते हैं।
- ✓जब आप किसी रास्ते या वेपॉइंट के सेट को दिखाना चाहते हैं।
- ✓जब आप डीबग करने के लिए मैप पर किसी जगह पर लेबल लगाना चाहते हैं।
Skill का लिंक
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/debug-draw/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“10, 20, 1 पर एक हरा मार्कर बनाइए, और मूल बिंदु से 50, 0, 1 तक 60 सेकंड तक रहने वाली एक रेखा खींचिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट एक स्थिति, रंग और जीवनकाल के साथ ड्रॉइंग कमांड भेजता है। आकृतियाँ सर्वर पर अस्थायी ओवरले के रूप में दिखती हैं और जीवनकाल खत्म होने पर गायब हो जाती हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Draw CARLA debug shapes
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.
Overlay primitives on the running world for visual debugging: points, lines,
arrows, boxes, text. They are drawn by the server as a transient overlay — not
actors — so they cannot be selected or deleted individually; they expire after
their --life. Other skills (e.g. map-waypoints) draw through this same
world.debug API.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Draw the primitive(s) with a colour and lifetime
- [ ] Step 3: Confirm in a rendered view; redraw if it must persist in sync mode
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh. Coordinates are
world metres X,Y,Z; colours are r,g,b (0-255). Negative coordinates: use
the = form (--at=-10,-5,1, --from=-3,0,1) so a leading minus isn't read as
a flag.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 2: Draw
source scripts/env.sh
python3 scripts/debug_draw.py point --at 10,20,1 --size 0.2 --color 0,255,0 --life 60
python3 scripts/debug_draw.py line --from 0,0,1 --to 50,0,1 --thickness 0.2 --life 60
python3 scripts/debug_draw.py arrow --from 0,0,1 --to 10,0,1 --color 0,0,255 --life 60
python3 scripts/debug_draw.py box --center 30,30,1 --extent 2,4,1.5 --yaw 45 --life 60
python3 scripts/debug_draw.py text --at 30,30,3 --text "junction 12" --color 255,255,0 --life 60
Step 3: Confirm / persistence
Shapes render on a world tick, in a rendered view. Two gotchas:
- Headless
-nullrhiservers show nothing — there is no render thread. Use a windowed or packaged server to see overlays. - Sync mode: nothing appears until the client ticks, and
--lifeis in simulation time. For an overlay that stays up while stepping, redraw each frame (or set--lifelonger than your tick interval).
On CARLA 0.10.0 (the UE5 line: 5.5 and 5.8)
The HUD variants are gone on 0.10.0. carla.DebugHelper there exposes
exactly seven methods — draw_point, draw_line, draw_arrow, draw_box,
draw_string, clear_debug_shape, clear_debug_string — so the 0.9.14+
draw_hud_point / draw_hud_line / draw_hud_box family (which drew in screen
space, ignoring depth) has no equivalent. Use the world-space calls; they behave
the same on both versions.
clear_debug_shape and clear_debug_string exist on both, and are the only way
to remove a shape before its lifetime expires.
Examples
Example 1: mark a spot
User says: "mark world position (10, 20)"
point --at 10,20,1 --size 0.2 --color 0,255,0 --life 120.
Example 2: label and box an object
User says: "put a box and a label around (30,30)"
box --center 30,30,1 --extent 2,4,1.5 then text --at 30,30,3 --text "target".
Troubleshooting
Problem: nothing shows up
Cause: headless -nullrhi server (no rendering), or sync mode without a tick.
Solution: run a windowed/packaged server; in sync mode tick the world.
Problem: shape vanishes immediately
Cause: very small --life, or a single-frame draw in sync mode.
Solution: raise --life, or redraw each frame for a persistent overlay.
Problem: I can't delete a shape
Cause: debug shapes are not actors.
Solution: they expire on their own; use a short --life, or reload the world.
Outputs
Transient visual overlay in the rendered world. No file, no persistent actor.
Detail (each primitive's parameters, colour/lifetime semantics, sync-mode behaviour) in references/debug.md.
अक्सर पूछे जाने वाले सवाल
क्या मैं एक आकृति चुनकर हटा सकता हूँ?
नहीं। ये आकृतियाँ एक्टर नहीं, ओवरले हैं, इसलिए जीवनकाल खत्म होने पर अपने-आप हट जाती हैं।
कौन-से रंग इस्तेमाल कर सकते हैं?
लाल, हरा और नीला मान, हर एक 0 से 255 तक।
यह कौन-से कोऑर्डिनेट इस्तेमाल करती है?
मीटर में विश्व कोऑर्डिनेट, X, Y और Z के रूप में।
जानकारी
लेखक का मूल विवरण
Draws debug overlays in a running CARLA world via world.debug — points, lines, arrows, bounding boxes, and text strings, each with a colour and lifetime. Use when the user asks to "draw/mark/highlight a point or box in the world", "visualise a path/waypoints", "label a location", or "show something on the map for debugging". Shapes are an overlay, not actors.
repo: carla-simulator/carla
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11091
- लाइसेंस
- 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
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।