map-waypoints
Skill này làm gì
Skill khám phá mạng đường của một bản đồ mô phỏng. Skill dành cho người muốn hiểu bố cục bản đồ hoặc tìm một ngã tư cụ thể.
Khi nào nên dùng
- ✓Khi bạn muốn tóm tắt bố cục và các loại đường của một bản đồ.
- ✓Khi bạn muốn tìm một ngã tư được mô tả bằng lời, chẳng hạn ngã tư bốn nhánh ở giữa.
- ✓Khi bạn muốn kiểm tra đồ thị đường có khớp với bản đồ đã render không.
Liên kết skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/map-waypoints/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy tóm tắt bố cục đường của bản đồ này và tìm ngã tư bốn nhánh gần trung tâm nhất.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc đồ thị đường của bản đồ, tóm tắt thống kê, liệt kê các ngã tư kèm tâm và số nhánh, và có thể vẽ cấu trúc đường trong simulator để xác nhận khớp.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Explore a CARLA map
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.
Query and visualise the road network of the loaded map. Three headline uses:
- Rundown —
summaryturns the map into stats and a one-paragraph description ("a dense, city-like map … mostly 2-lane roads … 12 junctions"). - Show the topology —
topology --drawoverlays the modelled road graph so you can confirm it matches the map you see rendered. - Resolve a described element —
junctionslists every junction with its centre, arm count, distance-to-map-centre and bearing, so a phrase like "the 4-way junction in the middle" resolves to a specific junction id.
Plus per-point queries: waypoint (lane facts) and navigate (next/previous).
How natural language maps to elements
This skill emits structured data; the agent does the matching (like the
weather skill). "The 4-way junction in the middle" →
junctions --arms 4, then pick the smallest dist ... of centre. "The northern
junction" → the one whose bearing is N. Draw the chosen one with
junctions --arms 4 --draw (or by id) to confirm. See
references/waypoints.md for the vocabulary
(centre/near/far, bearings, "biggest" = size).
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Rundown the map (summary) if asked about layout
- [ ] Step 3: For a described element, enumerate (junctions) then filter to one
- [ ] Step 4: Draw it (--draw) to confirm modelled == visible; navigate if needed
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh. Negative
coordinates: pass --at with an = (e.g. --at=-24,-57,0.6) so the leading
minus isn't parsed as a flag; the space form only works for all-positive coords.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 2-4: Explore
source scripts/env.sh
# a rundown of the map
python3 scripts/waypoints.py summary
# draw the whole road topology to compare with the visible map
python3 scripts/waypoints.py topology --draw --life 180
# every junction; or just the four-way ones, nearest the centre first
python3 scripts/waypoints.py junctions
python3 scripts/waypoints.py junctions --arms 4
python3 scripts/waypoints.py junctions --arms 4 --draw # highlight + label them
# lane facts at a point, and a forward walk along the lane
python3 scripts/waypoints.py waypoint --at 30,20,0
python3 scripts/waypoints.py navigate --at 30,20,0 --dist 2 --steps 30 --draw
On CARLA 0.10.0 (the UE5 line: 5.5 and 5.8)
Landmark.waypoint is always None on 0.10.0. Measured on Town10HD_Opt:
68 landmarks, 68 of them with waypoint is None. Every other landmark field
populates normally (id, name, type, road_id, s, t, distance,
orientation, transform, country, unit, value, sub_type, text,
h_offset, z_offset, height, width, pitch, roll, is_dynamic,
get_lane_validities).
So any code shaped landmark.waypoint.transform or
landmark.waypoint.lane_id raises AttributeError: 'NoneType' there. Get the
road position from the landmark itself instead — map.get_waypoint_xodr( landmark.road_id, lane_id, landmark.s), or map.get_waypoint( landmark.transform.location) when you only need the nearest lane.
get_all_landmarks, get_all_landmarks_of_type, get_all_landmarks_from_id and
get_landmark_group all work on both versions. The rest of the Map/Waypoint API
this skill uses — get_topology, generate_waypoints, get_waypoint,
get_spawn_points, get_crosswalks — is unchanged.
Examples
Example 1: describe the map
User says: "give me a rundown of the topology"
summary. Relay the RUNDOWN paragraph (extent, road/lane counts, dominant lane
count, junction breakdown, density).
Example 2: confirm the model matches what's rendered
User says: "show me the topology so I can check the map"
topology --draw on a rendered server; the green arrows trace every road segment
— they should sit on the visible roads.
Example 3: resolve a described junction
User says: "highlight the 4-way junction in the middle"
junctions --arms 4 → pick the row with the smallest "of centre" distance → note
its id → junctions --arms 4 --draw (
Câu hỏi thường gặp
Nó có tìm được ngã tư từ mô tả không?
Có. Skill liệt kê các ngã tư kèm số nhánh, khoảng cách tới trung tâm và hướng, để agent khớp một cụm từ với một ngã tư.
Nó có thể vẽ gì?
Đồ thị đường và các ngã tư được chọn, vẽ dưới dạng đường phủ trong simulator.
Nó còn trả lời được gì khác?
Thông tin làn tại một điểm, và làn tiếp theo hoặc làn trước đó từ một vị trí.
Chi tiết
Mô tả gốc của tác giả
Explores a CARLA map's road network through the Map/Waypoint API — a natural-language rundown of the whole map ("give me the topology"), drawing the topology to confirm the modelled map matches the visible one, enumerating junctions to resolve phrases like "the 4-way junction in the middle", nearest-waypoint lane facts, and next/previous lane navigation. Use when the user asks about the map's layout, lanes, junctions, topology, or to locate/navigate specific map elements.
repo: carla-simulator/carla
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11094
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
create-leaderboard-route
15kGiúp agent của bạn tạo file tuyến đường CARLA Leaderboard bằng cách đặt các điểm waypoint và trigger kịch bản từ camera của simulator, rồi kiểm tra và sắp xếp chúng.
package-leaderboard-agent
15kGiúp agent của bạn đóng gói một agent lái xe thành image Docker để nộp lên CARLA Leaderboard, kiểm tra cấu trúc thư mục và thử rằng image nạp được agent.
read-leaderboard-results
15kGiúp agent của bạn đọc file kết quả CARLA Leaderboard, giải thích điểm và vi phạm của từng tuyến, và chấm lại một lần chạy theo phiên bản luật khác.
run-leaderboard-evaluation
15kGiúp agent của bạn chạy bộ đánh giá CARLA Leaderboard trên một tập tuyến với agent lái xe, kiểm tra thiết lập trước và lưu checkpoint để có thể tiếp tục.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.