snuvclab / Vive_Tracker

Using Vive Tracker for estimating 6DOF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vive_Tracker

Vive Tracker 6 DOF Tracking

pipeline

  • 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

Installing Python Dependencies

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

Setting up SteamVR

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")

pipeline

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

pipeline

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.

pipeline

Running the Tracker

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.

pipeline

  • Output: x,y,z,yaw,pitch,roll

Visualization

To be updated...

About

Using Vive Tracker for estimating 6DOF


Languages

Language:Python 100.0%