[ROS2] Humble ์ค์น - Ubuntu 22.04 LTS
๐ ROS2 humble install
sudo apt install git
git clone https://github.com/leggiero-crescendo/Ubuntu-setup/blob/c03555ddfd097e7c330399cddc445e4a681d7291/ubuntu22.04/ros2_humble_desktop.sh
sh ros2_humble_desktop.sh
clone ํ ํ์ผ์ ์๋์ ๊ฐ์ด ros2-humble-desktop version์ ์ค์นํ๋๋ก ๊ตฌ์ฑ๋์ด ์๋ค.
ํ์ผ์ ์ค๋ช ํ์๋ฉด
๋จผ์ ๊ด๋ จํ ํด๋ค curl ๊ฐ์ด ์น์์ ๋ฐ์ดํฐ๋ฅผ ๋ค์ดํ๊ฑฐ๋ ์ ๋ก๋ํ ๋ ํ์ํ ๋๊ตฌ๋ผ๋์ง, build-essential์ฒ๋ผ build์ ํ์ํ ๋๊ตฌ๋ค์ ์ค์นํด ์ค
# https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
sudo apt-get update && sudo apt upgrade -y
# Install
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y universe
sudo apt-get install -y curl gnupg2 lsb-release build-essential
์ง์ญ๊ณผ ์ธ์ด๋ฅผ ์ค์ ํด ์ค ํ
# locale # check for UTF-8
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
ros์ gpg key๋ฅผ ์ค์นํด์ฃผ๊ณ sources list๋ repository ๋ฑ๋กํด์ค๋ค
sudo apt update && sudo apt install curl -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt install -y ros-humble-desktop
source /opt/ros/humble/setup.bash
์๋๋ ์ถ๊ฐ์ ์ผ๋ก ์ค์นํ ๋ชฉ๋ก๋ค
sudo apt update && sudo apt install -y \
python3-flake8-docstrings \
python3-pip \
python3-pytest-cov \
ros-dev-tools
sudo apt install -y \
python3-flake8-blind-except \
python3-flake8-builtins \
python3-flake8-class-newline \
python3-flake8-comprehensions \
python3-flake8-deprecated \
python3-flake8-import-order \
python3-flake8-quotes \
python3-pytest-repeat \
python3-pytest-rerunfailures
echo "success installing ROS2"
echo "Run 'source /opt/ros/humble/setup.bash'"
๋ํ๋จผํธ์ ์์ฃผ ์ ๊ธฐ์ ๋์ด ์๋ ๋ด์ฉ์ด์ง๋ง sh ํ์ผ์ ํ์ธํ๋ฉด์ ์ ์ด๋ ์ฉ๋์ ๋๋ค.
๋ถ์ ํํ๊ฑฐ๋ ์ค๊ธฐ์ฌ ๋ ๋ด์ฉ์ด ์๋ค๋ฉด ์ง์ ๋ถํ๋๋ฆฝ๋๋ค. ๐ฃ
[Reference]
Ubuntu 22.04 usb install : https://webnautes.tistory.com/1146
ROS2 humble install : https://docs.ros.org/en/humble/Installation.html
ROS2 sh file link : https://github.com/leggiero-crescendo/Ubuntu-setup/blob/main/ubuntu22.04/ros2_humble_desktop.sh