How do you use a qt 5.9.1 widget aplication with ros?

asked 2019-06-06 13:04:00 -0500

brian77754 gravatar image

updated 2019-06-06 13:39:37 -0500

I have made the framework for a user interface that is going to be used to control a robot using qt.

I am not sure why, but every tutorial I can find on how to use qt with ros is for versions of qt that are older than 5.7. I need to be using a version of qt that is 5.8 or higher, because part of the user interface needs to have a camera, so I need to use the multimedia library. The multimedia library which can only be used by qt 5.8 or newer. I read that you can import a qt project into rqt and use rqt to communicate with ros, but there is no good explanation on how to go about that. If possible, I would like to avoid using rqt and just communicate directly with qt using the ros plugin for qt. If using the ros plugin for qt is that is not possible with the newest version of qt, my question is how are you suppose to import a qt project into rqt? I have never used rqt before so keep that in mind when explaining things.

My ultimate goal is to be able to pass double values and a live camera image to this qt gui. I have been trying to do this for over a week now. I don't really care how I get this done. I just want it to work so with or without rqt answers are acceptable. I just need some help with something that in theory should be very simple. Also please do to direct me to this tutorial because I have tried it and it is confusing, it does not work, and makes very little sense to me.

Also my qt file is written in c++ and I am using ubunto 16.04 and ros kinetic. Keep in mind I do not know much about ros or rqt so be very specific with your answers please. Thank you to anyone who can help me.

edit retag flag offensive close merge delete



Could you please add a few newlines to your question? Right now it's a single block of text which is not very readable.

gvdhoorn gravatar imagegvdhoorn ( 2019-06-06 13:23:00 -0500 )edit

@gvdhoorn will get right on it

brian77754 gravatar imagebrian77754 ( 2019-06-06 13:30:22 -0500 )edit

@gvdhoorn is that better?

brian77754 gravatar imagebrian77754 ( 2019-06-06 13:37:47 -0500 )edit

Much better. Thanks.

gvdhoorn gravatar imagegvdhoorn ( 2019-06-06 13:40:33 -0500 )edit

@gvdhoorn do you know who to do this?

brian77754 gravatar imagebrian77754 ( 2019-06-06 13:53:45 -0500 )edit

I'm not into Qt.

However, I do know about this:

I am not sure why, but every tutorial I can find on how to use qt with ros is for versions of qt that are older than 5.7.

simply because this is a community project, and apparently no one in the community has bothered to update the tutorials, or has had a need.

gvdhoorn gravatar imagegvdhoorn ( 2019-06-06 14:35:31 -0500 )edit