安装平台Thinkpad T480,原系统win10,在电脑上安装的是双系统Ubuntu16.04,具体安装教程参考我的上一篇博文:https://blog.csdn.net/geerniya/article/details/83145079
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 421C365BD9FF1F717815A3895523BAEEB01FA116
3,更新软件包索引
sudo apt-get update && sudo apt-get upgrade -y
4,安装ROS
sudo apt-get install ros-kinetic-desktop-full
如有需要,还可以安装rqt工具集:
sudo apt-get install rot-kinetic-rqt*
5,初始化Rosdep
sudo rosdep init
rosdep update
6,加载环境文件
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
7,安装其它依赖包
sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
8,创建工作目录
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
9,运行roscore
roscore
出现如下即表示安装成功:
started roslaunch server http://ssc-T480:46517/
ros_comm version 1.12.14
SUMMARY
========
PARAMETERS
* /rosdistro: kinetic
* /rosversion: 1.12.14
NODES
auto-starting new master
process[master]: started with pid [9003]
ROS_MASTER_URI=http://ssc-T480:11311/
setting /run_id to 4d858eac-d82a-11e8-8904-34e12d7d57a3
process[rosout-1]: started with pid [9016]
started core service [/rosout]