Combining data streams from Kinect and serial port without loss in resolution

Hi, I apologise if this is not the right location to ask this question. I am attempting to record human motion by combining joint angle data from a Kinect v2 with data from potentiometers connected to an Arduino. The Arduino passes data from the potentiometers to the computer running the kinect through a serial port, whereupon the computer reads the data and combines it with joint angles from the Kinect and outputs it to the debugger (I’ve found it to be faster than outputting to the console).

To date, I’ve managed to do what I’ve described above, but the number of data points per second that captured when data from both sources are fused is far less (> 10 times) than if I only attempt to capture data from the Kinect. I’ve tried reading data from the serial port in a separate thread before combining it with the Kinect data, to no avail.

I would be very grateful if anyone could offer suggestions or advice. Thank you.

submitted by /u/techman007
[link] [comments]