The function will take a file location in addition to the type of sensor it came from and read the data into R.
read_imu(file_path, imu_type)
A string
that contains the full file path.
A string
that contains a supported IMU type given below.
A matrix with dimensions N x 7, where the columns represent:
Time
Gyro 1
Gyro 2
Gyro 3
Accel 1
Accel 2
Accel 3
Currently supports the following IMUs:
IMAR
LN200
LN200IG
IXSEA
NAVCHIP_INT
NAVCHIP_FLT
We hope to soon be able to support delimited files.
Thanks goes to Philipp Clausen of Labo TOPO, EPFL, Switzerland, topo.epfl.ch, Tel:+41(0)21 693 27 55 for providing a matlab function that reads in IMUs. The function below is a heavily modified port of MATLAB code into Armadillo/C++.