ubuntu 20.04 install ros-galactic-desktop

Install ROS 2 packages

sudo apt update && sudo apt install curl gnupg lsb-release
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 $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update
sudo apt install ros-galactic-desktop
sudo apt install ros-galactic-ros-base

Set up your environment by sourcing the following file.

source /opt/ros/galactic/setup.bash

try example:

source /opt/ros/galactic/setup.bash
ros2 run demo_nodes_cpp talker

references:

1.error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054

2.Installing ROS 2 via Debian Packages

3.安装ROS报错Depends: ros-kinetic-desktop but it is not going to be installed的解决方法

你可能感兴趣的:(Ubuntu,三维重建)