control-lights
यह क्या करती है
यह स्किल CARLA मैप के प्रकाश स्रोतों को नियंत्रित करती है। यह उन लोगों के लिए है जो सिमुलेटेड शहर का रात का माहौल तय करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप सिमुलेटर में स्ट्रीट लाइट या इमारतों की लाइट चालू या बंद करना चाहते हैं।
- ✓जब आप मैप की लाइटों का रंग या चमक बदलना चाहते हैं।
- ✓जब आप चाहते हैं कि रात होते ही लाइटें अपने-आप जल जाएँ।
Skill का लिंक
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/control-lights/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“स्ट्रीट लाइट गर्म रंग में चालू कीजिए, और रात होने पर इमारतों की लाइटें अपने-आप जल जाएँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले लाइट समूहों की सूची देता है, फिर किसी समूह को चालू या बंद करता है, उसका रंग और तीव्रता तय करता है, या दिन-रात का अपने-आप चक्र बदलता है। आप समूह का नाम बताते हैं, जैसे street, building, vehicle या all।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Control light sources
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.
Switch and tune the world's illumination — street lamps, building lights, vehicle
lights — via the LightManager. These are actual light sources (they cast
light): different from toggle-env-objects (which hides the lamp geometry) and
set-weather (the sun). Effects show on a rendered server.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: list a group to see counts/states
- [ ] Step 3: on / off / set a group, or toggle the day-night cycle
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 3: Control
source scripts/env.sh
python3 scripts/lights.py list --group street # counts + a sample
# light up the streets, warm colour
python3 scripts/lights.py on --group street --color 255,220,150 --intensity 2000
# turn building lights on for a night-city look
python3 scripts/lights.py on --group building
# turn everything off
python3 scripts/lights.py off --group all
# recolour without toggling
python3 scripts/lights.py set --group street --color 150,200,255
# let lights switch on/off automatically with the sun
python3 scripts/lights.py day-night on
Groups: street, building, vehicle, other, all.
Examples
Example 1: night city
User says: "make it a lit-up city at night"
Set night with set-weather (sun_altitude_angle negative), then
on --group street and on --group building.
Example 2: blackout
User says: "kill all the lights"
off --group all.
Example 3: automatic dusk lighting
User says: "have the street lights come on by themselves at dusk"
day-night on.
Troubleshooting
Problem: no visible change
Cause: headless -nullrhi server (no rendering), or it's daytime so lights wash out.
Solution: use a rendered server; set night (set-weather) to see them clearly.
Problem: list shows 0 lights
Cause: this map has few/no light sources of that group, or wrong group.
Solution: try --group all; some maps have sparse building lights.
Problem: lights won't stay on
Cause: the day-night cycle is auto-switching them.
Solution: day-night off, then set them manually.
Outputs
Illumination state on the server (on/off, colour, intensity, auto-cycle). No file.
list reports per-group counts and a sample.
Detail (LightManager API, groups, colour/intensity units, day-night) in references/lights.md.
अक्सर पूछे जाने वाले सवाल
यह मौसम बदलने से कैसे अलग है?
मौसम सूरज और आसमान बदलता है, जबकि यह स्किल मैप पर मौजूद प्रकाश स्रोतों को बदलती है।
क्या स्क्रीन पर बदलाव दिखेगा?
यह असर सिर्फ़ उस सर्वर पर दिखता है जो इमेज रेंडर करता है।
कौन-से लाइट समूह हैं?
स्ट्रीट लैंप, इमारत और फ़ेसेड लाइट, वाहन की लाइट, या ये सभी।
जानकारी
लेखक का मूल विवरण
Controls the map's light sources through the CARLA LightManager — turn street lamps, building/facade lights, vehicle lights or all of them on/off, set their colour and intensity, and toggle the automatic lights-at-night cycle. Use when the user asks to "turn on the street lights", "light up the city at night", "turn off building lights", "change the street-light colour", or "make lights come on automatically at night". Distinct from hiding lamp meshes (toggle-env-objects) and the sun (set-weather).
repo: carla-simulator/carla
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11085
- लाइसेंस
- 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
blucli
394kयह आपके एजेंट को blu कमांड से Bluesound और NAD स्पीकर खोजने, चलाने, रोकने, समूह बनाने और वॉल्यूम बदलने में मदद करती है।
camsnap
394kयह आपके एजेंट को नेटवर्क कैमरों और लोकल webcam से स्नैपशॉट, छोटी क्लिप या मोशन इवेंट लेने में मदद करती है, जो आपने सेट किए हों।
eightctl
394kयह आपके एजेंट को Eight Sleep pod की जांच और नियंत्रण करने में मदद करती है, जिसमें तापमान, अलार्म और नींद की समय-सारणी शामिल हैं।