ROS2 (Iron)
set of software libraries and tools that help you build robot applications
Installation instructions or continue here (same tutorial)
locale  # check for UTF-8
sudo apt update && sudo apt install locales # had to restart
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 settingssudo apt install software-properties-common
sudo add-apt-repository universesudo 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.gpgecho "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/nullsudo apt update && sudo apt install ros-dev-tools -ysudo apt update && sudo apt upgrade -ysudo apt install ros-iron-desktop -ysource /opt/ros/iron/setup.bashIn one terminal, source the setup file and then run a C++ talker:
source /opt/ros/iron/setup.bash
ros2 run demo_nodes_cpp talkerIn another terminal source the setup file and then run a Python listener:
source /opt/ros/iron/setup.bash
ros2 run demo_nodes_py listenerROS2 version
cd /opt/ros
ls
#displays ROS2 versionUninstall
sudo apt remove ~nros-iron-* && sudo apt autoremoveLast updated