import-carla-vehicle
What it does
This skill turns a 3D car model into a vehicle that runs in the CARLA simulator. It is for people who need their own car designs tested in the simulation.
When to use it
- βWhen you have a 3D car model and want it to drive in CARLA.
- βWhen you need a custom vehicle to test how your self-driving software handles a specific car.
- βWhen the import stops because the model's wheels are not set up the way CARLA needs.
Skill link
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/import-carla-vehicle/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you import my van 3D model into CARLA as a car I can drive and check that it spawns correctly?β
5 new skills a week. 1 minute to read.
How it works
The agent checks the model's wheel setup first, then imports the mesh and builds the physics and wheel settings. It then registers the car so it appears in the vehicle list like the built-in ones.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Import a vehicle into CARLA
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.
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
FAQ
What does the car model need?
It must be a skeletal model where the four wheels are named bones, using the names CARLA expects.
What details are needed for the import?
The make, model, base type, generation and wheel size, which the skill asks you for first.
Will the car drive like the built-in ones?
Yes. Once imported, it spawns and can be controlled like a native CARLA vehicle.
Details
Original description by the author
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
Popularity
- GitHub stars
- 15k
- Ranking position
- #11124
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
create-leaderboard-route
15kHelps your agent build CARLA Leaderboard route files by placing waypoints and scenario triggers from the simulator camera, then checking and ordering them.
package-leaderboard-agent
15kHelps your agent package a driving agent into a Docker image for CARLA Leaderboard submission, checking the folder layout and testing that the image loads it.
read-leaderboard-results
15kHelps your agent read a CARLA Leaderboard results file, explain each route's score and infractions, and rescore a run under the other rule version.
run-leaderboard-evaluation
15kHelps your agent run the CARLA Leaderboard evaluator on a set of routes with your driving agent, checking the setup first and saving checkpoints you can resume.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.