0
0

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.

ROS×PCL ROS Install

Last updated at Posted at 2021-10-26

今回はROSをインストールします

Requirement

  • OS: Ubuntu18.04
  • ROS version: melodic

Install

以下に従ってインストールしていきます!

Ubuntu repositoriesの確認

Ubuntu repositoriesの"resiricted", "universe", "multiverse" が許可されてるか確認します
以下を参照してください

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'

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 -

Installation

Debian Packageのアップデート

sudo apt update

次がいくつかあるんですが基本はRecommendedのDesktop-full Installがいいので,それをインストールします

sudo apt install ros-melodic-desktop-full

なお利用可能なパッケージは以下で確認できます!

apt search ros-melodic

Environment setup

ROSの環境変数をターミナル開くごとに自動的に読み込んでもらえるようにするため,以下のコードを実行しておくとよいです

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

Install dependencies

ROSをBuildするのに必要なパッケージをインストールします

sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
rosdepの初期化

ROSのいろんな機能を使うためには,rosdepを初期化する必要があります
install

sudo apt install python-rosdep

初期化

sudo rosdep init
rosdep update

以上でインストール完了です~
おつした!

next

previous

references

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?