facebookresearch / digit-interface

Python interface for the DIGIT tactile sensor
Other
62 stars 19 forks source link

select() timeout issue when trying to read a frame #17

Open joshwajones opened 5 months ago

joshwajones commented 5 months ago

We have two DIGIT sensors, manufactured by GelSight. They can be connected just fine (i.e. they light up, and when opened as a VideoCapture isOpened() returns true), but when trying to actually read from the sensor, the code often hangs and eventually returns a select() timeout; this happened even when reproduced in a very simple environment, just connecting to the DIGIT using the digit interface and reading from it. The hanging always occurs on a Mac running Big Sur, usually on Linux machine running Ubuntu, and never on MacOS Sonoma.

If we try to read the DIGIT using the default webcam apps (Cheese on the Ubuntu, Photobooth on the Macs), the issue persists, with Photobooth on Big Sur displaying a black screen always, Cheese typically displaying just a black screen but sometimes reading from the DIGIT, and the Sonoma Mac's Photobooth displaying the actual output of the reading.

Is it possible that we're missing some drivers? Particularly for the Ubuntu machine, since this is most important for our application.