OS/ROS

[ROS2] Ubuntu 20.04 install ROS2 Foxy

쩡 (개발꿈나무) 2021. 4. 23. 13:07

Install

* docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html

1. set locale

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

 

2. set repository

sudo apt update && sudo apt install curl gnupg2 lsb-release
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'

 

3. install

sudo apt update
sudo apt install ros-foxy-desktop

is long time ~

longlong~

 

Setting

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