参考链接基于ROS的QT界面开发史上最强教程
cd qt_ws/src
catkin_init_workspace
cd …
catkin_make
cd src
catkin_create_qt_pkg testgui roscpp rospy std_msgs
cd …
catkin_make
打开qt -->新建–>other project–>ROS Workspace
name----rosqt 随意
build system----catkinmake
Workspace Path----heme/peng/qt_ws
新建外后–点击project-----run
Add->ros run configuration–add run step—ros run step
选择package—选择target