oculus: Oculus Rift ffi providing head tracking data

[ bsd3, deprecated, graphics, library ] [ Propose Tags ]
Deprecated

Bindings to the oculus rift sdk head tracking. Requires installation of the OculusSdk, currently only supported for linux installs. You're going to need to either install the sdk under the default include and ld search path, or you can point cabal to your local oculusSdk install by using the "--extra-include-dirs" and "--extra-lib-dirs" flags.

For example "cabal install --extra-include-dirs /path/to/OculusSDK/LibOVR/Include --extra-lib-dirs /path/to/OculusSDK/LibOVR/Lib/Linux/Release/x86_64"

Below is a small program that initializes the rift and prints the orientation every second until ctrl-C

module Main where

import Control.Concurrent (threadDelay)
import Control.Monad
import Control.Monad.Trans.Either

import Rift

main = eitherT print printOrientation initRift
  where printOrientation h = forever $ wait1sec >> orientation h >>= print
        wait1sec = threadDelay 1000000

Modules

  • Rift

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2
Dependencies base (>=4.6 && <4.7), either (>=4.1 && <4.2), monads-tf (>=0.1 && <0.2), transformers (>=0.3 && <0.4), vect-floating (==0.1.0.3) [details]
License BSD-3-Clause
Copyright (c) 2014 Charles Durham
Author Charles Durham
Maintainer Charles Durham <cpdurham@gmail.com>
Category Graphics
Home page http://github.com/cpdurham/oculus
Uploaded by cdurham at 2014-01-17T03:36:46Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2405 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-18 [all 7 reports]