- 1 Install ROS
- 2 Clone Training Repositories
- 3 Install Gazebo
- 4 Clone ROS Gazebo packages
- 5 Install ROS dependencies
- 6 Build training workspace
-
Add ROS package repository
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
-
Update APT cache and upgrade system packages
sudo apt update sudo apt upgrade
-
Install core ROS packages, rosdep tool, and colcon build tool
sudo apt install ros-humble-desktop python3-rosdep2 python3-colcon-common-extensions
-
Create training workspace directory
cd ~ mkdir -p training_ws/src
-
Clone the software_training repo
cd ~/training_ws/src git clone https://github.com/RoboJackets/software-training.git
-
Clone the stsl repo
cd ~/training_ws/src git clone https://github.com/RoboJackets/stsl.git
-
Install the arm64 version of gazebo
sudo add-apt-repository ppa:openrobotics/gazebo11-non-amd64 sudo apt update sudo apt install gazebo
-
Clone ros_gazebo_pkgs repository
cd ~/training_ws/src git clone --branch=3.7.0 https://github.com/ros-simulation/gazebo_ros_pkgs.git
-
Initialize rosdep
sudo rosdep init rosdep update
-
Run rosdep
rosdep install --from-paths . --ignore-src -y
-
Go to training workspace directory
cd ~/training_ws
-
Source ROS system underlay script
source /opt/ros/humble/setup.bash
-
Run colcon
colcon build
If everything worked, you should see the last line of output look like this (the build time may be different for you):
Summary: 9 packages finished [1min 46s]