⭐ Star us on GitHub — your support motivates us a lot!
This codebase contains a productionizable and safety certifiable implementation of an open-source L2 ADAS system called Vision Pilot.
Vision Pilot is designed to be integrated with automotive OEMs and Tier-1 suppliers in series production passenger cars, and the system can optionally be adopted for transportation and logistics use-cases in buses and trucks.
We offer the complete codebase as free and fully open-source, including AI model weights to help democratize access to this vital technology. Vision Pilot is available under the permissive Apache 2.0 license and can freely be used for both commercial and research purposes.
Vision Pilot is designed to support basic/entry L2 ADAS features for in-lane autonomous driving including the following features:
- ACC - autonomous cruise control
- FCW - forward collision warning
- AEB - autonomous emergency braking
- LKAS - lane keep assist
- LDW - lane departure warning
- ISA - intelligent speed assist
- Autopilot - single-lane hands-free highway autopilot
Sensor specification:
Vision Pilot can be run with a single, front-facing, monocular camera with 52 - 55 degree horizontal field-of-view, and 1MP - 2MP resolution.
We utilize a Hybrid End-to-End AI Architecture as the core of Vision Pilot in which data is processed in parallel by perception AI models for safety, and End-to-End AI models for performance.
Specifically, Vision Pilot leverages three open-source AI models developed by the Autoware Foundation, these are:
- AutoSpeed - Closest in-path object detection
- AutoSteer - Ego path future waypoint detection
- AutoDrive - End to End distance/in-path object presence detection and road curvature estimation
Vision Pilot does not require 3D high definition maps and operates in a 'mapless' mode to follow the road in real-time.
For more information about Vision Pilot, please view our introductory presentation at this link
There are three ways you can build and run Vision Pilot - we provide example data which you can use for visualization and evaluation, select from the drop down options below:
Option 1 - Download and build from source
To get started with the project, download the source code from:
git clone https://github.com/autowarefoundation/autoware_vision_pilot.gitVisionPilot uses ONNX Runtime to run the AI models. The GitHub releases of ONNX Runtime return 404 at the moment, so the CPU and GPU routes below download ONNX Runtime from NuGet.
Pick one of the three routes below and follow only that route. Each route ends with the value of
engine.providerto set inconfig/vision_pilot.conf. Set this value before you build, because the build copies theconfigdirectory.
| Route | Pick this route if | ONNX Runtime | engine.provider |
|---|---|---|---|
| 1. CPU | You have no NVIDIA GPU, or you use arm64. | Microsoft.ML.OnnxRuntime 1.32.0 | cpu |
| 2. GPU | You have an NVIDIA GPU on x64. | Microsoft.ML.OnnxRuntime.Gpu.Linux 1.32.0, CUDA 13 | cuda or tensorrt |
| 3. ROS 2 | You build with rosdep in a ROS 2 environment. |
onnxruntime_vendor, CPU only |
cpu |
Route 1: CPU (no NVIDIA GPU, x64 or arm64)
These commands make the CPU build in onnxruntime/. Run all commands of this route in one directory, for example your home directory.
- Install the download tools.
sudo apt install wget unzip- Download the package and make sure that the SHA-256 is correct. On arm64, set
ORT_ARCH=arm64.
ORT_VERSION=1.32.0
ORT_ARCH=x64
wget -O ort.nupkg "https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/${ORT_VERSION}/microsoft.ml.onnxruntime.${ORT_VERSION}.nupkg"
echo "a9150bc2992cbbb6722070da9910e1ffa989a8bfc67bdd5bb8e745ca755641db ort.nupkg" | sha256sum -c -- Extract the headers and the libraries, then delete the downloaded files.
unzip -q ort.nupkg 'build/native/include/*' "runtimes/linux-${ORT_ARCH}/native/*" -d ort_extract
mkdir -p onnxruntime/include onnxruntime/lib
cp -r ort_extract/build/native/include/* onnxruntime/include/
cp ort_extract/runtimes/linux-${ORT_ARCH}/native/*.so onnxruntime/lib/
ln -sf libonnxruntime.so onnxruntime/lib/libonnxruntime.so.1
rm -rf ort.nupkg ort_extract- Get the absolute path of
onnxruntime/. Use this path for<ONNX_RUNTIME_ROOT_PATH>in the build commands below. Do not use a relative path, because CMake resolves it from the build directory.
realpath onnxruntime- In
VisionPilot/config/vision_pilot.conf, setengine.provider = cpu.
Route 2: GPU (NVIDIA GPU, x64, CUDA 13)
The GPU route needs an NVIDIA GPU, x64, and Ubuntu 24.04. The NuGet package for ONNX Runtime 1.32.0 uses CUDA 13, cuDNN 9, and TensorRT 10. Run all commands of this route in one directory, for example your home directory.
-
Install the NVIDIA driver and the CUDA 13 toolkit. Use the instructions on the CUDA downloads page. The toolkit installer adds the NVIDIA apt repository.
-
Install cuDNN and TensorRT from the NVIDIA apt repository, and the download tools.
sudo apt install libcudnn9-cuda-13 libnvinfer10 libnvinfer-plugin10 libnvonnxparsers10 wget unzip- Download the package and make sure that the SHA-256 is correct.
ORT_VERSION=1.32.0
wget -O ort-gpu.nupkg "https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime.gpu.linux/${ORT_VERSION}/microsoft.ml.onnxruntime.gpu.linux.${ORT_VERSION}.nupkg"
echo "3d01949bc846d41961b37988d1e63d782a6effcb93b650a6e0577fef982d38b5 ort-gpu.nupkg" | sha256sum -c -- Extract the headers and the libraries, then delete the downloaded files. The GPU package keeps its headers in
buildTransitive/native/include/.
unzip -q ort-gpu.nupkg 'buildTransitive/native/include/*' 'runtimes/linux-x64/native/*' -d ort_extract
mkdir -p onnxruntime/include onnxruntime/lib
cp -r ort_extract/buildTransitive/native/include/* onnxruntime/include/
cp ort_extract/runtimes/linux-x64/native/*.so onnxruntime/lib/
ln -sf libonnxruntime.so onnxruntime/lib/libonnxruntime.so.1
rm -rf ort-gpu.nupkg ort_extract- Make sure that the CUDA and TensorRT libraries load. These commands must print nothing. If a library shows
not found, add its directory toLD_LIBRARY_PATH, for example/usr/local/cuda/lib64.
ldd onnxruntime/lib/libonnxruntime_providers_cuda.so | grep "not found"
ldd onnxruntime/lib/libonnxruntime_providers_tensorrt.so | grep "not found"- Get the absolute path of
onnxruntime/. Use this path for<ONNX_RUNTIME_ROOT_PATH>in the build commands below. Do not use a relative path, because CMake resolves it from the build directory.
realpath onnxruntime- In
VisionPilot/config/vision_pilot.conf, setengine.provider = cudaorengine.provider = tensorrt. Withtensorrt, the first run builds the TensorRT engines and takes several minutes. Later runs read the engines fromengine.cache_dir.
Route 3: ROS 2 (rosdep and onnxruntime_vendor)
If you build in a sourced ROS 2 environment that has the onnxruntime_vendor package (for example ros-jazzy-onnxruntime-vendor, which rosdep install installs), you do not need to download ONNX Runtime.
- Leave out
-DONNXRUNTIME_ROOTin the build commands below. - In
VisionPilot/config/vision_pilot.conf, setengine.provider = cpu.
Build the project:
cd VisionPilot mkdir build && cd build cmake -DONNXRUNTIME_ROOT=<ONNX_RUNTIME_ROOT_PATH> ../or with ROS 2 support
cmake -DONNXRUNTIME_ROOT=<ONNX_RUNTIME_ROOT_PATH> -DENABLE_ROS2_INTERFACE=ON ../or with the optional Occupancy BEV window (heuristic 3D / bird's-eye panel beside the HUD; default is OFF):
cmake -DONNXRUNTIME_ROOT=<ONNX_RUNTIME_ROOT_PATH> -DENABLE_OCCUPANCY=ON ../ makeThis will build the project and create VisionPilot executable inside the build directory.
See VisionPilot/modules/visualization/README.md for Occupancy controls (orbit / pan / zoom).
OpenLane Dataset:
To test Vision Pilot using open loop scenario testing, first download the sample data from the Google Drive directory.
This directory contains video composed of image data from sequences in the appropriate dataset and vehicle speed data extracted from the dataset.
Update VisionPilot config files vision_pilot.conf inside config directory and set:
source.mode = video
and vision_pilot_test.conf set:
source.input_video = <INPUT_VIDEO_FILE_PATH>
source.input_vehicle_speed = <INPUT_VEHICLE_SPEED_FILE_PATH>
to point to the appropriate video file path and vehicle speed file path.
Note: When VisionPilot built from source, update config files before the build.
Run VisionPilot from inside build directory
./VisionPilot
To build Debian DEB package for VisionPilot run
cpack -G DEBTo build Debian DEB package for VisionPilot with CPU support build VisionPilot with
cmake -DONNXRUNTIME_ROOT=<ONNX_RUNTIME_ROOT_PATH> -DGPU=OFF ../ make cpack -G DEBOption 2 - Use the pre-built Debian package
This method is recommended in case new system installation and cuda dependencies are not installed yet.
Download VisionPilot prebuilt binary.
Install the .deb package
sudo apt install ./VisionPilot-1.0-x86_64.debReboot the system, cuda dependencies for VisionPilot installed.
OpenLane Dataset:
To test Vision Pilot using open loop scenario testing, first download the sample data from the Google Drive directory.
This directory contains video composed of image data from sequences in the appropriate dataset and vehicle speed data extracted from the dataset.
Update VisionPilot config files vision_pilot.conf set:
source.mode = video
and vision_pilot_test.conf set:
source.input_video = <INPUT_VIDEO_FILE_PATH>
source.input_vehicle_speed = <INPUT_VEHICLE_SPEED_FILE_PATH>
to point to the appropriate video file path and vehicle speed file path.
Note: When VisionPilot installed from prebuilt binary update the config files inside:
/usr/share/visionpilot/config
directory.
Run VisionPilot from the command line
VisionPilot
Option 3 - Use the Docker container
To run Vision Pilot inside a Docker container, build the container using the Dockerfiles provided in the docker directory of the repository. Docker containers can be built with GPU/CPU support, NO_ROS2/ROS 2 support, and optional Occupancy BEV support.
To build the container, go to the docker subdirectory and run the following commands:
Default is GPU support NO ROS 2 support
./build.sh --gpu --ros2 to build with CPU support
./build.sh --cputo enable the optional Occupancy BEV window (pass alongside --gpu or --cpu):
./build.sh --gpu --occupancyTo run the container use the run.sh script. For example to run the container with CPU support
./run.sh --cpuor with GPU support and ROS 2 support
./run.sh --gpu --ros2Note: Before building the container update the config files inside: config directory.
If building with CPU support update config/vision_pilot.conf
engine.provider = cpu
and when building with ros2 support update
source.mode = ros2
When using video input source update config/vision_pilot_test.conf
source.input_video = <INPUT_VIDEO_FILE_PATH>
source.input_vehicle_speed = <INPUT_VEHICLE_SPEED_FILE_PATH>
Input directory can be modified in the source by using run.sh script switch
./run.sh --gpu --data <HOST_DIR>:<CONTAINER_DIR>Note: <CONTAINER_DIR> need to be the same as during the container build.
We support the CARLA Simulator version 0.9.16 for closed-loop testing of Vision Pilot in a virtual environment
CARLA 0.9.16 with Unreal Engine 4: https://carla.readthedocs.io/en/latest/
-
Download binaries and dependencies following official documentation: https://carla-ue5.readthedocs.io/en/latest/start_quickstart/#
-
If your GPU has 6GB or less of VRAM then you should please follow the modifications specified in https://gist.github.com/xmfcx/a5e32fdecfcd85c6cc9d472ce7a3a98d to run CARLA with lower VRAM requirements using docker (tested with RTX3060 laptop version)
Change the file path below to where CARLA is downloaded and run. Make sure to change the --volume path to your local
specific directory path.
docker run -it --rm \
--runtime=nvidia \ # Use NVIDIA runtime for GPU access
--net=host \ # Use the host's network stack (helps with networking/performance)
--env=DISPLAY=$DISPLAY \ # Pass the host's DISPLAY environment variable (for GUI forwarding)
--env=NVIDIA_VISIBLE_DEVICES=all \ # Expose all GPUs to the container
--env=NVIDIA_DRIVER_CAPABILITIES=all \ # Enable all driver capabilities (graphics, compute, etc.)
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ # Mount X11 UNIX socket to enable GUI apps to display
--volume="$HOME/Downloads/carla/CARLA_0.9.16/:/home/carla/host-carla" \
# CHANGE AS NEEDED: Mount your local CARLA folder into the container
--workdir="/home/carla/host-carla" \ # Set the working directory to the mounted CARLA folder
carlasim/carla:0.9.16 \ # Use the official CARLA Docker image, version 0.9.16
bash CarlaUE4.sh -nosound # Run the CARLA startup script with -nosound flagTo run with ROS 2 native interface, add --ros2 at the end
Update vision_pilot.conf set source.mode
source.mode = ros2 and also vision_pilot_ros2.conf set source.input_camera_topic
source.input_camera_topic = /carla/hero/main_cam/imageBuild VisionPilot with ROS 2 support
cmake -DONNXRUNTIME_ROOT=<ONNX_RUNTIME_ROOT_PATH> -DENABLE_ROS2_INTERFACE=ON ../Go to Simulation/CARLA/ROS2 directory and build the CARLA ROS 2 bridge
colcon buildSource the installation directory
source ./install/setup.bash ros2 launch carla_bridge_bringup carla_bridge.launch.py host:=<HOST> port:=<PORT>Note: If you are running CARLA on a different machine to the one which is running Vision Pilot you need to specify the host and port parameters. Set the IP address of the machine running CARLA as a host and set the port on which CARLA is publishing as a port.
Go to VisionPilot build directory and run the VisionPilot
./VisionPilotIn order to run Vision Pilot with your own camera, you will need to calibrate your camera and provide the calibration information to the Vision Pilot app - this is important for Vision Pilot to accurately measure the shape of the road and the distance to objects.
Please follow the steps in the calibration guide and save the calibration yaml file in the Vision Pilot config folder and overwrite the data of the H.yaml file with your calibration file parameters - we suggest you retain a copy of the original H.yaml parameters so that you can run Vision Pilot on our example data.
- Support for fusion between front-facing camera and automotive RADAR
- Support for 8MP camera resolution with 120 degree horizontal field-of-view
- Safety Verification and Automotive Standards Compliance (ISO26262, ISO8800)
To learn more about how to participate in this project, please read the onboarding guide


