Skip to content

Instantly share code, notes, and snippets.

@DanielArnett
Last active April 15, 2025 06:16
Show Gist options
  • Save DanielArnett/c9a56c9c7cc0def20648480bca1f6772 to your computer and use it in GitHub Desktop.
Save DanielArnett/c9a56c9c7cc0def20648480bca1f6772 to your computer and use it in GitHub Desktop.

Revisions

  1. DanielArnett revised this gist Oct 5, 2017. 1 changed file with 2 additions and 15 deletions.
    17 changes: 2 additions & 15 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ SteamVR requires >4GB disk space
    # Installation Instructions
    1. Install Steam, as well as Python and OpenVR dependencies

    `sudo apt-get install steam libsdl2-dev libvulkan-dev libudev-dev libssl-dev zlib1g-dev`
    `sudo apt-get install steam libsdl2-dev libvulkan-dev libudev-dev libssl-dev zlib1g-dev python-pip`

    1. Make Steam account & Log in.

    @@ -28,22 +28,9 @@ SteamVR requires >4GB disk space

    `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`

    4. Download a python source tarball >3.6

    1. https://www.python.org/downloads/

    1. Unpack Python, enter the Python* directory, then install it.

    ```
    tar -xvzf Python-3.6.*.tgz && cd Python-3.6*
    ./configure
    make
    sudo make install
    ```

    5. Install pyopenvr

    `sudo python3.6 -m pip install openvr`
    `sudo pip install -U pip openvr`

    6. Clone triad_openvr in a working directory

  2. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -41,7 +41,7 @@ make
    sudo make install
    ```

    5. Install openvr
    5. Install pyopenvr

    `sudo python3.6 -m pip install openvr`

  3. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ SteamVR requires >4GB disk space

    1. Click VR

    1. Click under Tools there should be SteamVR. Click the blue download button.
    1. Click under Tools there should be SteamVR. Click the blue Install button.

    1. Make a Symbolic Link from libudev.so.0 to libudev.so.1 for SteamVR to use

  4. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -77,10 +77,9 @@ cd triad_openvr/

    # Command Line

    To start SteamVR from the commandline you can run:
    To start SteamVR from the commandline you can run (as one command):

    `LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh \
    ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh`
    `LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh`

    This will start the server in another process, so you're free to keyboard interrupt (Ctrl+C) the terminal once the server starts.

  5. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -79,7 +79,8 @@ cd triad_openvr/

    To start SteamVR from the commandline you can run:

    `LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh \ ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh`
    `LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh \
    ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh`

    This will start the server in another process, so you're free to keyboard interrupt (Ctrl+C) the terminal once the server starts.

  6. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -79,7 +79,7 @@ cd triad_openvr/

    To start SteamVR from the commandline you can run:

    `LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh`
    `LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh \ ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh`

    This will start the server in another process, so you're free to keyboard interrupt (Ctrl+C) the terminal once the server starts.

  7. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -79,7 +79,7 @@ cd triad_openvr/

    To start SteamVR from the commandline you can run:

    LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh
    `LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh`

    This will start the server in another process, so you're free to keyboard interrupt (Ctrl+C) the terminal once the server starts.

  8. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -75,6 +75,18 @@ cd triad_openvr/

    6. If everything went well you should now see the data coming from the Tracker. Use tracker_test.py as a sample program to work from to integrate into your project.

    # Command Line

    To start SteamVR from the commandline you can run:

    LD_LIBRARY_PATH=~/.steam/bin32/ ~/.steam/bin32/steam-runtime/run.sh ~/.steam/steam/steamapps/common/SteamVR/bin/vrstartup.sh

    This will start the server in another process, so you're free to keyboard interrupt (Ctrl+C) the terminal once the server starts.

    To kill the SteamVR process:

    `sudo killall -9 vrmonitor`

    # Links

    This is based off of Triad Semiconductor's awesome tutorial found here:
  9. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -69,7 +69,7 @@ sudo make install
    5. Start the tracker_test.py python script to view the x y z roll pitch yaw output from the tracker.

    ```
    cd triad_openvr/`
    cd triad_openvr/
    `python3.6 ./tracker_test.py
    ```

  10. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ SteamVR requires >4GB disk space
    # Installation Instructions
    1. Install Steam, as well as Python and OpenVR dependencies

    1. `sudo apt-get install steam libsdl2-dev libvulkan-dev libudev-dev libssl-dev zlib1g-dev`
    `sudo apt-get install steam libsdl2-dev libvulkan-dev libudev-dev libssl-dev zlib1g-dev`

    1. Make Steam account & Log in.

    @@ -26,7 +26,7 @@ SteamVR requires >4GB disk space

    1. Make a Symbolic Link from libudev.so.0 to libudev.so.1 for SteamVR to use

    1. `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`
    `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`

    4. Download a python source tarball >3.6

    @@ -43,15 +43,15 @@ sudo make install

    5. Install openvr

    1. `sudo python3.6 -m pip install openvr`
    `sudo python3.6 -m pip install openvr`

    6. Clone triad_openvr in a working directory

    1. `git clone https://github.com/TriadSemi/triad_openvr.git`
    `git clone https://github.com/TriadSemi/triad_openvr.git`

    7. (Optional) Disable the headset requirement with your preferred text editor

    1. `gedit ~/.steam/steam/steamapps/common/SteamVR/resources/settings/default.vrsettings`
    `gedit ~/.steam/steam/steamapps/common/SteamVR/resources/settings/default.vrsettings`

    1. Change the third line from `"requireHmd" : true,` to `"requireHmd" : false,`

  11. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    This tutorial will guide you through the setup of the HTC Vive Tracker in Python 3.6 on Ubuntu 14.04.


    # Prerequesites

    Up to date graphics drivers
  12. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -70,6 +70,8 @@ cd triad_openvr/`
    `python3.6 ./tracker_test.py
    ```

    6. If everything went well you should now see the data coming from the Tracker. Use tracker_test.py as a sample program to work from to integrate into your project.

    # Links

    This is based off of Triad Semiconductor's awesome tutorial found here:
  13. DanielArnett revised this gist Oct 3, 2017. No changes.
  14. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -57,7 +57,7 @@ sudo make install
    # Usage
    1. Start SteamVR from the Steam Library

    2. Turn on the tracker with its button, and make sure that its wireless USB dongle is plugged in to your computer. If its light is green skip to step 4.
    2. Turn on the tracker with its button, and make sure that its wireless USB dongle is plugged in to your computer. If the tracker shows up in the SteamVR overlay skip to step 4.

    3. Sync the tracker. Hold the button on the tracker until the light blinks. On the SteamVR overlay click the "SteamVR" dropdown menu. Click Devices->Pair Controller. The Tracker should then pair with the computer, and a green outline of the tracker should appear on the SteamVR overlay. If this doesn't work try unplugging the wireless USB dongle, plugging it back in, and restarting SteamVR.

  15. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 3 additions and 8 deletions.
    11 changes: 3 additions & 8 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,9 @@ x86 architecture
    SteamVR requires >4GB disk space

    # Installation Instructions
    1. Install Steam
    1. Install Steam, as well as Python and OpenVR dependencies

    1. `sudo apt-get install steam`
    1. `sudo apt-get install steam libsdl2-dev libvulkan-dev libudev-dev libssl-dev zlib1g-dev`

    1. Make Steam account & Log in.

    @@ -21,11 +21,7 @@ SteamVR requires >4GB disk space

    1. Click under Tools there should be SteamVR. Click the blue download button.

    3. Install OpenVR and Python (libssl-dev) dependencies

    1. `sudo apt-get install libsdl2-dev libvulkan-dev libudev-dev libssl-dev`

    1. Make a Symbolic Link from libudev.so.0 to libudev.so.1 for SteamVR to use
    1. Make a Symbolic Link from libudev.so.0 to libudev.so.1 for SteamVR to use

    1. `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`

    @@ -39,7 +35,6 @@ SteamVR requires >4GB disk space
    tar -xvzf Python-3.6.*.tgz && cd Python-3.6*
    ./configure
    make
    sudo apt-get install zlib1g-dev
    sudo make install
    ```

  16. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -78,7 +78,9 @@ cd triad_openvr/`
    # Links

    This is based off of Triad Semiconductor's awesome tutorial found here:

    http://help.triadsemi.com/steamvr-tracking/steamvr-tracking-without-an-hmd/

    Also thanks to Christopher Bruns for his work on pyopenvr.

    https://github.com/cmbruns/pyopenvr
  17. DanielArnett revised this gist Oct 3, 2017. No changes.
  18. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,7 @@ SteamVR requires >4GB disk space

    1. `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`

    4 Download a python source tarball >3.6
    4. Download a python source tarball >3.6

    1. https://www.python.org/downloads/

  19. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ SteamVR requires >4GB disk space

    1. `sudo apt-get install steam`

    Make Steam account & Log in.
    1. Make Steam account & Log in.

    2. Install SteamVR

  20. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    # Prerequesites

    Up to date graphics drivers

    x86 architecture

    SteamVR requires >4GB disk space

    # Installation Instructions
    @@ -33,7 +35,8 @@ SteamVR requires >4GB disk space

    1. Unpack Python, enter the Python* directory, then install it.

    ```tar -xvzf Python-3.6.*.tgz && cd Python-3.6*
    ```
    tar -xvzf Python-3.6.*.tgz && cd Python-3.6*
    ./configure
    make
    sudo apt-get install zlib1g-dev
    @@ -67,7 +70,8 @@ sudo make install

    5. Start the tracker_test.py python script to view the x y z roll pitch yaw output from the tracker.

    ```cd triad_openvr/`
    ```
    cd triad_openvr/`
    `python3.6 ./tracker_test.py
    ```

  21. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -37,7 +37,8 @@ SteamVR requires >4GB disk space
    ./configure
    make
    sudo apt-get install zlib1g-dev
    sudo make install```
    sudo make install
    ```

    5. Install openvr

    @@ -67,7 +68,8 @@ sudo make install```
    5. Start the tracker_test.py python script to view the x y z roll pitch yaw output from the tracker.

    ```cd triad_openvr/`
    `python3.6 ./tracker_test.py```
    `python3.6 ./tracker_test.py
    ```
    # Links
  22. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 21 additions and 21 deletions.
    42 changes: 21 additions & 21 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -13,46 +13,47 @@ SteamVR requires >4GB disk space

    2. Install SteamVR

    - Click Library
    1. Click Library

    - Click VR
    1. Click VR

    - Click under Tools there should be SteamVR. Click the blue download button.
    1. Click under Tools there should be SteamVR. Click the blue download button.

    3. Install OpenVR and Python (libssl-dev) dependencies

    - `sudo apt-get install libsdl2-dev libvulkan-dev libudev-dev libssl-dev`
    1. `sudo apt-get install libsdl2-dev libvulkan-dev libudev-dev libssl-dev`

    - Make a Symbolic Link from libudev.so.0 to libudev.so.1 for SteamVR to use
    1. Make a Symbolic Link from libudev.so.0 to libudev.so.1 for SteamVR to use

    - `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`
    1. `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`

    4 Download a python source tarball >3.6

    - https://www.python.org/downloads/
    1. https://www.python.org/downloads/

    - Unpack Python, enter the Python* directory, then install it.
    `tar -xvzf Python-3.6.*.tgz && cd Python-3.6*`
    `./configure`
    `make`
    `sudo apt-get install zlib1g-dev`
    `sudo make install`
    1. Unpack Python, enter the Python* directory, then install it.

    ```tar -xvzf Python-3.6.*.tgz && cd Python-3.6*
    ./configure
    make
    sudo apt-get install zlib1g-dev
    sudo make install```
    5. Install openvr
    .. `sudo python3.6 -m pip install openvr`
    1. `sudo python3.6 -m pip install openvr`
    6. Clone triad_openvr in a working directory
    .. `git clone https://github.com/TriadSemi/triad_openvr.git`
    1. `git clone https://github.com/TriadSemi/triad_openvr.git`
    7. (Optional) Disable the headset requirement with your preferred text editor
    .. `gedit ~/.steam/steam/steamapps/common/SteamVR/resources/settings/default.vrsettings`
    1. `gedit ~/.steam/steam/steamapps/common/SteamVR/resources/settings/default.vrsettings`
    .. Change the third line from `"requireHmd" : true,` to `"requireHmd" : false,`
    1. Change the third line from `"requireHmd" : true,` to `"requireHmd" : false,`
    .. Save and exit the settings document.
    1. Save and exit the settings document.
    # Usage
    1. Start SteamVR from the Steam Library
    @@ -65,9 +66,8 @@ SteamVR requires >4GB disk space
    5. Start the tracker_test.py python script to view the x y z roll pitch yaw output from the tracker.
    .. `cd triad_openvr/`

    .. `python3.6 ./tracker_test.py`
    ```cd triad_openvr/`
    `python3.6 ./tracker_test.py```
    # Links
  23. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,9 @@ SteamVR requires >4GB disk space
    # Installation Instructions
    1. Install Steam

    1.`sudo apt-get install steam`
    1. `sudo apt-get install steam`

    Make Steam account & Log in.
    Make Steam account & Log in.

    2. Install SteamVR

  24. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@ SteamVR requires >4GB disk space
    1. Install Steam

    1.`sudo apt-get install steam`

    Make Steam account & Log in.

    2. Install SteamVR
  25. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@ SteamVR requires >4GB disk space

    # Installation Instructions
    1. Install Steam

    1.`sudo apt-get install steam`
    Make Steam account & Log in.

  26. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,8 @@ SteamVR requires >4GB disk space

    # Installation Instructions
    1. Install Steam
    - `sudo apt-get install steam`

    - Make Steam account & Log in.
    1.`sudo apt-get install steam`
    Make Steam account & Log in.

    2. Install SteamVR

  27. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 14 additions and 19 deletions.
    33 changes: 14 additions & 19 deletions vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -8,39 +8,34 @@ SteamVR requires >4GB disk space
    1. Install Steam
    - `sudo apt-get install steam`

    .. Make Steam account & Log in.
    - Make Steam account & Log in.

    2. Install SteamVR

    .. Click Library
    - Click Library

    .. Click VR
    - Click VR

    .. Click under Tools there should be SteamVR. Click the blue download button.
    - Click under Tools there should be SteamVR. Click the blue download button.

    3. Install OpenVR and Python (libssl-dev) dependencies

    .. `sudo apt-get install libsdl2-dev libvulkan-dev libudev-dev libssl-dev`
    - `sudo apt-get install libsdl2-dev libvulkan-dev libudev-dev libssl-dev`

    .. Make a Symbolic Link from libudev.so.0 to libudev.so.1 for SteamVR to use
    - Make a Symbolic Link from libudev.so.0 to libudev.so.1 for SteamVR to use

    .. `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`
    - `sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0`

    4 Download a python source tarball >3.6

    .. https://www.python.org/downloads/
    - https://www.python.org/downloads/

    .. Unpack Python, enter the Python* directory, then install it.

    .. `tar -xvzf Python-3.6.*.tgz && cd Python-3.6*`

    .. `./configure`

    .. `make`

    .. `sudo apt-get install zlib1g-dev`

    .. `sudo make install`
    - Unpack Python, enter the Python* directory, then install it.
    `tar -xvzf Python-3.6.*.tgz && cd Python-3.6*`
    `./configure`
    `make`
    `sudo apt-get install zlib1g-dev`
    `sudo make install`

    5. Install openvr

  28. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ SteamVR requires >4GB disk space

    # Installation Instructions
    1. Install Steam
    - 1. `sudo apt-get install steam`
    - `sudo apt-get install steam`

    .. Make Steam account & Log in.

  29. DanielArnett revised this gist Oct 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vive-tracker-ubuntu-instructions.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ SteamVR requires >4GB disk space

    # Installation Instructions
    1. Install Steam
    1. `sudo apt-get install steam`
    - 1. `sudo apt-get install steam`

    .. Make Steam account & Log in.

  30. DanielArnett revised this gist Oct 3, 2017. No changes.