Skip to content
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

python3 compatibility #2

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

oroulet
Copy link

@oroulet oroulet commented Jul 19, 2016

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

@arjun810
Copy link
Member

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

@oroulet
Copy link
Author

oroulet commented Jul 20, 2016

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
Copy link
Author

oroulet commented Jul 20, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants