मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट15k · #11106

world-data

यह क्या करती है

यह स्किल चल रहे CARLA सिमुलेशन में आपके बताए वस्तु को खोजती है, जैसे लाल कार या सबसे नज़दीक का पैदल यात्री, और उसकी ID बताती है। यह उन लोगों के लिए है जो दूसरे टूल को सही वस्तु पर लगाना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप कार या व्यक्ति का विवरण देते हैं और अगले चरण में इस्तेमाल के लिए उसकी ID चाहिए।
  • ✓जब आपको किसी बिंदु या दूसरी वस्तु के सबसे नज़दीक की वस्तु चाहिए।
  • ✓जब आपको इस समय सिमुलेटेड दुनिया में मौजूद हर चीज़ का स्नैपशॉट चाहिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/world-data/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप CARLA सिमुलेशन में मेरी टेस्ट कार के सबसे नज़दीक वाली लाल कार ढूँढकर उसकी ID दे सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट सिमुलेशन की वस्तुओं को प्रकार, भूमिका, रंग या दूरी से छानता है, और तब तक सीमित करता है जब तक सिर्फ़ एक न बचे। फिर वह उस वस्तु की ID बताता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Query the world (and resolve entities)

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.

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 N with --nearest (a predicate — "the closest" — not an index)
  • --full dumps 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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

create-leaderboard-route

15k

यह आपके एजेंट को CARLA Leaderboard की रूट फ़ाइल बनाने में मदद करती है, जिसमें वेपॉइंट और सीन ट्रिगर कैमरे से लगाए जाते हैं।

अन्यविविध

package-leaderboard-agent

15k

यह आपके एजेंट को CARLA Leaderboard के लिए Docker इमेज बनाने में मदद करती है, और जाँचती है कि इमेज में एजेंट सही लोड होता है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

read-leaderboard-results

15k

यह आपके एजेंट को CARLA Leaderboard की नतीजा फ़ाइल पढ़कर हर रूट का स्कोर समझाने और दूसरे नियम संस्करण में फिर से स्कोर करने में मदद करती है।

डेटाएनालिसिस और स्प्रेडशीट

run-leaderboard-evaluation

15k

यह आपके एजेंट को रूट के सेट पर CARLA Leaderboard मूल्यांकन चलाने में मदद करती है, शुरू करने से पहले सेटअप जाँचकर और चेकपॉइंट सेव करके।

कोडिंगटेस्टिंग

मिलती-जुलती skills