LoginSignup
0
0

More than 1 year has passed since last update.

ROS1:インストール

Last updated at Posted at 2021-09-26

ROS1のインストール

ROS1はUbuntu上で動作するソフトウェアです.
WindowsやMacをメインで使っている場合はVirtual BoxやVMwareなどの仮想デスクトップ環境を用意してそこにUbuntuをインストールしてください.

ROS Distro対応関係

ROSのバージョンはUbuntuのバージョンに対応して更新されていきます.
Ubuntuのバージョンを上げると対応するROSのバージョンも変わるので,対応するものを選択するようにしましょう.
ちなみにRosのバージョンの名称は頭文字がアルファベット順になっています.

Ubuntuバージョン ROSバージョン サポート期限
18.04 Melodic Morenia 2023年5月
20.04 Noetic Morenia 2025年5月

See. http://wiki.ros.org/Distributions

Ubuntuのインストール

Ubuntuのページから適当なものを落としてきて自分のPCにインストールしてください.
ここではUbuntu 20.04をインストールして進めていきます.

ROS1 Noeticのインストール

下記のスクリプトを回すとインストールが完了します.
また,最初のROS_DISTRO="noetic"melodicに変更するとRos Melodci Moreniaがインストールされるはずです,

rosinstall.sh
#!/usr/bin/env bash
ROS_DISTRO="noetic"


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

sudo apt -y update
sudo apt -y upgrade

sudo apt -y install ros-${ROS_DISTRO}-desktop-full python3-rosdep

sudo rosdep init
rosdep update


echo "source  /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc
source ~/.bashrc

mkdir -p ~/ros1_ws/src
cd ~/ros1_ws
catkin_make
echo "source ~/ros1_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

以上で完了です.

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