본문으로 건너뛰기
Skillpedia
기타15k · #11085

control-lights

하는 일

스킬은 CARLA 맵의 조명 광원을 제어합니다. 시뮬레이션된 도시의 밤 분위기를 연출하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓시뮬레이터에서 가로등이나 건물 조명을 켜거나 끄고 싶을 때.
  • ✓맵 조명의 색이나 밝기를 바꾸고 싶을 때.
  • ✓밤이 되면 조명이 자동으로 켜지기를 원하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/control-lights/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“가로등은 따뜻한 색으로 켜고, 건물 조명은 밤에 자동으로 켜지도록 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 조명 그룹을 나열한 뒤, 그룹을 켜거나 끄고, 색과 밝기를 정하거나, 자동 낮밤 주기를 켭니다. 사용자는 도로, 건물, 차량, 전체처럼 그룹을 지정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.

자주 묻는 질문

날씨를 바꾸는 것과 어떻게 다른가요?

날씨는 태양과 하늘을 바꾸지만, 이 스킬은 맵의 광원을 바꿉니다.

화면에서 변화가 보이나요?

이미지를 렌더링하는 서버에서만 효과가 보입니다.

어떤 조명 그룹이 있나요?

가로등, 건물과 파사드 조명, 차량 조명, 또는 전체입니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬