Gazebo | Ignition | Community
Ask Your Question

Model Plugin with QT objects, is it possible?

asked 2015-03-15 16:38:09 -0500

PML gravatar image

Can QT objects (e.g. A QMainWindow) be declared within a ModelPlugin, and if so can an example be provided? I want to create a plugin to control a model joints so when the model is inserted in gazebo a new window with personalized controls is displayed.

In the header file along from the class that inherits from ModelPlugin i tried declaring another class that inherits from QMainWindow, it compiles just fine but when the plugin is included in a sdf model and i insert it to gazebo it fails to load the plugin with an undefined symbol error for the class inheriting from QMainWindow.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-16 09:26:32 -0500

AndreiHaidu gravatar image


I am not sure if you can do it from a Model Plugin, if you manage let me know ;)

However, you can access the QT parts via the GUI overlay.

Cheers, Andrei

edit flag offensive delete link more


You can't use QT object from a model plugin. As Andrei mentioned, a GUI overlay is the correct way to go.

nkoenig gravatar imagenkoenig ( 2015-03-16 09:27:33 -0500 )edit

Alright, thanks for the answers.

The only way to interact with a model in this case is by using the transport layer, correct?

PML gravatar imagePML ( 2015-03-16 11:41:35 -0500 )edit

Question Tools


Asked: 2015-03-15 16:38:09 -0500

Seen: 248 times

Last updated: Mar 16 '15