ROS代码在QT5.9.1下的调试 2017/11/2更新

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中的节点文件进行编译与运行!


  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值