psychopy.tools.rifttools

Various tools for working with the Rift class. The documentation for classes in on this page originate from PsychXR and may make references to functions and objects not included with PsychoPy.

Overview

Classes

These classes are included with PsychXR to use with the LibOVR interface. They can be accessed from this module to avoid needing to explicitly import PsychXR. If PsychXR is not available on the system, these classes will have values None.

LibOVRPose

LibOVRPoseState

LibOVRHapticsBuffer

LibOVRBounds

Functions

These functions can be called without first starting a VR session (initializing a Rift instance) to check if the drivers/services are running on this computer or if an HMD is connected.

isHmdConnected([timeout])

Check if an HMD is connected.

isOculusServiceRunning([timeout])

Check if the Oculus(tm) service is currently running.

Details

psychopy.tools.rifttools.LibOVRPose
psychopy.tools.rifttools.LibOVRPoseState
psychopy.tools.rifttools.LibOVRBounds
psychopy.tools.rifttools.LibOVRHapticsBuffer
psychopy.tools.rifttools.isHmdConnected(timeout=0)[source]

Check if an HMD is connected.

Parameters

timeout (int) – Timeout in milliseconds.

Returns

True if an HMD is connected.

Return type

bool

psychopy.tools.rifttools.isOculusServiceRunning(timeout=0)[source]

Check if the Oculus(tm) service is currently running.

Parameters

timeout (int) – Timeout in milliseconds.

Returns

True if the service is loaded and running.

Return type

bool


Back to top