Langsung ke konten
Skillpedia
Lain-lain15k Β· #11085

control-lights

Fungsinya

Skill ini mengendalikan sumber cahaya di peta CARLA. Untuk orang yang ingin mengatur suasana kota simulasi di malam hari.

Kapan dipakai

  • βœ“Saat Anda ingin lampu jalan atau lampu gedung dinyalakan atau dimatikan di simulator.
  • βœ“Saat Anda ingin mengubah warna atau kecerahan lampu peta.
  • βœ“Saat Anda ingin lampu menyala secara otomatis di malam hari.

Link skill

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/control-lights/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/control-lights/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œNyalakan lampu jalan dengan warna hangat dan buat lampu gedung menyala saat malam.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mendaftar kelompok lampu, lalu menyalakan atau mematikan sebuah kelompok, mengatur warna dan intensitasnya, atau mengalihkan siklus siang-malam otomatis. Anda menyebutkan kelompoknya, seperti jalan, gedung, kendaraan, atau semua.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Control light sources

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.

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.

Pertanyaan umum

Apa bedanya dengan mengubah cuaca?

Cuaca mengubah matahari dan langit, sedangkan skill ini mengubah sumber cahaya di peta.

Apakah saya akan melihat perubahannya di layar?

Efeknya hanya terlihat pada server yang merender gambar.

Kelompok lampu apa saja yang ada?

Lampu jalan, lampu bangunan dan fasad, lampu kendaraan, atau semuanya.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
15k
Peringkat
#11085
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa