#!/usr/bin/env bash set -e ROS_DISTRO=$1 if [ -z "$ROS_DISTRO" ]; then ROS_DISTRO="jazzy" fi mkdir -p "/tmp/${ROS_DISTRO}_ws/src" sudo mkdir -p "/opt/ros/${ROS_DISTRO}" cd "/tmp/${ROS_DISTRO}_ws" wget "https://github.com/ros2/ros2/raw/${ROS_DISTRO}/ros2.repos" vcs import src