I can see that you’re using pyrealsense2, which i assume is just a drop-in thing for realsense support. Considering that intel dropped the product line and motion tracking seems to no longer be officially supported, do you think it might be worth it looking into supporting alternatives?
As an example, i’ve got a generic usb camera that’s branded as “windows hello compatible”. There are a few of these now, all based on the tech in the kinect if i’m not mistaken. It’s got an additional ir camera in it for facial recognition through depth imaging, which seems to be the same tech that’s in the realsense cameras. The ir camera is directly accessible as a video device in linux. Supporting these cameras would open up 3d tracking to people who weren’t able to snag a realsense before they disappeared from the market.
I’ve not seen any drop-in replacements for pyrealsense2, but opencv has support for a variety of stereo camera setups so it may be possible.