Last active
April 11, 2020 23:27
-
-
Save mayataka/886bcab4c118f984e2646d034c747b7a to your computer and use it in GitHub Desktop.
install-ros2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd | |
# Add ROS2 repository | |
sudo apt update -y | |
sudo apt install curl gnupg2 lsb-release -y | |
curl http://repo.ros2.org/repos.key | sudo apt-key add - | |
sudo sh -c 'echo "deb http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list' | |
# Specify the distribution of ROS2 | |
export CHOOSE_ROS_DISTRO=dashing | |
# Install ROS2 | |
sudo apt update -y | |
sudo apt install ros-${CHOOSE_ROS_DISTRO}-desktop -y | |
# Complement function for ROS2 | |
sudo apt install python3-argcomplete | |
# Add PATH | |
echo "source /opt/ros/${CHOOSE_ROS_DISTRO}/setup.bash" >> ~/.bashrc | |
source ~/.bashrc | |
cd | |
sudo apt install python3-colcon-common-extensions -y | |
rm install_ros2.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment