control-lights
O que ela faz
A skill controla as fontes de luz de um mapa do CARLA. É para quem quer definir o clima de uma cidade simulada à noite.
Quando usar
- ✓Quando você quer ligar ou desligar as luzes de rua ou dos prédios no simulador.
- ✓Quando você quer mudar a cor ou o brilho das luzes do mapa.
- ✓Quando você quer que as luzes acendam automaticamente à noite.
Link da skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/control-lights/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Ligue os postes de rua com uma cor quente e faça as luzes dos prédios acenderem à noite.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente lista os grupos de luzes e depois liga ou desliga um grupo, define sua cor e intensidade, ou ativa o ciclo automático de dia e noite. Você indica o grupo, como rua, prédio, veículo ou todos.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Perguntas frequentes
Qual é a diferença para mudar o clima?
O clima muda o sol e o céu, enquanto esta skill muda as fontes de luz do mapa.
Vou ver a mudança na tela?
O efeito aparece apenas em um servidor que renderiza imagens.
Quais grupos de luz existem?
Postes de rua, luzes de prédios e fachadas, luzes de veículos ou todas elas.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 15 mil
- Posição no ranking
- #11085
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
create-leaderboard-route
15 milAjuda seu agente a criar arquivos de rota do CARLA Leaderboard posicionando waypoints e gatilhos de cenário a partir da câmera do simulador, depois verificando e ordenando-os.
package-leaderboard-agent
15 milAjuda seu agente a empacotar um agente de direção em uma imagem Docker para envio ao CARLA Leaderboard, verificando a estrutura de pastas e testando se a imagem o carrega.
read-leaderboard-results
15 milAjuda seu agente a ler um arquivo de resultados do CARLA Leaderboard, explicar a pontuação e as infrações de cada rota e recalcular uma execução pela outra versão das regras.
run-leaderboard-evaluation
15 milAjuda seu agente a rodar o avaliador do CARLA Leaderboard em um conjunto de rotas com seu agente de direção, verificando a configuração antes e salvando checkpoints para retomar.
Skills parecidas
blucli
394 milAjuda seu agente a encontrar, tocar, pausar, agrupar e ajustar o volume de alto-falantes Bluesound e NAD pelo comando blu.
camsnap
394 milAjuda seu agente a capturar fotos, clipes curtos ou eventos de movimento de câmeras de rede e webcams locais que você configurou.
eightctl
394 milAjuda seu agente a verificar e controlar um pod da Eight Sleep, incluindo temperatura, alarmes e programações de sono.