Ubuntu 18.04์— ROS melodic ์„ค์น˜ํ•˜๊ธฐ


1. ์„ค์น˜

packages.ros.org๋กœ๋ถ€ํ„ฐ software๋ฅผ ๋ฐ›๋„๋ก PC setupํ•˜๋Š” ๊ณผ์ •

$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'


key ๋“ฑ๋ก

$ sudo apt install curl # if you haven't already installed curl
$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -


Update package

$ sudo apt update


์„ค์น˜

$ sudo apt install ros-melodic-desktop-full


ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์„ค์ •

$ gedit ~/.bashrc

# ํŒŒ์ผ ์ œ์ผ ํ•˜๋‹จ์— ์•„๋ž˜ ๋ฌธ์žฅ ๊ธฐ์ž…
source /opt/ros/melodic/setup.bash


2. ๋””ํŽœ๋˜์‹œ ์„ค์น˜

ROS workspace๋ฅผ ๊ตฌ์ถ•ํ•˜๊ณ  ๋นŒ๋“œํ•˜๋Š”๋ฐ ์žˆ์–ด์„œ dependencies๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•จ

$ sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
$ sudo apt install python3-rosdep


3. Initialize rosdep

ROS tools๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์ „, rosdep์„ ์ดˆ๊ธฐํ™”๋ฅผ ํ•ด์•ผ ํ•จ

rosdep์€ ์‚ฌ์šฉ์ž๊ฐ€ ์ปดํŒŒ์ผํ•  ์†Œ์Šค์˜ dependencies๋ฅผ ์‰ฝ๊ฒŒ ์„ค์น˜ ํ•˜๊ฒŒ๋” ํ•จ

์ตœ์ดˆ 1ํšŒ๋งŒ ํ•˜๋ฉด ๋จ

$ sudo rosdep init
$ rosdep update

Reference

Leave a comment