Created
January 8, 2018 14:43
-
-
Save dashimaki360/4d612c845db65a3746e2caab39cf295b to your computer and use it in GitHub Desktop.
ROS kinetic を 一発でインストールするやつ
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
#!/bin/bash | |
set -e | |
set -x | |
# copy from | |
# http://wiki.ros.org/kinetic/Installation/Ubuntu | |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 | |
sudo apt-get update | |
sudo apt-get install -y ros-kinetic-desktop-full | |
sudo rosdep init | |
rosdep update | |
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc | |
source ~/.bashrc | |
source /opt/ros/kinetic/setup.bash | |
sudo apt-get install -y python-rosinstall python-rosinstall-generator python-wstool build-essential | |
mkdir -p ~/catkin_ws/src | |
cd ~/catkin_ws/ | |
catkin_make | |
source ~/catkin_ws/devel/setup.bash | |
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment