Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller Tracking #75

Open
stepjam opened this issue Jun 8, 2022 · 7 comments
Open

Controller Tracking #75

stepjam opened this issue Jun 8, 2022 · 7 comments

Comments

@stepjam
Copy link

stepjam commented Jun 8, 2022

Hi Christopher,

Thanks for your work on this repo!

I'm trying to track the handheld (vive) controllers. I see that you have an example of how to track the HMD here. When I inspect the views object. it only has 2 items (left and right eye). How am I able to include the controllers in this view?

Thanks in advance!

@cmbruns
Copy link
Owner

cmbruns commented Jun 12, 2022

This is a good question I don't have a clear answer for. The hello_xr example in the pyopenxr_examples repo puts cubes on the controller positions, so the information is there. But it's somewhat confusing.

We should aim to eventually have a super simple example like track_hmd.py that shows the controller positions. Doing this properly would likely involve path strings like "/user/hand/left".

@cmbruns
Copy link
Owner

cmbruns commented Jun 26, 2022

Update: There is now a track_controller.py example at https://github.com/cmbruns/pyopenxr_examples/tree/main/xr_examples that should work with today's release.

@cmbruns cmbruns closed this as completed Jul 1, 2022
@stepjam
Copy link
Author

stepjam commented Jul 1, 2022

Amazing! I'll try it out today. Thanks!

@stepjam
Copy link
Author

stepjam commented Jul 1, 2022

@cmbruns orientation seems to be working, but the position stays constant (x=0.2, y=1.3. z=0.5). Does this happen on your end?

@cmbruns
Copy link
Owner

cmbruns commented Jul 1, 2022

@stepjam Thanks for trying this out. I don't have time to investigate this right this minute. Maybe tonight or tomorrow. In the meantime, what's your system? Mine is [Windows,Linux]/SteamVR/HtcViveClassic/OpenGL.

@cmbruns cmbruns reopened this Jul 1, 2022
@stepjam
Copy link
Author

stepjam commented Jul 1, 2022

Thanks!
My system is Linux/Monado/HTCViveClassic/Vulkan

@cmbruns
Copy link
Owner

cmbruns commented Jul 2, 2022

@stepjam Vive wand position tracking is working for me on Windows at least. I suspect the position tracking trouble you experienced is related to Monado. The hardware support table at https://monado.freedesktop.org/#supported-hardware includes the following:

Device Rotation Position Distortion Correction Additional Notes
OSVR HDK 1.x, 2.x Yes No No Requires workaround on AMD GPUs1. Firmware fix available2
HTC Vive Yes LH 1.0: No Yes Supported by OpenHMD, Monado “vive”, or Monado “survive”

Maybe you can experiment with OpenHMD, "vive", and "survive" (whatever those are). If you gain any wisdom that might be of use to others, please consider creating a new page in the wiki here https://github.com/cmbruns/pyopenxr/wiki

I'm glad you have the monado runtime working. Please try as many of the examples as you can, to help shake out any other troubles with the monado runtime. I have not yet succeeded in getting monado working here. Your help getting monado working well with pyopenxr would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants