目录
一、ROS的安装
1.添加ROS软件源
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
2.添加秘钥
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654
3.安装ros
sudo apt update
sudo apt-get install ros-melodic-desktop-full
4.初始化rosdep
sudo rosdep init
rosdep update
若此处出现问题,推荐使用rosdepc代替rosdep
sudo apt-get install python-pip
sudo pip3 install rosdepc
sudo rosdepc init
rosdepc update
5.配置环境变量
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc