ROS安装-4.一键脚本安装ROS(Noetic)

一键脚本安装ROS(Noetic)

sudo apt update

sudo apt upgrade

wget https://raw.githubusercontent.com/ROBOTIS-GIT/robotis_tools/master/install_ros_noetic.sh

chmod 755 ./install_ros_noetic.sh

bash ./install_ros_noetic.sh

可能存在密钥过期的情况,执行以下指令即可:

2023年9月之前版本秘钥更新方法

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-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

然后执行

sudo apt update

2023年9月以后版本秘钥更新方法

sudo apt update

sudo apt-get upgrade

sudo apt-get update

sudo apt-get install -y aptitude

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 

sudo aptitude install curl

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

sudo apt update

其他方法:

wget http://fishros.com/install -O fishros && . fishros

    关键词:ROS安装