Architecture#
This page gives the parts of ACRES and the connections between them. Each part has its own page in the section Components.
The Parts#
| Part | Folder | Language | Function | Page |
|---|---|---|---|---|
| The game | Game/ |
C++, Unreal Engine 5.8 | The full simulator: the farm, the two vehicles, the implements, the weather and all sensors. | The Game |
| ACRES Core | Game/Core/ |
C++, Python module acres_core |
The Polaris on the same terrain, soil and crops, with a ray-cast LiDAR. No Unreal, no GPU. | ACRES Core |
| The run-time library | Vehicle/Runtime/ |
C++, Python package acres_fleet |
The vehicle software: missions, routes, planner, driver, shield, checker, skills and fleets. It contains ACRES Core. | Run-Time Library |
| The batched simulator | Fast/ |
Python, PyTorch | Thousands of simplified Polaris drives on a GPU. | Batched Simulator |
| The map pipeline | Map/ |
Python, package acres_map |
The map layers and the map products. | Map Pipeline |
| The ROS 2 workspace | Vehicle/ROS/ |
C++, Python | The ROS 2 bridge, the Core server, the vehicle node and the messages. | ROS 2 Workspace |
| The LiDAR data sets | Data/ |
Python, package acres_data |
One LiDAR format for simulated and real scans. | LiDAR Data Sets |
| The configuration | Config/ |
JSON | The parameters of the vehicle software. | Files and Formats |
| The validation | Results/ |
Python, JSON | The comparisons of the models with real data. | Validation Results |
| The proofs | Vehicle/Proofs/ |
Lean 4 | The Lean models of the shield, the checker and the planner. | Formal Verification |
| The tools | Tools/ |
Python, shell | Game control, performance, scene and asset tools, the local CI. | Commands |
Shared Model Code#
The game and ACRES Core compile the same engine-free model files in Game/Source/Acres. These files have the Polaris, the tire and soil, the power, the surfaces, the farm, the weather and the episode log. These files use standard C++ and SI units, and no Unreal type. The game adds the Unreal layer. ACRES Core adds its own rigid body, terrain and ray-cast LiDAR.
Both simulators read the same parameter files and map products (Game/Content/Simulation, Game/Content/SimulationMaps) and the same configuration files (Config/).
The Sockets#
A session of the game opens three local sockets: the vehicle bridge, the sensor stream and the simulator control channel. The server core_sim of ACRES Core opens the same sockets. The ROS 2 bridge sim_bridge connects to them and publishes the topics of the real vehicle. Thus one bridge operates with the two simulators.
Sockets of a Session gives the protocols.
Data Flow of a Mission#
acres_fleetorvehicle_nodeasks the run-time library for a mission, for example the scout loop of F56.- The planner of the library makes the route from the map products and the cost tables of the map.
- In each control step of 0.1 s, the library makes a command from the default driver or a checked chunk. Then the launch hold, the shield and the gear logic apply.
- The command goes to the physics. This is ACRES Core in the process, the game or
core_simthrough the sockets, or the real vehicle. - The state, the scan and the reports come back for the next step.
- The episode log records the steps. The game can replay the log to render it.
Identity of a Result#
A simulated result has two identities: the map hash of the map products and the simulation version of the build. The planner refuses cost tables of a different map. Only Vehicle/Runtime/Reference/refresh.sh changes the simulation version.