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

debug-navmesh

하는 일

이 스킬은 보행자가 CARLA 지도에서 길을 찾을 수 있는지 확인합니다. 지도를 가져왔거나 움직이지 않는 보행자를 보고 있는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓지도에서 걸을 수 있는 영역을 보고 싶을 때.
  • ✓지도를 가져온 뒤 보행자 내비게이션이 작동하는지 확인해야 할 때.
  • ✓AI 컨트롤러가 붙은 보행자가 움직이지 않을 때.

스킬 링크

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/debug-navmesh/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/debug-navmesh/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에서 그대로 가져왔습니다.

Debug the pedestrian navmesh

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.

CARLA does not expose navmesh geometry, but every location from get_random_location_from_navigation() sits on the walkable mesh. Sampling many of them validates the navmesh loaded and visualises its coverage — the check to run after importing a map, or when walkers refuse to move.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Validate — confirm the navmesh exists and its extent
- [ ] Step 3: (rendered view) Sample + draw to see the walkable area

Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.

Step 1: Check prerequisites

bash scripts/check_env.sh

Step 2: Validate (works headless)

source scripts/env.sh
python3 scripts/navmesh.py validate --count 500

PASS reports the number of valid points, unique locations, and the walkable span. FAIL (exit 1) means get_random_location_from_navigation() returned nothing — no usable navmesh, so pedestrians with a WalkerAIController will not navigate.

Step 3: Visualise (rendered server)

python3 scripts/navmesh.py sample --count 2000 --life 120

Draws the sampled points via world.debug; the dotted region is walkable. Needs a windowed/packaged server (headless -nullrhi draws nothing — see debug-draw).

Examples

Example 1: after importing a map

User says: "I imported a town — did the pedestrian nav build?"

validate → PASS with a sensible span means yes; FAIL means the nav mesh is missing and must be rebuilt during import.

Example 2: walkers won't move

User says: "my pedestrians just stand still"

validate. If it FAILs, the navmesh is the cause; if it PASSes, look at the WalkerAIController wiring (owned by the walker-spawning skill), not the map.

Example 3: see the walkable area

User says: "show me where pedestrians can walk"

sample --count 3000 --life 180 on a rendered server; inspect the point cloud.

Troubleshooting

Problem: validate FAILs on a freshly imported map Cause: pedestrian navigation was not generated/exported for the map. Solution: rebuild the map's nav mesh in the import pipeline; then re-validate.

Problem: sample prints a count but nothing is visible Cause: headless -nullrhi server, or the camera is far from the coverage bounds. Solution: use a rendered server and move the spectator over the reported bounds.

Problem: very few unique locations Cause: navmesh is tiny or degenerate (a sliver of walkable area). Solution: check the source geometry / sidewalks in the imported map.

Outputs

  • validate: a PASS/FAIL report with coverage bounds and walkable span.
  • sample: a transient point overlay of the walkable area (rendered view).

Detail (navmesh basics, WalkerAIController link, import checklist) in references/navmesh.md.

자주 묻는 질문

확인이 실패하면 무슨 뜻인가요?

내비게이션 메시가 쓸 수 있는 위치를 돌려주지 않았다는 뜻이며, AI 컨트롤러가 붙은 보행자는 길을 찾지 못합니다.

렌더링된 화면이 필요한가요?

검증 단계는 화면 없이도 작동합니다. 걸을 수 있는 영역을 그리려면 렌더링하는 서버가 필요합니다.

샘플은 몇 개나 사용하나요?

샘플 개수는 직접 정할 수 있으며, 예를 들어 500개를 사용할 수 있습니다.

상세 정보

작성자의 원본 설명

Visualises and validates a map's pedestrian navigation mesh by sampling walkable locations (get_random_location_from_navigation) and drawing them as debug points. Use when the user asks to "show/visualise the pedestrian navmesh", "check walkable areas", "validate pedestrian navigation after a map import", or "why won't my walkers move". Confirms the navmesh loaded and how far it covers.

repo: carla-simulator/carla

인기도

GitHub 스타
15k
순위
#11092
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬