- Download or clone via git this repository;
- Install one of the following IDE:
- Visual studio code (https://code.visualstudio.com/)
- CLion jetbrains (https://www.jetbrains.com/clion/)
- Follow the guide for the Agent Setup;
- Download or clone the simulation environment (https://github.com/tonegas/PyDrivingSim);
- Follow the guide for the evirorment setup;
- Follow the guide to install wsl
- Open a Linux shell and run:
sudo apt-get update
sudo apt-get install cmake
sudo apt-get install clang- Copy from the folder lib/win_WLS the communication library to the folder lib/
- Compile the agent:
-
In Clion:
- Open the folder project and create Debug and Release profile
- Select the correct compiler WLS (follow the guide https://www.jetbrains.com/help/clion/how-to-create-toolchain-in-clion.html)
- Compile the agent
-
In a wsl terminal
- Compile the agent using the following command:
cmake . make
- Compile the agent using the following command:
-
- Run the agent
- Install visual studio professional (https://visualstudio.microsoft.com/it/vs/professional/)
- Install cmake, clang and make
- Copy from the folder lib/win_visual_studio the communication library to the folder lib/
- Compile the agent:
- In Clion:
- Open the folder project (in CLion: create Debug and Release profile);
- Select the correct compiler Visual Studio (https://www.jetbrains.com/help/clion/how-to-create-toolchain-in-clion.html)
- Compile the agent
- In Clion:
- Run the agent
- Install MSYS2 https://www.msys2.org/
- Install cmake, clang and make (using the shell of Msys2)
pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-clang
pacman -S mingw-w64-x86_64-make- Copy from the folder lib/win_mingw the communication library to the folder lib/
- Compile the agent:
-
In Clion:
- Open the folder project and create Debug and Release profile
- Select the correct compiler WLS (follow the guide https://www.jetbrains.com/help/clion/how-to-create-toolchain-in-clion.html)
- Compile the agent
-
In a windows terminal (cmd):
- check which compiler is used:
cmake --help
- run cmake:
cmake -G "MSYS Makefiles"- Build the agent:
cmake --build .
-
- Run the agent
- Open a Linux shell and run:
sudo apt-get update
sudo apt-get install cmake
sudo apt-get install clang- Copy from the folder lib/linux or lib/linux_fPIC the communication library to the folder lib/
- Compile the agent:
- In Clion:
- Open the folder project and create Debug and Release profile
- Select the correct compiler WLS (follow the guide https://www.jetbrains.com/help/clion/how-to-create-toolchain-in-clion.html)
- Compile the agent
- In the linux terminal:
- Compile the agent using the following command:
cmake . make
- In Clion:
- Run the agent
- Open a shell and run:
brew update
brew install cmake
brew install clang- Copy from the folder lib/macos or lib/macos_x86 the communication library to the folder lib/
- Compile the agent:
- In Clion:
- Open the folder project and create Debug and Release profile
- Select the correct compiler WLS (follow the guide https://www.jetbrains.com/help/clion/how-to-create-toolchain-in-clion.html)
- Compile the agent
- In the linux terminal:
- Compile the agent using the following command:
cmake . make
- In Clion:
- Run the agent