2017年11月2号
根据插件作者原网址:https://launchpad.net/~levi-armstrong/+archive/ubuntu/ppa
1、qt5.9的安装
步骤:在终端上输入以下三行命令:即可完成qt5.9的安装
ubuntu14.04 ros indigo
$ sudo add-apt-repository ppa:beineri/opt-qt571-trusty
$ sudo add-apt-repository ppa:levi-armstrong/ppa
$ sudo apt-get update && sudo apt-get install qt57creator-plugin-ros
ubuntu16.04 ros kinetic
$ sudo add-apt-repository ppa:levi-armstrong/qt-libraries-xenial
$ sudo add-apt-repository ppa:levi-armstrong/ppa
$ sudo apt-get update && sudo apt-get install qt57creator-plugin-ros
至此,qt5.9.1安装完成;
2、在桌面建立添加ros相关依赖的QT快捷启动方式
步骤:在桌面新建一个文档,名为Qt-ROS.desktop,粘贴以下代码,注意bash -i -c后面应为你的qtcreator的安装路径,或在属性中修改,如下图:
[Desktop Entry]
Exec=bash -i -c qtcreator %F
Icon=QtProject-qtcreator
Type=Application
Terminal=false
Name=Qt-ROS
GenericName=Integrated Development Environment
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.nokia.qt.qmakeprofile;application/vnd.nokia.xml.qt.resource;
Categories=Qt;Development;IDE;
InitialPreference=9
3、对桌面快捷启动图标右键选择属性如下图
4、至此,便可直接打开ROS中的catkin_ws,并对其中的package中的节点文件进行编译与运行!