NVIDIA-TX2搭建QT环境开发ROS

来源:互联网 发布:正交矩阵的性质证明 编辑:程序博客网 时间:2024/06/05 11:54

    TX2直接使用官方jetpack3.0包刷机,系统为Ubuntu16.04,安装ROS-kinetic版本,想利用QT进行ROS的开发。

    首先安装QT和qtcreator,系统默认安装了qt4,我们通过apt-get安装qt5:


$sudo apt-get install qt5-default qtcreator -y  


    安装完成之后可以通过命令行qtcreator启动qt的IDE,然后开始安装ros插件ros_qtc_plugin:


$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

    

       如果update失败,则再次执行:


$sudo apt-get install qt57creator-plugin-ros


       在实际过程中可能因为插件的升级,默认安装了qt59,并且放在了目录/opt/qt59下面,原有的qtcreator不知为啥消失了,这时需要我们修改qt的系统配置文件,找到新安装的qt59:


$sudo gedit /usr/lib/aarch64-linux-gnu/qt-default/qtchooser/default.conf


       将打开文件中的内容改为:


/opt/qt57/bin

/opt/qt57/lib


       保存后退出,在应用搜索中输入qt会弹出qt59creator.desktop,可以将其拖到界面左侧锁定这个快捷方式,双击打开,点击 NEWPROJECT,在otherproject中如果能看到ROSworkspace则代表安装成功,可以通过qt来编写和调试ROS代码。


              



参考链接:

https://ros-industrial.github.io/ros_qtc_plugin/

http://www.ncnynl.com/archives/201701/1277.html

http://blog.csdn.net/u013453604/article/details/52186375

http://blog.csdn.net/u013453604/article/details/52167213#t5


原创粉丝点击