This tutorial will walk you through the setup required to make a host machine ready to build and run the Dave simulations. Note that:
<aside> 💡 Depending on the machine, it may take more than an hour to finish.
</aside>
Type following code lines in terminal window. It will auto install what is required for the Dave (ROS-Gazebo framework)
sudo /bin/bash -c "$(wget -qO- <https://raw.githubusercontent.com/IOES-Lab/dave/refs/heads/ros2/extras/ros-jazzy-gz-harmonic-install.sh>)"
Type following code lines in terminal window. It will auto install what is required for the Dave (ROS-Gazebo framework)
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/IOES-Lab/ROS2_Jazzy_MacOS_Native_AppleSilicon/main/install.sh>)"
Upgrade to the latest packages:
sudo apt update
sudo apt full-upgrade
Install required tools:
sudo apt install -y build-essential colcon cmake cppcheck curl git gnupg libeigen3-dev libgles2-mesa-dev lsb-release pkg-config protobuf-compiler python3-dbg python3-pip python3-venv qtbase5-dev ruby software-properties-common sudo wget
Install package signing keys
# ROS 2 key
export ROS_APT_SOURCE_VERSION=$(curl -s <https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest> | grep -F "tag_name" | awk -F\\" '{print $4}')
curl -L -o /tmp/ros2-apt-source.deb "<https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$>(. /etc/os-release && echo ${UBUNTU_CODENAME:-${VERSION_CODENAME}})_all.deb"
sudo dpkg -i /tmp/ros2-apt-source.deb
# Gazebo key
sudo wget <https://packages.osrfoundation.org/gazebo.gpg> -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] <http://packages.osrfoundation.org/gazebo/ubuntu-stable> $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
# Update packages
sudo apt update
# Set versions to install
DIST=jazzy
GAZEBO=gz-harmonic