This document provides step-by-step instructions for installing and setting up the environment for ApolloSimFuzz.
Before installation, please ensure the following dependencies are available on your system:
⚠️ GPU support is required for running Baidu Apollo modules.
We provide a unified bash script that automatically performs the following steps:
- Downloads Baidu Apollo
- Creates the corresponding Conda environment
- Builds the Docker image for TrafficSandbox
Run the installation script:
bash install.shIf the installation is successful, you should see the following output:
[ApolloSimFuzz] Installation completed successfully.
[ApolloSimFuzz] Can use conda environment: apollosimfuzz-7.0
After installation, the following artifacts should be available:
-
A new directory:
apollo/ -
A new Docker image (verify using
docker images):drivora/sandbox:latest
Apollo must be compiled manually after the initial setup.
cd apolloApply the patches located in:
apollo_bridge/patches/
Specifically:
-
Move
apollo_bridge/patches/dev_start_ctn.shto:apollo/docker/scripts/ -
Replace the following file to resolve build issues:
apollo/WORKSPACEwith:
apollo_bridge/patches/WORKSPACE
bash docker/scripts/dev_start.shYou should see a success message indicating that the container has started correctly.
bash docker/scripts/dev_into.sh
./apollo.sh build⏱️ The build process may take a significant amount of time depending on your hardware configuration.
If the TrafficSandbox Docker image was not successfully built during the initial installation, you can build it manually as follows.
cd TrafficSandboxbash build.shAfter the build completes, verify the image:
docker images | grep drivora/sandboxYou should see the following output:
drivora/sandbox latest
Check and modify config.yaml and then execute:
python start_fuzzer.py