RQT custom plugin freeze randomly
Hi,
I'm creating an IHM to control a drone. On the left I have buttons for arming, takeoff, land, disarm, emergency disarm. On the right I display video from drone camera. In the middle there is a map where I see my drone moving.
Everything perfectly working.
Now, I created a new plugin to display velocity, local position, gps position. To do this I created a new node which publish 4 times per second all these datas, 2 plugins subscribe to this and update QLCDNumber in my IHM.
When I launch this IHM, everything is working during 10-30 seconds, after this all my QLCDNumbers freeze. I need to click on any button as "Arming" or "Land" or "Refresh camera input" to unfreeze all QLCDNumbers.
If I print() in a terminal values published by my node and same thing for values received by my 2 subscribers, when QLCDNumbers freeze, I can see in terminal values continue to be published, and subscribers are well working.
Any idea of what append ? Or any mistale I would do ? Thank you !!
=> Ros melodic / Ubuntu 18 / Gazebo / PX4 => Consumption 4gb on 8 / 30% cpu used
Can you trigger a refresh in your code? To see if this fixes it and discard other reasons. Also it would be helpful if you can produce a minimum reproducible example and share the code, otherwise it’s hard to know
For the code the problem is the computer on which I work has no internet and extract some code would not be appreciated by my firm ... :/
I think a refresh should be a good idea but how do you think create it ?
it can be a node that just activates an invisible button at a frequency.
Not sure if this is the way to go, but based on your description perhaps something to try: https://doc.qt.io/qt-5/qml-qtquick-mo...
Nothing works, I created a separeted rqt window which is better, it freezes every 5 minuts and not every 10-30seconds, but I don't understand what appened and I don't find how launch my window withtout RQT only with Qt with script : source .... ; python my widget , like this I have no communication with my nodes