ubuntu安装Ros开发环境

ROS版本选择

选择Melodic Morenia (May 2018 - May 2023)版本ROS

ROS安装步骤

  1. 软件中心配置如下,确保可以更新到资源
    ubuntu安装Ros开发环境_第1张图片
  2. 添加ROS软件源
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
  1. 添加密钥
    注:recv-key根据实际电脑修改,执行sudo apt update根据提示取得公钥id
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key F42ED6FBAB17C654
  1. 安装ROS
sudo apt update
sudo apt install ros-melodic-desktop-full
  1. 初始化rosdep
sudo rosdep init
rosdep update
  1. 设置环境变量
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
  1. 安装rosinstall
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
  1. 最后…验证下安装的效果
roscore
rosrun turtlesim turtlesim_node
rosrun turtlesim turtle_teleop_key

ROS安装步骤参考

http://wike.ros.org/melodic/Installation/Ubuntu

ROS官网

ROS.org

你可能感兴趣的:(ros学习笔记)