world-data
Что он делает
Скилл ищет в работающей симуляции CARLA объект по описанию, например красную машину или ближайшего пешехода, и сообщает его идентификатор. Он нужен тем, кто хочет передать нужный объект другим инструментам.
Когда использовать
- ✓Когда вы описываете машину или человека и вам нужен их идентификатор для следующего шага.
- ✓Когда нужен ближайший объект к точке или к другому объекту в симуляции.
- ✓Когда нужен снимок всего, что сейчас есть в симулированном мире.
Ссылка на скилл
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/world-data/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Можешь найти красную машину ближе всего к моей тестовой машине в симуляции CARLA и назвать её идентификатор?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент фильтрует объекты симуляции по типу, роли, цвету или расстоянию и продолжает сужать выборку, пока не останется один. Затем он сообщает идентификатор этого объекта.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Query the world (and resolve entities)
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.
The resolver skill. Other skills act on one entity by id; this one finds that id when the request is a description — "a prius" (but there are three), "the nearest walker", "the 3rd vehicle". It also reads world-level data: snapshot, level bounding boxes, raycasts, ground projection.
Identifying a specific actor (the core use)
There is no ordering / rank — peer actors have no meaningful order, so "the 3rd one" is not a thing. Identify by a stable attribute or a spatial predicate, narrowing until one remains, then use its id:
- by type/blueprint:
--filter '*prius*',--filter walker.pedestrian.* - by role:
--role hero - by colour (tells identical models apart):
--color 255,0,0 - the single closest to a point/actor:
--near X,Y,Z/--near-id Nwith--nearest(a predicate — "the closest" — not an index) --fulldumps every attribute (colour, role, size, yaw), so you can spot the distinguishing field and filter by it (or just read the id)
So "the red prius" → actors --filter '*prius*' --color 255,0,0; "the prius
nearest the ego" → actors --filter '*prius*' --near-id <ego> --nearest. Either
yields an id to hand to telemetry / bounding-boxes / control-vehicle /
control-spectator. For junctions ("3-way intersections") use the map-waypoints
skill's junctions --arms 3.
Moving objects: a distance is a single-frame snapshot and changes as actors
move, so --nearest is only "closest right now". The id is the stable handle
— resolve once, then act on the id; re-query for a fresh distance. (An inherent
order only exists in special cases like a queue of vehicles along a lane — that is
a lane query, not this generic actor list.)
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: actors --filter/--role/--color [--nearest] until one remains → its id
- [ ] Step 3: hand the id to the action skill; or use snapshot/level-bbox/raycast/ground
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh. Negative
coordinates: use the = form (--near=-24,-57,0.6).
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 2-3: Query
source scripts/env.sh
python3 scripts/world_data.py actors # everything (non-traffic)
python3 scripts/world_data.py actors --filter '*prius*' # all priuses (ids + locations)
python3 scripts/world_data.py actors --filter '*prius*' --full # + color/role/size to tell them apart
python3 scripts/world_data.py actors --filter '*prius*' --color 255,0,0 # the red one
python3 scripts/world_data.py actors --filter '*prius*' --near-id 100 --nearest # closest to actor 100
python3 scripts/world_data.py snapshot # frame / time / count
python3 scripts/world_data.py level-bbox --label TrafficSigns # static boxes by label
python3 scripts/world_data.py raycast --from=0,0,1 --to=50,0,1 # semantic hits along a ray
python3 scripts/world_data.py ground --at=20,20,50 # drop to the ground
python3 scripts/world_data.py ros-topics # ROS 2 topic tree per actor
Resolving ROS 2 topics (ros-topics)
The same resolver job, one level up: it maps live actors to the topics the server
should be publishing, and names the reason for each silent one. It needs no
ROS 2 installation — it derives the names the way the server does, so it answers
the half ros2 topic list cannot ("the topic is missing — why?").
world topics (exist whenever the server runs with --ros2):
rt/clock [rosgraph_msgs/Clock] every tick
rt/carla/map [std_msgs/String] OpenDRIVE, LATCHED, re-sent on map load
rt/tf [tf2_msgs/TFMessage] per registered actor, unless ros_publish_tf=false
hero vehicle(s): 1
id=112 vehicle.lincoln.mkz_2017 ros_name=hero
<- rt/carla/hero/vehicle_control_cmd [carla_msgs/CarlaEgoVehicleControl]
<- rt/carla/hero/ackermann_control_cmd [ackermann_msgs/AckermannDriveStamped]
sensors: 2
id=113 sensor.camera.rgb ros_name=front [NOT enabled_for_ros -> SILENT]
-> rt/carla/hero/front/image [sensor_m
Частые вопросы
Что если под описание подходят несколько объектов?
Скилл продолжает сужать выборку по отличающей детали, потому что у объектов нет осмысленного порядка для ранжирования.
Может ли он найти информацию о планировке карты?
Да. Он может прочитать рамки элементов карты по метке и спроецировать точку на землю.
Может ли он помочь с топиками ROS 2?
Да. Он может перечислить топики ROS 2, которые должен публиковать каждый объект, и объяснить, почему один из них молчит.
Подробности
Оригинальное описание автора
Queries the live CARLA world and resolves an entity description into a concrete actor id — find actors by type, role, or colour, or the single one nearest a point/actor; read the world snapshot; get static level bounding boxes by label; cast rays for semantic points; project a point to the ground; or (ros-topics) list the native ROS 2 topics each actor should be publishing and why any is silent. Identifies by stable attributes, not by any rank/order. Use when the user asks "what actors are here", "find the red prius", "the vehicle nearest the ego", "list the pedestrians", or needs a specific a
repo: carla-simulator/carla
Популярность
- Звёзды на GitHub
- 15k
- Место в рейтинге
- #11106
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
create-leaderboard-route
15kПомогает агенту создавать маршруты для CARLA Leaderboard: расставлять путевые точки и триггеры сценариев из камеры симулятора, проверять и упорядочивать их.
package-leaderboard-agent
15kПомогает агенту упаковать агента вождения в Docker-образ для отправки на CARLA Leaderboard: проверить структуру папок и убедиться, что образ загружает агента.
read-leaderboard-results
15kПомогает агенту читать файл результатов CARLA Leaderboard, объяснять оценку и нарушения каждого маршрута и пересчитывать запуск по другой версии правил.
run-leaderboard-evaluation
15kПомогает агенту запустить оценщик CARLA Leaderboard на наборе маршрутов с вашим агентом: проверить настройку, сохранять контрольные точки и продолжать с них.
Похожие скиллы
gitcrawl
394kПозволяет агенту искать в сохраненном архиве задач и запросов на слияние GitHub, объединять дубликаты и проверять их текущий статус на GitHub.
slacrawl
394kПозволяет агенту искать и считать сообщения в локальном архиве Slack, проверять его свежесть и при необходимости обновлять архив.
goplaces
394kПомогает агенту искать места, получать их подробности и отзывы и определять названия мест через Google Places, с выводом в JSON для скриптов.