The 10ms delay encourages me to ask the following. Letās say we have two sensors, do you think it is possible turning off sensor A, grabbing one frame on B, turning off sensor B, grabbing one frame on A, etc to effectively get 10-15 FPS on each sensor without any interference at all? For how long should the laser be on in order to be able to grab a frame?
Very interesting David but what if I have to do it from java ?
There is no getProperty() method in the java Device class.
Maybe I can try to use reflection to call the NativeMethods.oniDeviceGetā¦ but there is no String version, just int or bool:
static native int oniDeviceGetIntProperty(long deviceHandle, int propertyId, OutArg property);
static native int oniDeviceGetBoolProperty(long deviceHandle, int propertyId, OutArg property);
Hi David,
thanks for the code!
Is there a way to switch the laser emitter off as long as I send ālaser onā?
Sometimes the laser turns on again after a very short time(<0.5sec), sometimes it takes a while (>5 sec).
I am running your compiled code with 2 ASTRA S(v.1.08).
Thanks for any reply!
I tried to compile it using this cmake, but I found the following issue:
libopenni and libopenni2 are not found.
I created FindOpenNI.cmake and FindOpenNI2.cmake but I was not able to locate the openni2 includes.
Finally I compiled it with NetBeans using the XnLib from the OpenNI2 github code.
I had to make some modifications to the code:
printf_s ā printf.
It was not able to find the Status struct and I had to add it to the main file.
When running it with 1 camera, it works fine.
When running it with 2 cameras, I receive the following error: "Open Device ByPath Error 2bc5/0401@1/70
". I have 2 cameras with the same ID because these are old Orbbec Astra versions. Could it be the reason of the problem received?
Iām on arch linux and had openni installed sytemwide with an aur. Thatās why pkconfig was able to locate the library. I had to change the printf stuff as well.
I donāt think your problem is both devices having the same serial. The error refers their bus address and not the serial. But I might be wrong thereā¦
Individually they work? Just not at the same time?