Skip to main content

PyOpenvr Library convenience wrapper for recovery of pose data

Project description

A convenient pose wrapper

Requirements

You need steamVR running to use it.

Usage

Simple sampling example, return dictionnary poses values converted to different useful formats.

"""Example script using pose_openvr_wrapper."""
import pose_openvr_wrapper

pyopenvr_wrapper = pose_openvr_wrapper.OpenvrWrapper('cfg/config.json')
print(pyopenvr_wrapper.devices)

samples = pyopenvr_wrapper.sample('tracker_0', samples_count=10)
print(samples)

it's also possible to get relative poses, from choosen reference device to target device.

relative_samples = pyopenvr_wrapper.sample(
       ref_device_key='tracking_reference_1',
       target_device_key='tracker_0', samples_count=10)

print(relative_samples)

Example config file :

It require a config file to always keep same tracker/lighthouses names.

{
    "devices":[
        {
          "name": "tracking_reference_0",
          "type": "tracking_reference",
          "serial":"LHB-02F97E98"
        },
        {
          "name": "tracking_reference_1",
          "type": "tracking_reference",
          "serial":"LHB-431A55FD"
        },
        {
          "name": "tracker_0",
          "type": "tracker",
          "serial":"LHR-3CD1A9DA"
        },
        {
          "name": "tracker_1",
          "type": "tracker",
          "serial":"LHR-25865D81"
        },
        {
          "name": "tracker_2",
          "type": "tracker",
          "serial":"LHR-4359D2B6"
        }
    ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pose_openvr_wrapper-0.1.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

pose_openvr_wrapper-0.1.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pose_openvr_wrapper-0.1.4.tar.gz.

File metadata

  • Download URL: pose_openvr_wrapper-0.1.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7

File hashes

Hashes for pose_openvr_wrapper-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fd750c49151ce505ff47076273d862e7126e5068ae2a574acc1bc828b83eb3f7
MD5 a2bf038cf34cc5613cf5f14195f7cbba
BLAKE2b-256 9b0e84525db50bee5100b914a004f3012a52ffb7d25e8e644c4f713502983cb7

See more details on using hashes here.

File details

Details for the file pose_openvr_wrapper-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pose_openvr_wrapper-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7

File hashes

Hashes for pose_openvr_wrapper-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2b81f953d992356ee499711b626800281530752d59153a3b5e0acebab7eea546
MD5 30fe1e2002bb563d1b7dc4826ea7a8f4
BLAKE2b-256 3fb40bb2270e1f44f5b395b48c8dd750e5b314b898ddbaf34207b2bc7ded93ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page