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.
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.
-
Make a Python environment with the build tools.
-
Build ACRES Core and run its fast tests.
The module
acres_coreis now inGame/Core/Build. -
Build the run-time library and run its tests.
The module
_acres_runtimeandlibacres_runtime.soare now inVehicle/Runtime/Build. -
Put the Python packages on the path.
You can also install the packages:
pip install --no-build-isolation --no-deps -e .. -
Do a check of the installation.
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#
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.shmust be in the engine folder. - Get the LFS files:
git lfs pull.
-
Set the variable
UEto the engine folder. -
Apply the engine fixes of ACRES.
-
Save your work and close the Unreal editor. The next script stops each running editor and game.
-
Package the game.
The last line is
PACKAGE_EXIT 0when the build is correct. The game is inPackaged/Linux. -
Start the game.
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#
-
Make the conda environment
ros2one time. -
Open a ROS 2 shell. The script activates the environment and applies the DDS fence.
-
Build the workspace.
-
Source the setup script again to get the built packages.
The vehicle node links libacres_runtime.so of Vehicle/Runtime/Build. Build the run-time library before the workspace.
Build the Documentation#
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). |