title: How to change VR HMD position?
body: <p>I'm currently trying to make a small module in python that can move the position of a VR headset / controller (physical or virtual). I have been searching for near a month now, and have even tried making my own hardware drivers but the closest thing I can find for what I need is <strong>pyopenvr</strong>.</p>
  <p>I've been trying some of it's samples but I always get this error:</p>
  <p>Here is the error (<strong>It is detecting an HMD</strong>):</p>
  <pre><code>Exception has occurred: InitError_Init_HmdNotFound
  exception: no description
    File &quot;C:\Users\USERNAME\Desktop\HMDmodule\vr\test.py&quot;, line 15, in &lt;module&gt;
      vr_system = openvr.init(openvr.VRApplication_Scene)
  </code></pre>
  <p>Here is my code:</p>
  <pre><code>import sys
  import time
  import openvr
  
  print(&quot;OpenVR test program&quot;)
  
  try:
      if openvr.isHmdPresent(): print(&quot;VR head set found&quot;)
      if openvr.isRuntimeInstalled(): print(&quot;Runtime is installed&quot;)
  
      vr_system = openvr.init(openvr.VRApplication_Scene)
  
      print(openvr.getRuntimePath())
      print(vr_system.getRecommendedRenderTargetSize())
      print(vr_system.isDisplayOnDesktop())
  
      for i in range(10):
          xform = vr_system.getEyeToHeadTransform(openvr.Eye_Left)
          print(xform)
          sys.stdout.flush()
          time.sleep(0.2)
  
      openvr.shutdown()
  
  except Exception as e:
      print(e)
      ...
  </code></pre>
  <p>I'm not entirely sure how to fix this as I am relatively new to openvr and am still trying to get it to function properly.</p>
  <p>also, if there is a way to create a VR headset and controllers, as in creating an emulated headset without connecting a physical device that would help too. And if there is anything else that could/would be better than this, I will try it as well.</p>