With the final demo coming up, we really needed to solve the random issues that we encountered before the baseline demo. After extensively digging around, I found out that the reason the display was very slow when using my laptop was because the serial USB connection that we were using the communicate with the mbed was being limited to 12mb/s (USB 1.0 speeds). The USB ports on the Pi, on the other hand, were running at 480mb/s (expected USB 2.0). This was likely because of a driver issue, but we were able to solve the problem by sending less data over serial so the port wouldn't clog up and slow down.
The other issue we had to fix was libfreenect rarely recognizing Kinect on the Pi. After 11 hours (!!) of researching and debugging, I found a post by someone who was having similar issues that said he noticed that the Kinect camera would disappear in the output of the `lsusb` command when libfreenect was trying to connect. So, I tried it myself. I ran `watch -n0 lsusb` (this runs lsusb on a loop) in one terminal window before running my Python code. Surprisingly, this actually just fixed the problem!
I'm still not sure what was/is going on, but running `watch -n0 lsusb` before using libfreenect seems to keep it working every time consistently.
No comments:
Post a Comment