Vive Tracker 6 DOF Tracking
- HTC Base Station and Vive Tracker 3.0
- Tracking: Support for SteamVR BS1.0 and BS2.0
- Weight: 75g
- Dimensions: 70.9 x 79.0 x 44.1 mm
- Battery Life: 7.5 hours
- Field of view: 240 Degrees
- Components: Vive Tracker, Dongle, Dongle Cradle (USB-C), USB cable
Clone the respository:
git clone https://github.com/snuvclab/Vive_Tracker.git
cd Vive_Tracker
Note: This code was developed on Ubuntu 20.04 with Python 3.7. Later versions should work, but have not been tested.
Create and activate a virtual environment to work in, e.g. using Conda:
conda create -n venv_vive python=3.7
conda activate venv_vive
Install OpenVR library
pip install openvr
Install Steam:
https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
sudo dpkg -i YourDownloadDirectory/steam_latest.deb
sudo apt-get update
sudo apt upgrade
Install SteamVR: After logging in with a Steam Account, install SteamVR (Store -> Search for "SteamVR")
Remove HDM requirement: Since we do not have the Vive HMD (Head Mounted Display) you have to change a setting file. You can find the default.vrsettings config file in:
home/yourDirectory/.local/share/Steam/steamapps/common/SteamVR/resources/settings/default.vrsettings
eg. /home/yc4ny/.local/share/Steam/steamapps/common/SteamVR/resources/settings/default.vrsettings
Change the requireHmd: True to requireHmd: False
Restart SteamVR If you have run SteamVR in advance, please restart SteamVR. You can restart quickly by clicking the VR button on the top right corner of Steam.
You can run the tracker by running
python run_tracker.py -f FrequencyValue
eg. python run_tracker.py -f 30
The -f flag indicates the frequency of location update, so if you are using a camera which takes video as 30fps, you can add the -f 30 flag.
- Output: x,y,z,yaw,pitch,roll
To be updated...