Possible to get XYZ coordinates of IR Marker with moving camera?

Is it possible to get x, y, and z coordinates of an object with IR markers on it with the camera which finds thes coordinates being in motion? If this is possible, please link me tutorials on how to do it and modules which I can use or even libraraies to take code from so I can utilize your input, and if not, please explain why and what I would have to add or remove or what requirments I need to fufill in order to make this possible, then link me to tutorial which successfully use that method instead. My prefrences are to make this a standalone VR project which has a camera on the headset, tracking two controllers via sensor fusion from a 9DoF IMU, and an Optical setup using IR like I have previously mentioned, I would like to have no lighthouses, like the quest, but they might have done smething else like SLAM, making it impossible for me to do it in my circumstances. Either way, I found a great college paper here:

https://vbn.aau.dk/ws/portalfiles/portal/169200/fulltext

which does almost what I want, yet I cannot figure out how they actually got it to work, their code, or what modules they used. If you think that this optical approach may be the wrong way to do it, like if I should attempt magnetic tracking instead, do let me know and link me to a tutorial on how o get started, Im in the place in a project where I know alot of concepts but not how to execute them, so tutorials at this stage are like virtual goldmines to me. Provide many if possible. And thank you all so much! =)