-
Notifications
You must be signed in to change notification settings - Fork 0
Development VM Setup
The IRIS development environment is meant to be consistent among all collaborators as time spent configuring dependencies removes time from developing meaningful robot systems. This can be tricky as our development environment requires not only specific dependencies but also a specific operating system. Therefore it is recommended to develop in a virtual machine (vm) such that all development is isolated from the developer's host operating system so any changes to dependencies can be quickly and safely made. This is also necessary for students to keep their host operating system safe from any operating system level changes that might be done in the vm. The recommended and guaranteed way to setup your development environment is to use the preconfigured vm we provide.
-
Windows:
- VMWare Virtual Machine:
- Follow the VMWare Installation Instructions
- Download the preconfigured VMWare Virtual Machine Folder for the environment you want from the UofIBox.
- Follow the Preconfigured VM Setup Instructions
- Dual Boot:
- Follow a tutorial on setting up dual boot.
- Follow the Detailed VM Setup Instructions.
- VMWare Virtual Machine:
-
Linux:
- Follow the Detailed VM Setup Instructions.
-
MAC:
- Intel MAC:
- Virtual Box:
- Download and Install (Virtual Box)[https://www.virtualbox.org/].
- Create an virtual machine with similar features to that in the Configure VMWare Virtual Machine section.
- Follow the Installing ROS 2 Humble instructions.
- Virtual Box:
- M1 MAC:
- Docker Container:
- Learn how to create an Ubuntu docker container with similar features to that in the Configure VMWare Virtual Machine section.
- Follow the Installing ROS 2 Humble instructions.
- Docker Container:
- Intel MAC:
- Download and Install VMWare Workstation Player.
- No license key is needed and it is recommended that the enhanced keyboard drivers be installed during the setup process.
- Open WMware Workstation Player
- Select "Open A Virtual Machine"
- Navigate to the preconfigured VM folder, open that folder and select the .vmx file. Press "Open".
- Select "Copied It" when prompted.
- Open the terminal application and run the following:
sudo apt-get update && sudo apt-get upgrade
- Clone the GitHub repo into the "~/colcon_ws/src" folder using the following command.
cd ~/colcon_ws/src && git clone https://github.com/IllinoisRoboticsInSpace/IRIS-2023.git
- Install Repo Dependencies and Make Packages Available in ROS
rosdep install -i --from-path src --rosdistro $ROS_DISTRO -y
colcon build
source ~/colcon_ws/install/setup.bash
- Username: iris
- Computer name: iris-vm
- Password (The literal space character): " "
- For Galactic Ubuntu 20 Focal:
- Download the 64-bit PC (AMD64) desktop image.
- For Humble Ubuntu 22 Focal:
- Download the 64-bit PC (AMD64) desktop image.
- In the home menu select "Create a New Virtual Machine"
- Select "Browse" and select the Ubuntu image.
- Set the Easy Install Information to that in the VMWare Installation Instructions section.
- The "Full Name" can be set to the "User name".
- Set the "Virtual machine name" in our case we use "Ubuntu 22 Humble IRIS Base VM" and choose a location to store it (it is recommended to name the folder as the name of the virtual machine.
- Set the "Maximum disk size (GB)" to at least 30 GB.
- Select "Split virtual disk into multiple files"
- Select "Customize Hardware" and set the following:
- Set the RAM to a minimum of 5GB (5120 MB).
- Set the number of processors to 8.
- Select the "Printer" device and click "Remove"
- Power on the virtual machine to complete the installation process.
- Select Keyboard
- Select Minimal Installation
- Select "Erase disk and install Ubuntu"
- Press "Install Now" and "Continue"
- Select Timezone and press "Continue"
- Set to "iris"
- Set <Your computer's name> to "iris-vm"
- Set to "iris".
- Set and to " ". Literally just the space character.
- Skip "Online Accounts", Press Next on "Livepatch", Select "No, don't send system info", Press Next, Press Next on "Welcome to Ubuntu", Select Done on "Ready to go".
- If the Software Updater application opens up close it.
Setup ROS 2 Install using debian packages by running the following commands in order:
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
sudo apt update && sudo apt install curl gnupg lsb-release
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(source /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update
sudo apt upgrade
Install Humble:
sudo apt install ros-humble-desktop
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
mkdir -p ~/colcon_ws/src # Makes colcon workspace location
Install Galactic:
sudo apt install ros-galactic-desktop
echo "source /opt/ros/galactic/setup.bash" >> ~/.bashrc
mkdir -p ~/colcon_ws/src # Makes colcon workspace location
Install Necessary Utilities: git, colcon, rosdep
sudo apt-get install git python3-colcon-common-extensions python3-rosdep
sudo rosdep init # Can fail if already initialized previously, therefore disregard error
rosdep update
Install Nav2
sudo apt install ros-$ROS_DISTRO-navigation2
sudo apt install ros-$ROS_DISTRO-nav2-bringup
- Follow the instructions in the Arduino Environment Section.
- For Ubuntu 20 Galactic ((Instructions)[https://github.com/IntelRealSense/realsense-ros/tree/ros2]):
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
sudo add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" -u
sudo apt-get install librealsense2-dkms librealsense2-utils librealsense2-dev librealsense2-dbg
cd ~/colcon_ws/src/
git clone --depth 1 --branch `git ls-remote --tags https://github.com/IntelRealSense/realsense-ros.git | grep -Po "(?<=tags/)3.\d+\.\d+" | sort -V | tail -1` https://github.com/IntelRealSense/realsense-ros.git
cd ~/colcon_ws
rosdep install -i --from-path src --rosdistro $ROS_DISTRO --skip-keys=librealsense2 -y
colcon build
source ~/colcon_ws/install/setup.bash
- For Ubuntu 22 Humble ((Fix)[https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common/blob/main/docs/troubleshooting.md#realsense-driver-doesnt-work-with-ros2-humble], (Instructions)[https://github.com/IntelRealSense/realsense-ros/tree/ros2-beta]):
- Go into the "Ubuntu Software" app and install vscode.
- Remove all attached CD/DVD and Floppy disks from the VM using the VM settings menu while the VM is powered off.
- Go to the Ubuntu settings under "Power" and set "Screen Blank" to "Never".