ROS on your own machine - RobotTeaching/COMP4034 GitHub Wiki
Using the Docker image on your own machine
We have supplied a Docker image for this module that contains everything you need to get going. There are comprehensive install instructions on the Github page, as well as the download for the image itself.
Important: make sure you select the correct branch to download from! The "main" branch is for Windows/Linux systems, and the "macOS" branch is for Macs. You can change the branch from the drop-down underneath the repository name:
Installing ROS2 on your own machine (advanced)
If you would prefer to run ROS on an OS, instead of in a Docker container, you can follow the instructions below.
Important: these instructions are a guide only! The install process will depend on how you plan to run Ubuntu, and what OS/hardware are on your host machine. Therefore, we cannot offer detailed installation support for your own machine.
Step 1: Install Ubuntu 22.04
The version of ROS2 we use requires you to run Ubuntu 22.04 as your operating system. You can do this by dual-booting your machine, or by using a virtual machine software (such as VirtualBox). You can download an Ubuntu image here, then install it using your preferred method.
Step 2: Installing ROS2 Humble
You should follow the installation instructions for Humble, found here. We would recommend using the deb packages for this module, rather than the pre-built binary.
Step 3: Installing TurtleBot3 packages
The TurtleBot3 install pages cover the installation you need on your "remote PC" and on your physical TurtleBot. The "remote PC" in this case is your install of Ubuntu. Since you will be using simulation only, you should only follow the below instructions:
Follow steps 3.1.3 to 3.1.5 from the Quick Start Guide.
Follow all steps in the Simulation Guide.
If you can run the simulation, you have successfully installed everything!
##(Optional) Step 4: Updating the Bash File
- Open a terminal, and type
nano ~/.bashrc - Use your arrow keys to move to the end of the file
- Add the following lines to the end of the file:
source /opt/ros/humble/setup.bashsource ~/ros2_ws/install/setup.bashexport ROS_DOMAIN_ID=30 #TURTLEBOT3export TURTLEBOT3_MODEL=wafflesource /usr/share/gazebo/setup.bash
- Press
ctrl + xon your keyboard, then Y, then Enter - In your terminal, type
source ~/.bashrc
This will make sure everything you need for ROS2 will be initialised whenever you open a new terminal.