Hello,
I think I stumbled across a problem with the v2.1.0 SDK on Linux (Ubuntu 12.04).
It appears I cannot receive images from the leap device.
After spending some time going through the API documentation, testing all parts of my code and so on, I noticed in the release notes that Controller::setPolicyFlag()
is not supported on Linux.
It is also stated that Listener::onFocusGained()
event callback is not supported on Linux, but it does get called in my code.
I decided to simply modify the Sample.cpp
so that line 226 is according to the documentation (well, correcting the wrong namespace):
controller.setPolicyFlags(Leap::Controller::POLICY_IMAGES | controller.policyFlags());
I also tried this (after failing to receive images):
controller.setPolicyFlags(Leap::Controller::POLICY_IMAGES);
I added a new line in the onFrame()
event handler, just above line 61:
<< ", images: " << frame.images().count()
That output is always zero, that is, no images received in any frame.
I have checked the box to allow images on LeapControlPanel, and I can see data such as hands, fingers and so on, every time onFrame()
gets called.
Could anyone shed some light on how to receive images from the Leap device on Linux? Or is that not yet available for Linux in the current beta version of the SDK?
Thanks a lot!