How to use the pysurvive.close function in pysurvive

To help you get started, we’ve selected a few pysurvive examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cnlohr / libsurvive / bindings / python / full-example.py View on Github external
ctx = pysurvive.init(sys.argv)

if ctx is None: # implies -help or similiar
    exit(-1)

def imu_func(ctx, mode, accelgyro, timecode, id):
    print(accelgyro)

keepRunning = True

pysurvive.install_imu_fn(ctx, imu_func)
while keepRunning and pysurvive.poll(ctx) == 0:
    pass

pysurvive.close(ctx)

pysurvive

Libsurvive is a set of tools and libraries that enable 6 dof tracking on lighthouse and vive based systems that is completely open source and can run on any device. It currently supports both SteamVR 1.0 and SteamVR 2.0 generation of devices and should support any tracked object commercially available.

MIT
Latest version published 2 years ago

Package Health Score

57 / 100
Full package analysis