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

asked 2019-03-25 09:57:45 -0500

WLAN13 gravatar image

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

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/2493... 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/qt_gui_cpp/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!

edit retag flag offensive close merge delete

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.

WLAN13 gravatar image WLAN13  ( 2019-03-27 03:40:45 -0500 )edit

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

MartensCedric gravatar image MartensCedric  ( 2020-05-28 12:12:44 -0500 )edit