This tutorial is to help members setup their own computers enviroments to work on S.O.N.I.A. projects. This tutorial is currently setup for Software members.
The first situation is where there is the development environment is Linux.
For our project, the base system we use is ROS2 Humble Hawksbill. As such, we are compatible with two versions of Ubuntu: 20.04 and 22.04.
For Ubuntu-22.04 the simplest process is to follow the steps defined here: Install ROS2 Humble Deb.
For Ubuntu-20.04 there are no binaries available, this means that we will need to build the ROS2 library from source. This can be done using this tutorial but please note where you save the project as it will be needed later.
The next step is to setup the SONIA environment. To do so, we recommend cloning the sonia_home project. You can place this project anywhere you like but we recommend your home directory.
Next, you would want to enter the directory and run the setup script:
./sonia_setup.bash
This command does a few things:
.env file within sonia_home and set 2 variables.
SONIA_WS=... I would recommend changing this to where ever you want to have your ros2_sonia_ws (this is where all the code will be saved)ROS_WS_SETUP=... If you setup on Ubuntu 22.04 you should not need to change this value. If you setup on Ubuntu 20.04, change this to where the ros_humble folder is.Now your environment should be setup!
Please let us know if there is something that is not working!