debOliveira / MoCapRasp

Motion capture arena using only Raspberry Pi and open source libraries
GNU Affero General Public License v3.0
30 stars 4 forks source link

[BUG] Drop in the number of interpolated pictures #12

Open loolirer opened 1 year ago

loolirer commented 1 year ago

There is a drop in the interpolated picture numbers when there are more than 6 markers on the scene.

For $2\leq N \leq 6$ markers in a 10 seconds capture, the number of interpolated pics is 995 constantly.

For 7 markers, this drops down to roughly ~570 interpolated pics.

For 8 markers, this drops even further to ~65 interpolated pics!

debOliveira commented 1 year ago

The drop happens because of the time of the loop. The server stays processing and does not check the messages incoming. You can separate threads and accumulate all messages in a queue.

The loop time must be either way reduced. Otherwise, the feedback to the robot would be too late.