본문 바로가기

STUDY/[Ubuntu, ROS] 0. Prepare

0-2. ROS 설치하기 (ROS Noetic)

* 참 고 *

https://sh-ido.tistory.com/2 *참 고* 세 번째 내용에 따라 ROS noetic 설치

 

1. Ubuntu 20.04 설치하기 (Window 10 듀얼부팅)

* 요 약 * 1. C 드라이브 파티션 나누기 (Ubuntu 설치 공간 확보하기 위함) 2. Ubuntu 설치 USB 만들기 (아무 파일도 들어있지 않은 USB 필요) 3. 설치 USB 이용하여 Ubuntu 설치하기 * 참 고 * - turtlebot3 사..

sh-ido.tistory.com


1. ROS.org 홈페이지

   * ROS Noetic 설치 사이트 : http://wiki.ros.org/noetic/Installation/Ubuntu

 

noetic/Installation/Ubuntu - ROS Wiki

If you rely on these packages, please support OSRF. These packages are built and hosted on infrastructure maintained and paid for by the Open Source Robotics Foundation, a 501(c)(3) non-profit organization. If OSRF were to receive one penny for each downlo

wiki.ros.org

 

2. ROS Noetic 설치

 2-1. Ubuntu 터미널 열기 (단축키 : Ctrl + Alt + T)

 2-2. 순서대로 터미널에 복사+붙여넣기+Enter (*Windows와 단축키 다름 주의)

           *차례차례 한 줄 씩 복사, 붙여넣기 해야함.

           *한꺼번에 복사, 붙여넣기도 가능하지만 어떤 코드가 들어가는지 확인을 위해 잘 비교하면서 복붙 요망

  2-2-1Setup your sources.list

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

  2-2-2Set up your keys

sudo apt install curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

  2-2-3Installation

sudo apt update
sudo apt install ros-noetic-desktop-full

  2-2-4. Environment setup

source /opt/ros/noetic/setup.bash
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

  2-2-5. Dependencies for building packages

sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
sudo apt install python3-rosdep
sudo rosdep init
rosdep update