Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Qhelianthus's avatar
Qhelianthus
Honored Guest
10 years ago

How to get the original sensor data

Hello everyone,

I'm a new developer of Oculus, I have few questions about the smaple code "OculusRoomTiny".

In recent two weeks, I have studied some documents, websites, blogs....,so I generally understand how the sample works,

but the point is, I want to get the "Original Sensor Data" catching by gyro, accelerometer, maganetometer !

Not quanternion, euler angle or matrix form.

Presently, I know the MessageBodyFrame object include the data I want, but don't know who send it out and

where it come from, hope someone can help me, thanks a lot.


-Curry Chen

7 Replies

  • "cybereality" wrote:
    Yes, you can get these values from RawSensorData in ovrTrackingState.

    You can get the state with this function: ovr_GetTrackingState.

    https://developer.oculus.com/doc/0.8.0. ... 0720677a3b


    Really appreciate about your reply!

    But...

    what's the different between libOVR and CAPI ?

    The reason I have this question is I can't find header "OVR_CAPI_0_8_0.h" in libOVR folder.

    Thanks.

    -Curry Chen
  • "cybereality" wrote:
    It's in:

    OculusSDK\LibOVR\Include


    Thanks for your help, again.

    Unfortunately, there are only two header files in my Include folder, OVR.h and OVRVersion.h.

    Maybe I misunderstand something.

    Thanks for your assist!

    - Curry Chen
  • "cybereality" wrote:
    Did you download the current versions (0.8) of the SDK from this link:

    https://developer.oculus.com/downloads/ ... r_Windows/

    Cause I tested it earlier today and I'm pretty sure that file is in there.


    I forgot my Oculus SDK is old version(0.2.5) =_=, ahhhhhh....

    Thank you a lot!

    Can I use the current version control DK1? (that's why I use version 0.2.5 at the beginning)