So our team is currently using a raspberry pi for multi-camera streaming, and attached to the raspberry pi is the pixy2 camera that we are using. The code works fine if I ssh into the raspberry pi and run it (“sudo python3 ~/uploaded.py”). However, the background service which normally runs your code automatically at boot simply doesn’t work with the pixy libraries. It crashes, but it doesn’t crash when the pixy is initialized; it crashes when anything is accessed on the pixy afterwards (i.e. pixy.change_prog() or pixy.get_all_features()). Even more, it crashes without an error printed. Usually, if it cannot find the pixy or it does not have sudo access, it will give a segmentation fault when pixy.init() is run; this isn’t the case, it just silently crashes.
Does anyone have any experience with using the pixy2’s python usb libraries on the FRC raspberry pi image? I know that conventionally most teams connect the pixy2 to the roborio, but we’d prefer it with our approach to use the raspberry pi. Thanks!