Gemini2 getting camera orientation from IMU data (accelerometer, gyro)

Hello,
Is there a sample that converts IMU data (accelerometer, gyroscope) to a 3d orientation in space of the camera?

Thank you