<< return to Pixycam.com

libpixyusb_swig

Dear All

To give some explanations about what I am doing, I am working a humanoid robot combining voice/Pixy(to detect basic objects with dedicated color signature)/Inverse Kinematics… If you want to see how it looks like, you can see some videos here https://www.youtube.com/channel/UCsVtRW6KTN6vRE9iTQ-JJIQ

Now I am integrating the Pixy cam into the project - and I am working with a raspberry right now. I followed the instructions you kindly made available and the “hello_pixy” example is working (although there are discrepancies between what is detected with pixymoon and what is detected by hello_pixy).

I tried the python code, so I followed the instructions given here:http://cmucam.org/projects/cmucam5/wiki/Building_libpixyusb_as_a_Python_module_on_Linux

swig gave me lot of warnings, mainly unused variables and line option Wstrict-prototype is valid for C/objC but not for C++, and when I launched “python get_blocks.py” I got one message “Pixy Python SWIG Example – Get Blocks” … and after that nothing.

After a keyboard interrupt, Python told me that it is stuck in “count = pixy_get_blocks(100, blocks)”

Does it mean that the usb connection is not really working? Some issues in the C++/Python mapping?

Thank you for helping

Fabrice

Hello Fabrice,
If the hello_pixy is working, the USB connection/driver is good, but I agree with your idea that the communication is suspect if Python is hanging in pixy_get_blocks. What kind of discrepencies are there between PixyMon and hello_pixy?

Edward