ROS is a set of software libraries and tools that help you build robot applications.
- Operating System: Debian-based distribution, here I used Ubuntu 20.04.6 LTS.
- ROS Version: ROS Noetic, latest version of ROS 1.
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 upgrade
sudo apt install ros-noetic-desktop-full
In order to run ROS in different terminals, you must source the setup script in every bash terminal you use ROS in. You can do this manually in each terminal, using this command:
source /opt/ros/noetic/setup.bash
Or you can add the command to your .bashrc
file so that it is sourced automatically in every new terminal:
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
Visit this link for more details: Ubuntu install of ROS Noetic
- Operating System: Debian-based distribution, here I used Ubuntu 20.04.6 LTS.
- ROS Version: ROS Foxy Fitzroy, a version of ROS 2.
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
locale # verify settings
sudo apt install software-properties-common
sudo add-apt-repository universe
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 update
sudo apt upgrade
sudo apt install ros-foxy-desktop python3-argcomplete
sudo apt install ros-dev-tools
In order to run ROS in different terminals, you must source the setup script in every bash terminal you use ROS in. You can do this manually in each terminal, using this command:
source /opt/ros/foxy/setup.bash
Or you can add the command to your .bashrc
file so that it is sourced automatically in every new terminal:
echo "source /opt/ros/foxy/setup.bash" >> ~/.bashrc
Visit this link for more details: Ubuntu install of ROS Foxy Fitzroy