Skip to content

Instantly share code, notes, and snippets.

@yossioo
Last active February 19, 2020 10:20
Show Gist options
  • Save yossioo/537fb7ea5ffb0108a215f30e49e3ad23 to your computer and use it in GitHub Desktop.
Save yossioo/537fb7ea5ffb0108a215f30e49e3ad23 to your computer and use it in GitHub Desktop.
ros2-install.sh
#!/bin/bash
set -e
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
sudo apt update && sudo apt install -y curl gnupg2 lsb-release
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
sudo apt update
sudo apt install -y ros-dashing-desktop
sudo apt install python3-argcomplete
#sudo apt install ros-dashing-rmw-opensplice-cpp # for OpenSplice
#sudo apt install ros-dashing-rmw-connext-cpp # for RTI Connext (requires license agreement)
sudo apt install -y python3-colcon-common-extensions
echo "source /opt/ros/dashing/setup.bash" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment