Gazebo | Ignition | Community
Ask Your Question
0

Model Plugin with QT objects, is it possible?

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

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
1

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

AndreiHaidu gravatar image

Hi,

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

Comments

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 -0600 )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 -0600 )edit

Question Tools

Stats

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

Seen: 253 times

Last updated: Mar 16 '15