CARLA simulator#
CARLA is a famous open-source simulator for the autonomous driving research. Autoware Universe includes a bridge package for CARLA, autoware_carla_interface. Projects from the community also connect Autoware to CARLA. The document is to list these projects for anyone who wants to run Autoware with Carla. You can report issues to each project if there is any problem.
Project lists (In alphabetical order)#
autoware_carla_interface#
Autoware ROS package that enables communication between Autoware and CARLA simulator for autonomous driving simulation. It is integrated in autoware_universe and actively maintained to stay compatible with the latest Autoware updates.
- Package Link and Tutorial: autoware_carla_interface.
- Docker Compose demo:
docker/examples/demos/carlain the Autoware repository. It runs CARLA 0.9.16,autoware_carla_interface, and Autoware (e2e_simulator.launch.xmlwithsimulator_type:=carla) in separate containers.
autoware_tensorrt_vad (end-to-end planning)#
TensorRT-optimized Vectorized Autonomous Driving (VAD) node that replaces the traditional perception/localization/planning stack with a single end-to-end model trained on CARLA (Bench2Drive). Ships with a CARLA-focused launch file (vad_carla_tiny.launch.xml) that you start next to e2e_simulator.launch.xml.
- Project Link: autoware_tensorrt_vad (README includes parameters, topics, and model details)
Usage (CARLA E2E mode):
- Build the package and deps:
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to autoware_tensorrt_vad. - Prepare CARLA following
autoware_carla_interface(usecarla_sensor_kitso camera topics match the VAD training order: FRONT, BACK, FRONT_LEFT, BACK_LEFT, FRONT_RIGHT, BACK_RIGHT). - Make sure that the VAD models are downloaded. The
artifactsansible role downloads them to~/autoware_data/ml_models/vad/v0.1. - Start CARLA server (example headless/GPU-friendly):
./CarlaUE4.sh -prefernvidia -quality-level=Low -RenderOffScreen. Launch Autoware in E2E mode:
ros2 launch autoware_launch e2e_simulator.launch.xml \ map_path:=$HOME/autoware_data/maps/Town01 \ vehicle_model:=sample_vehicle \ sensor_model:=carla_sensor_kit \ simulator_type:=carla \ use_e2e_planning:=trueThe
use_e2e_planning:=trueargument makesautoware_carla_interfacepublish the ground-truth localization and start a minimal control stack (a trajectory follower and a vehicle command gate).Start the VAD node in another terminal. The package provides the
vad_carla_tiny.launch.xmllaunch file for it. In Autoware 2.0.0,e2e_simulator.launch.xmldoes not include this file.ros2 launch autoware_tensorrt_vad vad_carla_tiny.launch.xmlThe command in step 5 also starts the localization, perception, planning, and control modules of Autoware. The VAD node and these modules then publish on the same topics, for example
/planning/trajectoryand/perception/object_recognition/objects. Thee2e_simulator.launch.xmlfile haslocalization,perception,planning, andcontrolarguments that turn these modules off. Autoware 2.0.0 has no tested launch command for VAD with CARLA that uses them.
- Build the package and deps:
carla_autoware_bridge#
An addition package to carla_ros_bridge to connect CARLA simulator to Autoware Universe software.
- Project Link: carla_autoware_bridge
- Tutorial: https://github.com/Robotics010/carla_autoware_bridge/blob/master/getting-started.md
open_planner#
Integrated open source planner and related tools for autonomous navigation of autonomous vehicle and mobile robots
- Project Link: open_planner
- Tutorial: https://github.com/ZATiTech/open_planner/blob/humble/op_carla_bridge/README.md
zenoh_carla_bridge#
The project is mainly for controlling multiple vehicles in Carla. It uses Zenoh to bridge the Autoware and Carla and is able to distinguish different messages for different vehicles. Feel free to ask questions and report issues to autoware_carla_launch.
- Project Link:
- autoware_carla_launch: The integrated environment to run the bridge and Autoware easily.
- zenoh_carla_bridge: The bridge implementation.
- Tutorial:
- The documentation of autoware_carla_launch: The official documentation, including installation and several usage scenarios.
- Running Multiple Autoware-Powered Vehicles in Carla using Zenoh: The introduction on Autoware Tech Blog.