मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग15k · #11124

import-carla-vehicle

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

यह स्किल 3D कार मॉडल को CARLA सिमुलेटर में चलने वाले वाहन में बदलती है। यह उन लोगों के लिए है जिन्हें सिमुलेशन में अपने कार डिज़ाइन परखने हैं।

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

  • ✓जब आपके पास 3D कार मॉडल है और आप चाहते हैं कि वह CARLA में चले।
  • ✓जब आपके सेल्फ़-ड्राइविंग सॉफ़्टवेयर को किसी खास कार पर परखना हो, और उसके लिए कस्टम वाहन चाहिए।
  • ✓जब इम्पोर्ट इसलिए रुक जाए क्योंकि मॉडल के पहिए CARLA की ज़रूरत के हिसाब से सेट नहीं हैं।

Skill का लिंक

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/import-carla-vehicle/SKILL.md

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

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

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

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

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

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

“क्या आप मेरा वैन 3D मॉडल CARLA में ऐसी कार के रूप में इम्पोर्ट कर सकते हैं जिसे मैं चला सकूँ, और जाँच सकते हैं कि वह सही स्पॉन होती है?”

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

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

एजेंट पहले मॉडल का पहिया सेटअप जाँचता है, फिर मेश इम्पोर्ट करता है और फ़िज़िक्स व पहिए की सेटिंग्स बनाता है। इसके बाद वह कार को रजिस्टर करता है ताकि वह अंतर्निहित वाहनों की तरह वाहन सूची में दिखे।

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

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

Import a vehicle into CARLA

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.

python3 scripts/import_vehicle.py ~/models/SK_MyVan.fbx \
    --make ford --model transit --base-type truck --generation 3 --wheel-radius 40

The FBX must be a skeletal mesh whose wheels are bones named Wheel_Front_Left, Wheel_Front_Right, Wheel_Rear_Left, Wheel_Rear_Right. PhysX's PxVehicleDrive4W finds wheels by those exact names — the physics bodies, the WheelSetups and the animation blueprint all address them — so the rig is checked before anything boots.

The result spawns and drives like any native CARLA vehicle:

bp = bp_lib.find('vehicle.ford.transit')
car = world.spawn_actor(bp, world.get_map().get_spawn_points()[0])
car.apply_control(carla.VehicleControl(throttle=0.6, steer=0.2))

Pipeline, schema and constraints: references/vehicle_import.md.

Instructions

Vehicle Import Progress:
- [ ] Step 0: ASK THE USER for make, model, base type, generation and wheel radius
- [ ] Step 1: Check the INPUT FILE first — format, skinned, rig, textures
- [ ] Step 2: Check prerequisites — hand off to build-carla-ue4 on a build FAIL
- [ ] Step 3: Import — boot 1 assembles the vehicle, boot 2 registers it
- [ ] Step 4: Verify it spawns, drives and steers on a running server

Step 0: Ask the user for the attributes

Do this before anything else, every time. Do not infer them from the file name.

ask values why it must be asked
make e.g. ford, tesla, carla first half of the blueprint id
model e.g. transit, model3 second half of the blueprint id
base type car / truck / van / bus / motorcycle / bicycle Traffic Manager and most example scripts filter on it
generation 1 / 2 / 3 asset generation the attribute claims
wheel radius centimetres PhysX sizes the suspension from it and nothing in the mesh states it

Optional and worth offering: --wheel-width (defaults to 45% of the radius), --wheel-mass, --steer-angle (default 70°), --special-type (electric, emergency, taxi), --has-lights, --object-type.

Wheel radius is the one number with physical consequences: too small and the car sits in the road, too large and it bounces. Measure it in the authoring scene; failing that, a normal car's wheel diameter is roughly a third of its total height.

Step 1: Check the input file — ALWAYS FIRST

python3 scripts/check_input.py ~/models/SK_MyCar.fbx

Expected input, in one place:

requirement detail
format FBX, binary or ASCII. Nothing else is importable — .ma, .mb, .blend, .max, .c4d, .obj, USD, glTF, COLLADA all fail here
kind a skinned/skeletal mesh whose wheels are BONES. A rigid body is a prop, not a vehicle
rig the four canonical wheel bones: Wheel_Front_Left, Wheel_Front_Right, Wheel_Rear_Left, Wheel_Rear_Right, plus a chassis bone (Vehicle_Base by convention; otherwise inferred)
textures embedded (FBX export option "Embed Media") or texture files beside the FBX. Absolute paths from the author's machine resolve nowhere
contents one vehicle per file; animation is not needed and is not imported
units authored in cm or m — the importer converts scene units
known separately the wheel radius in cm. It is not in the file and PhysX sizes the suspension from it

Exit codes: 0 usable, 1 wheel bones missing, 2 unusable (wrong format, or not skinned).

[input] SK_Ambulance_export.fbx  2493 KB
[input] PASS  binary FBX
[input] PASS  skinned
[input] PASS  all 4 wheel bones present

Extra bones beyond the wheels and chassis are fine — doors, steering wheel, suspension helpers all pass. The texture line is a warning, never fatal.

import_vehicle.py runs this itself and refuses on a 1 or 2.

Step 2: Check prerequisites

bash scripts/check_env.sh

Beyond a runnable editor this checks the things no step here can create: CarlaTools built with VehicleAuthoringLibrary (hard blocker — see C4), add_vehicle_to_vehicle_factory.py, the donor vehicle blueprint, its four donor wheel blueprints, the donor anim blueprint, and that `VehicleF

अक्सर पूछे जाने वाले सवाल

कार मॉडल में क्या होना चाहिए?

यह एक स्केलेटन मॉडल होना चाहिए, जिसमें चारों पहिए CARLA की अपेक्षित नामों वाली बोन हों।

इम्पोर्ट के लिए कौन-से विवरण चाहिए?

ब्रांड, मॉडल, बेस प्रकार, पीढ़ी और पहिए का आकार, जो स्किल सबसे पहले पूछती है।

क्या कार अंतर्निहित वाहनों की तरह चलेगी?

हाँ। इम्पोर्ट होने के बाद वह स्पॉन होती है और मूल CARLA वाहन की तरह नियंत्रित की जा सकती है।

जानकारी

लेखक का मूल विवरण

Imports an FBX vehicle into a CARLA source build as a spawnable vehicle.<make>.<model> — checks the FBX carries CARLA's 4-wheel bone rig, imports the mesh, then assembles the vehicle through CarlaTools' VehicleAuthoringLibrary (physics asset with kinematic wheel bodies, retargeted anim blueprint, four configured wheel blueprints, the vehicle blueprint), registers it in VehicleFactory through CARLA's own add_vehicle_to_vehicle_factory.py, and verifies it spawns, drives and steers. Use when the user asks to "add a car/truck/van to CARLA", "import a vehicle FBX", or needs a custom drivable vehicl

repo: carla-simulator/carla

लोकप्रियता

GitHub स्टार
15k
रैंकिंग में स्थान
#11124
लाइसेंस
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