TriadSemi / triad_openvr

This is an enhanced wrapper for the already excellent pyopenvr library by cmbruns. The goal of this library is to create easy to use python functions for any SteamVR tracked system.
157 stars 52 forks source link

Type issues when using null driver #20

Closed westin123 closed 5 years ago

westin123 commented 5 years ago

I have a system which is setup to not have the HMD connected by following this tutorial: http://help.triadsemi.com/en/articles/836917-steamvr-tracking-without-an-hmd

What I have found is that the getStringTrackedDeviceProperty function used by vr_tracked_device.get_model and vr_tracked_device.get_serial now return strings rather than bytes objects causing an exception when it calls the decode method. It would be simple just check the type in all functions that use that and decode if necessary, but it seemed odd to me that it would be returning various types at all.

westin123 commented 5 years ago

After more investigation, I think this issue is an incompatibility with the latest pyopenvr.

lgbeno commented 5 years ago

Thanks for investigating this! Glad to see that you are using this, reporting issues and most importantly finding solutions!