ubuntu18.04安装ros
1.配置软件库
2.安装ROS
- 添加ROS软件源
$ 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 - 安装ROS
$ sudo apt update
$ sudo apt install ros-melodic-desktop-full
初始化rosdep
$ sudo rosdep init
$ rosdep update - 设置环境变量
$ echo “source /opt/ros/melodic/setup.bash” >> ~/.bashrc
$ source ~/.bashrc - 安装rosinstall
$ sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
3安装完成
参考至b站视频(古月居ROS入门)