ROS1在ubuntu18.04上的安装 1.设置sources.list sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 2.设置keys wget http://packages.ros.org/ros.key sudo apt-key add ros.key 3.安装 desktop sudo apt update sudo apt install ros-melodic-desktop-full 4.配置环境 echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc source ~/.bashrc 5.安装依赖 sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential 6.安装pip sudo apt install python-pip 7.初始化ros sudo pip install rosdepc sudo rosdepc init sudo rosdep fix-permissions rosdepc update 完成上述步骤后,输入roscore可验证ROS系统是否安装成功。 |