6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ubuntu20.04LTSにROS Noeticをインストールする

Last updated at Posted at 2021-08-01

概要

ROS Noeticのインストール方法が変わっていたのでここに最新のインストール手順を書いておく

公式のインストールページ
http://wiki.ros.org/noetic/Installation/Ubuntu

source.listの設定

$ 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 install curl
$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

インストール

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

または

$ sudo apt install ros-noetic-desktop

環境設定

$ echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
$ sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential

rosdepの初期化

$ sudo rosdep init
$ rosdep update

ワークスペースを作成

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/
$ catkin_make

catkin_makeで失敗したらこちらを実行

$ sudo apt install catkin

.bashrcに記述(必要なら)

$ echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc

参考

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?