Thursday, August 10, 2017

Vive mocap for the Vive Tracker only (no HMD)

Setup and hack
  • This only works on Windows
  • Install Steam
  • Install SteamVR
    • In Steam: Library | Tools | SteamVR | right click | Install Game...
  • Clone the OpenVR SDK
  • Change file default.vrsettings
    • Located in C:\Program files (x86)\Steam\steamapps\common\SteamVR\ressources\settings
    • Change line requirehmd : true for requirehmd : false
    • More details on Luke Beno's blog (he is from Triad Semiconductor's)
  • Opt-in beta for SteamVR
    • From the SteamVR line in the Library tab
    • Right click Properties | Betas | Select the beta... | beta - ...
    • More details here
  • If you use C++ you can start with example provided by Omnifinity on github

Compile
  • Under Visual Studio
  • Run in Release config
  • You will need to indicate the example solution
    • The path for the OpenVR headers
    • The path for the OpenVR lib

Run
  • Run Steam
  • Run SteamVR
    • SteamVR will indicate NOT READY in red, this is normal
    • The Vive Tracker LED will be green
    • SteamVR will show the Vive Tracker icon in green as here
    • SteamVR's Vive Tracker green icon will display "tracking" when you mouse over it
  • Copy a version of openvr_api.dll next to your executable
  • Double click the compiled executable from the explorer
    • Or alternatively run a command prompt and call the application from it

Troubleshoot 

  • It often happens that we pair the system when actually willing to shut it down
    • This is because pairing is a 2s press and shutting down is a 5s press
    • So when release the press too fast it pairs the device with the dongle
  • This pairing seems not to work correctly
    • The led does not go green
    • And SteamVR no longer recognize the Vive Tracker
  • In order to re-pair the Vive Tracker correctly
    • Start Steam
    • Start SteamVR
    • Plug the base station
    • Manually pair the device (2s push on the device's button)
    • Then in SteamVR: press button SteamVR beta triangle | Devices | Pair Controllers
    • Everything should be fine after a few seconds




http://steamcommunity.com/app/358720/discussions/0/1470841715957441627/
https://steamcommunity.com/app/358720/discussions/0/133263024016740056/
https://steamcommunity.com/app/358720/discussions/0/133263024016787200/
http://steamcommunity.com/app/358720/discussions/0/361787186419244897/
https://www.solidearthvr.com/2017/05/12/tutorial-vive-tracker-basic-setup-in-unity/#device_numbering

No comments:

Post a Comment