-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenNI callback gets deregistered when Qt GUI is initiated #1028
Comments
Hello, I know this is late but I had the exact same problem just now. Your intuition was correct. to your In my case I have this: Just make sure that when u need signals or slots you use the type |
Thanks for the solution.. it actually helps my current work. I'll leave this open for the time being because this is a pretty baffling pitfall and maybe this flag should be added such that it automatically makes its way into programs linked against PCL. |
I think we should convert to use |
This is to avoid compile errors when including 3rd party headers. In particular, boost signals library is known to cause problems, see PointCloudLibrary#1028.
This is to avoid compile or runtime problems when including 3rd party headers. In particular, boost signals library is known to cause problems, see PointCloudLibrary#1028.
I could not reproduce this issue with latest PCL, Qt5, and OpenNI2 grabber. Callback continues to fire after the GUI shows up. Nevertheless, I've submitted a patch converting to Q_* since it is generally a good idea not to use these keywords. |
Should be closed with #1898. Please reopen if necessary. |
This is to avoid compile or runtime problems when including 3rd party headers. In particular, boost signals library is known to cause problems, see PointCloudLibrary#1028.
Hi,
I have tested this issue on PCL 1.7.2 and also the most recent Github release on Ubuntu 14.04 (PCL 1.7.2 from the package system and also custom compiled). I tried linking against both VTK 5.x, 6.x, and the latest Gthub version, as well as Qt 4.x and 5.x. I have also tested this on PCL 1.7.2 on Windows.
Whenever A Qt GUI is started, all cloud callbacks seem to become deregistered. This problem can be reproduced by starting from visualizer:
https://github.com/PointCloudLibrary/pcl/tree/master/doc/tutorials/content/sources/qt_visualizer
adding a callback function to main.h, starting it, sleeping for a bit, and starting the GUI:
The program starts, calls the callback for 5 seconds, and then the callback dies as the GUI comes up.
I suspect this has to do with namespace collision between boost::signals2 and Qt signals.
http://www.boost.org/doc/libs/1_55_0/doc/html/signals/s04.html
I would appreciate any help with this as I am trying to make a Qt GUI for a program that accesses a Xtion sensor and it's impossible with this bug present.
Thank you.
Best Regards,
John
The text was updated successfully, but these errors were encountered: