ubuntu16.04上安装ros-kinetic

时间:2022-09-03 14:16:59

1.设置安装源

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

2.设置key

sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116

3.安装

sudo apt-get update

sudo apt-get install ros-kinetic-desktop-full

4.初始化

sudo rosdep init

rosdep update

5.配置环境变量

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc

source ~/.bashrc

6.安装rosinstall

sudo apt-get install python-rosinstall

7.测试

roscore