카테고리 없음

ubuntu 18.04 ROS melodic 설치하기

wandering developer 2023. 2. 4. 01:40

단계단계 밟아 가는 과정으로 ubuntu 18.04에 ROS melodic을 설치해보자!

참고로 ROS 는 각 우분투 버전마다 잘 맞는 버전이 있는것 같다.

ROS Melodic Installation

The installation of ROS melodic (version for Ubuntu 18.04) is pretty straightforward. One just needs to paste the commands presented in the installation page and we’re all set. For convenience I pasted them below.

 

$ 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://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
$ sudo apt-get update
$ sudo apt install ros-melodic-desktop
$ echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
$ sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
$ sudo rosdep init
$ rosdep update

여기서 sudo apt-get update 가 잘안될때는 mirror 사이트를 이용했다.

난 일본을 이용함.

- for ROS Release

sudo sh -c 'echo "deb http://packages.ros.org.jsk.imi.i.u-tokyo.ac.jp/ros/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://ros.jsk.imi.i.u-tokyo.ac.jp/jsk.key -O - | sudo apt-key add -

출처 : http://wiki.ros.org/ROS/Installation/UbuntuMirrors

반응형