Skip to content

Instantly share code, notes, and snippets.

@marc-tonsen
Last active January 7, 2021 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marc-tonsen/d230301c6043c4f020afeed2cc1f51fe to your computer and use it in GitHub Desktop.
Save marc-tonsen/d230301c6043c4f020afeed2cc1f51fe to your computer and use it in GitHub Desktop.
import numpy as np
# Opening `*.time` files
time = np.fromfile(path_time, dtype="<u8")
# Opening `gaze ps*.raw` files
gaze = np.fromfile(path_gaze, dtype="<f4")
# Reshaping to (N, 2)
gaze.shape = (-1, 2)
# Opening `extimu ps*.raw` files
imu = np.fromfile(path_imu, dtype="<f4")
# Reshaping to (N, 6)
imu.shape = (-1, 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment