3
2

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 1 year has passed since last update.

ラズパイ4 buster ROS noetic インストール

Last updated at Posted at 2022-11-06

ラズパイ4へROS noeticインストール時の備忘録

ラズパイのターミナルで下記コマンドを順に実行
詳細は下記URLを参照ください ※一部変更箇所有り

参考:https://varhowto.com/install-ros-noetic-raspberry-pi-4/

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu buster main" > /etc/apt/sources.list.d/ros-noetic.list'

sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

sudo apt update

sudo apt install -y python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential cmake

sudo rosdep init

rosdep update

mkdir ~/ros_catkin_ws

cd ~/ros_catkin_ws

#下記コマンドを一部修正済み
rosinstall_generator desktop --rosdistro noetic --deps --wet-only --tar > noetic-desktop-wet.rosinstall

wstool init src noetic-desktop-wet.rosinstall

rosdep install --from-paths ./src --ignore-packages-from-source --rosdistro noetic -y

sudo src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/noetic -j1 -DPYTHON_EXECUTABLE=/usr/bin/python3

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

source ~/.bashrc

インストールが成功したか確認

roscore

image.png

インストール完了までかなり時間かかります。
時間に余裕のあるときに試してください

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?