Skip to content

Install#

This page gives the installation of each part of ACRES on Linux. You can install only the parts that you need.

Part Needs Section
ACRES Core and the run-time library A C++20 compiler, CMake, Ninja, Python with pybind11 and numpy Build the Libraries
The map tools The packages of Map/requirements.txt Install the Map Tools
The game Unreal Engine 5.8, a GPU with Vulkan Build the Game
The ROS 2 workspace Conda Install ROS 2
The documentation The packages of Docs/requirements.txt Build the Documentation

Get the Code#

The map data and the assets are in Git LFS. Install Git LFS before you clone.

git lfs install
git clone https://github.com/AnugunjNaman/ACRES.git
cd ACRES

A test that needs map data of Git LFS is skipped when the data is not there.

Build the Libraries#

This procedure installs the Python parts only. It needs no game.

  1. Make a Python environment with the build tools.

    python -m pip install pybind11 numpy mcap mcap-ros2-support cmake ninja
    
  2. Build ACRES Core and run its fast tests.

    PYTHON=$(command -v python) Game/Core/build.sh
    

    The module acres_core is now in Game/Core/Build.

  3. Build the run-time library and run its tests.

    PYTHON=$(command -v python) Vehicle/Runtime/build.sh
    

    The module _acres_runtime and libacres_runtime.so are now in Vehicle/Runtime/Build.

  4. Put the Python packages on the path.

    export PYTHONPATH=$PWD/Game/Core/Build:$PWD/Fast:$PWD/Benchmark:$PWD/Vehicle:$PWD/Vehicle/Policy
    

    You can also install the packages: pip install --no-build-isolation --no-deps -e ..

  5. Do a check of the installation.

    python -c "import acres_core, acres_fleet as a; print(a.identity()['sim_version'])"
    

    The command prints the simulation version.

The modules are built for the interpreter of PYTHON. Use the same interpreter to import them. acres_fleet needs Python 3.10 or later (pyproject.toml).

Install the Map Tools#

python -m pip install -r Map/requirements.txt

The file also has the packages of the tests and of some calibration tools.

Build the Game#

This procedure builds the full game.

Before you start

  • Build Unreal Engine 5.8 from source. The file Engine/Build/BatchFiles/RunUAT.sh must be in the engine folder.
  • Get the LFS files: git lfs pull.
  1. Set the variable UE to the engine folder.

    export UE=/path/to/UnrealEngine
    
  2. Apply the engine fixes of ACRES.

    Tools/Unreal/apply_patches.sh
    
  3. Save your work and close the Unreal editor. The next script stops each running editor and game.

  4. Package the game.

    Tools/Unreal/package.sh
    

    The last line is PACKAGE_EXIT 0 when the build is correct. The game is in Packaged/Linux.

  5. Start the game.

    Packaged/Linux/Acres.sh -VehicleDemo -Vehicle=polaris
    

To work in the editor, open Game/Acres.uproject with the editor of the same engine. Build and Test Commands gives the options of the package script.

Install ROS 2#

  1. Make the conda environment ros2 one time.

    conda env create -f Vehicle/ROS/Env/environment.yml
    
  2. Open a ROS 2 shell. The script activates the environment and applies the DDS fence.

    source Vehicle/ROS/Env/setup_env.sh
    
  3. Build the workspace.

    cd Vehicle/ROS && colcon build
    
  4. Source the setup script again to get the built packages.

    cd ../.. && source Vehicle/ROS/Env/setup_env.sh
    

The vehicle node links libacres_runtime.so of Vehicle/Runtime/Build. Build the run-time library before the workspace.

Build the Documentation#

python -m pip install -r Docs/requirements.txt
mkdocs build --strict

The conda file Docs/environment.yml makes the same environment (acres-docs).

Problems#

Symptom Cause Correction
pybind11 not found for <python> The Python environment has no pybind11. Run pip install pybind11 in the environment of PYTHON.
Could NOT find Python3 (missing: Python3_INCLUDE_DIRS ...) The interpreter has no header files. Use the Python of a conda environment.
ModuleNotFoundError: No module named 'acres_core' PYTHONPATH does not contain the build folder, or the Python version is different. Set PYTHONPATH as in step 4. Use the interpreter of the build.
libleanshared.so was not found The Lean release is not on the computer. Install the toolchain of Vehicle/Proofs/lean-toolchain with elan, or build without ACRES_RUNTIME_LEAN.
A plan drives the cost tables for approximately 2 minutes. The cache has no tables for the map and the simulation version. Let the drive end. The cache then has the tables.
The map of the game is gray, or assets are missing. Git LFS did not get the assets. Run git lfs pull. Package the game again.
The cook stops with an error about port 8000. An editor or its MCP server operates. Close the editor.
The stage step stops with Permission denied for env. A file env that is not a program is on the PATH before /usr/bin (for example from uv in ~/.local/bin). Put /usr/bin first in PATH. Package the game again.

Requirements#

Item Requirement
Operating system Linux for the packaged game, ACRES Core and ROS 2.
Engine Unreal Engine 5.8, for the game only (Game/Acres.uproject).
Git Git with Git LFS.
GPU Vulkan with hardware ray tracing for the GPU LiDAR. A GPU with less than 11776 MiB gets the render tier low. ACRES Core needs no GPU.
Python Python 3.10 or later with pybind11, numpy, CMake and Ninja for the builds.
ROS 2 ROS 2 Humble from RoboStack in the conda environment ros2 (Vehicle/ROS/Env/environment.yml).