Requierement:
- ROS noetic
- Ubuntu 20.04
- at least opengl 3.3
- Unity personal account: https://unity3d.com/
To install unity in a linux environement, you have to download the unity hub. Please follow this unity tutorial to do so: https://docs.unity3d.com/Manual/GettingStartedInstallingHub.html
Once you have downloaded the unity hub, you will want to download a specific version of unity.
Choose here the 2020.3.19 version, it's the one we are using for now.
While downloading the unity version, you will be prompted to download the desired modules. Select at least Linux. You can chose more than one module, in our case we also want the windows module and the webgl module to compile the solution for these platforms.
To use our simulation you will need to clone this repository in your catkin workspace: https://github.com/sonia-auv/sonia-simulation
To open the repository in unity, return to unity hub and click on ADD
at the top right and select the sonia-simulation repository.
If this does not work, create a New Project
, close it and retry to ADD
sonia-simulation.
You can now open the project and select the desired scene: ~/catkin_ws/sonia-simulation/Assets/Scenes.
Compile your ros_sonia_ws and refer to Ros Communication to launch the simulation.