File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ sudo add-apt-repository universe -y
1111# Adding ROS 2 repo to system
1212sudo apt-get update
1313sudo apt-get install curl -y
14- sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
15- 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
14+ 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}' )
15+ 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 ) _all.deb"
16+ sudo apt install /tmp/ros2-apt-source.deb
1617
1718# Install pip
1819sudo apt-get install python3-pip -y
You can’t perform that action at this time.
0 commit comments