Robotics StackExchange | Archived questions

Turn existing GUI into rqt plugin, errors in plugin_bridge.h

I have implemented a GUI in ROS with a custom UI file, using catkincreateqt_pkg, to my knowledge this is qt4. Based on https://www.cnblogs.com/casperwin/p/6206193.html

I am currently trying to turn it into a rqt-plugin, so I can use it in rqt with other already existing plugins.

I did everything like described in https://answers.ros.org/question/249395/how-to-turn-existing-qt-widgets-into-rqt-plugin/ If I don't change anything and compile with catkin_make, everything works. But after I added my files and added some include statements, i get the following error:

"/opt/ros/kinetic/include/qtguicpp/plugin_bridge.h:63:8: error: 'expected ':' before 'slots' " and other errors like

error: 'slots does not name a type'

Any help would be greatly appreciated!

Asked by WLAN13 on 2019-03-25 09:57:45 UTC

Comments

I added "rosbuild_prepare_qt4(QtCore QtGui)" in the CMakeLists.txt, could that be the origin of the problem? I added it, because my GUI won't run without it.

Asked by WLAN13 on 2019-03-27 03:40:45 UTC

Was this solved? I'm getting the same error and can't figure out why :(

Asked by MartensCedric on 2020-05-28 12:12:44 UTC

Answers