rll / cyni

Cython-based wrapper for OpenNI2
5 stars 5 forks source link

python3 compatibility #2

Open oroulet opened 8 years ago

oroulet commented 8 years ago

not tested with python2 yet but this make it possible to use your code from python3

arjun810 commented 8 years ago

Thanks! Is it easy for you to test it with python2 quickly?

oroulet commented 8 years ago

updated 2 examples to work with python2 and python3. Code seems to work with python2. I commented out getting the color stream. It does not work with my structure IO sensor. Is it supposed to work?: Traceback (most recent call last): File "cloud.py", line 9, in colorStream = device.createStream(b"color", fps=30) File "cyni.pyx", line 117, in cyni.Device.createStream (cyni.cpp:4214) File "cyni.pyx", line 203, in cyni.VideoStream.create (cyni.cpp:5294) File "cyni.pyx", line 35, in cyni.error (cyni.cpp:2751) cyni.OpenNIException: Error opening color stream.

oroulet commented 8 years ago

Looks like generated PCD binary format without RGB are corrupt.... will be a later fix