概要
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
参考