Practical engineering guide
What you can build with CARLA and where problems start
CARLA simulates road networks, vehicles, traffic and onboard perception for autonomous driving. Its client-server setup supports synchronized sensor recording, but it is not a general-purpose industrial robot arm simulator.
Download, install and launch CARLA
Choose the CARLA release and server archive for the host OS, extract it, and install the matching Python client in an isolated environment. Start the server executable before running the Python connection check. Replace the package version with the server's exact release.
Download CARLApython -m venv .venv
# Activate the environment first
python -m pip install carla==<server-version>
python -c "import carla; c=carla.Client('localhost',2000); c.set_timeout(10.0); print(c.get_server_version())"A first test you can reproduce
- 01.Install a compatible CARLA server release and matching Python client package. Do not mix the classic and UE5 documentation without checking the version.
- 02.Start the server, load a small town, spawn a test vehicle and attach one camera.
- 03.For sensor datasets, select synchronous mode with fixed_delta_seconds and tick the world from one controlling client.
- 04.Match camera messages to simulation frame IDs and record the vehicle pose for each frame.
Questions that come up during real implementation
Why are my camera frames delayed or mismatched to vehicle states?
GPU cameras may publish frames after a simulation delay. Use synchronous mode and a fixed simulation interval, then collect sensor output by frame ID before advancing the next world tick. Avoid allowing multiple clients to call world.tick independently.
How do I make driving tests repeatable?
Fix the map, initial actors, random seeds where available, simulation interval and traffic behavior. Turn on synchronous mode before loading the world. Recreate the world between trials and record exact software versions and scenario settings.
Can CARLA simulate a mobile manipulator or warehouse robot?
It targets autonomous-driving scenes, vehicle controls and traffic. A warehouse robot with articulated grippers normally needs another simulator for detailed manipulation and contact. Use CARLA when road sensors, weather and vehicle behavior define the task.
Checks before using it on a robot
- Verify sensor calibration matrices and actor pose in the same simulation frame.
- Measure the percentage of missing or late frames under the intended number of cameras.
Official technical reference
https://carla-ue5.readthedocs.io/en/latest/core_synchrony/Compatibility and installation
- Developer
- CARLA project
- License
- Open source
- Operating systems
- Linux, Windows
- ROS support
- ROS, ROS 2
- Languages
- C++, Python
- Installation method
- Official GitHub releases and source build