首先需要在自己电脑上安装ROS系统:
1,添加ROS源
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
2.添加密钥
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
3.安装ROS
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
4.初始化rosdep
sudo rosdep init
5.设置环境变量
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
6.安装rosinstall
sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
查看是否安装成功:
重启电脑,输入:
roscore
出现:
恭喜安装成功!