Skip to content

mmr-driverless/acs_cosim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACS CoSimulator

Last update

Physics simulator based on Assetto Corsa.

Setup

Tools

  • Windows
  • Microsoft Visual Studio 2022
  • C++ 20
  • C++ desktop app development package
  • Windows SDK
  • Assetto Corsa

Dependencies

Installing

Detours:

  1. Clone the repository
  2. Inside of Dependencies create a folder Detours
  3. Clone the repository Detours inside of Dependencies/Detours
  4. Build Detours referring to the documentation, at the end of the process you should be able to find the folder Dependencies/Detours/lib.X64

ZeroMQ:

  1. Clone ZeroMQ in the Dependencies folder
  2. Build however you want (vcpkg recommended, from the zmqlib README)

Acs_cosim_interface

  1. Open x64 Native Tools Command Prompt for VS with administrator privileges
  2. Cd to the acs_cosim_interface folder and create an out folder
  3. Get inside the out folder and run cmake ..
  4. When that has finished run msbuild INSTALL.vcproj

Running

  1. Open the MMR_Simulator_DLL solution in Visual Studio
  2. Build the solution (Menu -> Build -> Build Solution)
  3. Open the Launcher solution in Visual Studio
  4. Simply start the program by pressing the play button or Ctrl-F5

Now you should see two terminals being opened and then Assetto Corsa launches, then gets stuck waiting for commands from the Simulator ROS Node.

Troubleshooting

If building MMR_Simulator_DLL fails, and the message refers to ZeroMQ, you probably need to change the path of where built ZeroMQ files are:

  1. go to acs_cosim_interface folder
  2. open CMakeLists.txt in an editor
  3. change the path of ZeroMQ

If starting the program raises an error requiring for some dll, find the dll path in the build directories and add it to the PATH environment variable.